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

When the block goes to -300 on Y position it wont go back to the position, help?

this is the script

while true do
wait()
if script.Parent.Position.Y == -300 then
	script.Parent.Position = Vector3.new(-15.663, 3.794, -10.887)
	end
end

1 answer

✓ Accepted answer

Often times positions aren't exact and can go from -299 to -301 so to fix this, do this:

while true do
wait()
if script.Parent.Position.Y <= -300 then
    script.Parent.Position = Vector3.new(-15.663, 3.794, -10.887)
    end
end

<= is anything less than -300.

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