everything is in the tool
local Vector = script.Parent.Parent.Value.Value if script.Parent.Parent.Value2.Value == true then while true do wait() print("hi") script.Part.Position = script.Part.Position + Vector3.new(Vector.X, Vector.Y, Vector.Z) print("hi") if script.Parent.Value2.Value == false or wait(5) then script.Parent.Parent.Value2.Value = false script.Part.Transparency = 1 break end end end
If you use the wait function as an condition it will be considered true and as you have an or parameter in line 9 it will only execute your code once, wait 5 seconds and then break your while in line 12