for i=1,100 do
local B=Instance.new("Part")
B.Parent=Workspace
B.Size=Vector3.new((math.random(20, 100)),(math.random(20, 100)),(math.random(20, 100)))
B.CFrame = B.CFrame * CFrame.fromEulerAnglesXYZ((math.random(0, 1)),(math.random(0, 1)),(math.random(0, 1)))
B.CFrame = Vector3.new(math.random(-250, 250),0,math.random(-250, 250))
B.Anchored=true
end
Workspace.Script:7: bad argument #3 to '?' (CFrame expected, got userdata)
It should create 100 parts, each a random size, each a random CFrame, each a random position at baseplate level.
Yet it comes up with that error. |