Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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.

1 comment

0

Looks like a bug.

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.