Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why don't parts I create in a script fall normally when I play in studio?

Asked by 8 years ago

I have a script in ServerScriptStorage which creates some parts in the workspace.

When I hit Play or Run, they do show up correctly. They are not anchored.

However, they don't fall. If I move them just a little bit while in Play Solo mode, though, they do immediately fall to the ground when I let go of the tool.

local body = Instance.new("Part", workspace)
body.Size=Vector3.new(3,1,10)
body.CFrame=CFrame.new(0,5,0)

So the question is, why don't they fall when I play the place? It seems like they are not really there, the same way a normal brick that I created directly would be, which would fall naturally.

0
Looks like a bug. User#11440 120 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

This does look like a bug with Roblox but this Is how I got around it:-

body = Instance.new("Part", game:GetService('Workspace'))
body.Shape = Enum.PartType.Ball
body.Shape = Enum.PartType.Block
body.Size=Vector3.new(3,1,10)
body.CFrame=CFrame.new(10,10,10)

Hope this helps

Ad

Answer this question