I wish for this particular brick to stop moving when it hits a certain altitude... But I can't figure out this simple script.. Can anyone help fix it?
Part = script.Parent
local i = 0.1
repeat
Part.CFrame = Part.CFrame + Vector3.new(0,i,0)
wait()
until Part.Position == Vector3.new(62, 12, -123)
Part.CFrame = CFrame.new(Vector3.new(62, 12, -123)) |