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

how come once the part goes over y = 100 it doesn't stop moving?

so I made a part that will fly to y 100 and once it reaches there it should stop moving but it doesn't it just keeps going heres my script

function onClicked(mouse)
script.Parent.Fire.Enabled = true
wait(2)
script.Parent.Anchored = false
script.Parent.Parent.Fire1.Anchored = false
script.Parent.Parent.Fire2.Anchored = false
script.Parent.Parent.Fire3.Anchored = false
script.Parent.Parent.Fire4.Anchored = false
script.Parent.Parent.Fire5.Anchored = false
script.Parent.Parent.Fire6.Anchored = false
 if script.Parent.Position.y >= 100 then
	script.Parent.BodyVelocity:remove()
end
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

how do I make it stop at 100

1 answer

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