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

I have a tool that makes parts, but the parts sometimes falls and sometimes dont. Why?

This is the script the tool goes through:

local tool = script.Parent.Parent
local part = tool.Handle

script.Parent.Parent.Activated:connect(function()
	local meteor = Instance.new("Part")
	meteor.Parent = game.Workspace
	meteor.Size = Vector3.new(10,10,10)
	meteor.Shape = "Ball"
	meteor.CFrame = CFrame.new(part.Position.X, part.Position.Y + 30, part.Position.Z)
	meteor.Anchored = false
end)

Whenever this runs, the ball it makes sometimes stay floating and sometimes not.. Why and how can I fix it.

1 answer

✓ Accepted answer

Your script should always spawn an unanchored part. Try to parent the meteor after everything else to insure there is no physics glitch.

2 comments

0

Ok, let me try that

0

It worked thanks man

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