local Control = game.Workspace.Control
local Me = script.Parent
while true do
wait()
local magnitude = (Me.Position - Control.Position).Magnitude
if magnitude <50 then
if Control.Position.X < Me.Position.X then
Me.Position = Me.Position - Vector3.new(0.4,0,0)
end
if Control.Position.X > Me.Position.X then
Me.Position = Me.Position + Vector3.new(0.4,0,0)
end
else
end
end