RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"a part named attacker move towards a part named "objective" forever"
-- server script local attacker = game.Workspace.Attacker local objective = game.Workspace.Objective while true do local direction = (objective.Position - attacker.Position).unit local distance = (objective.Position - attacker.Position).magnitude attacker.Position = attacker.Position + direction * math.min(1, distance) wait() end