local UserInputService = game:GetService("UserInputService") local running = true -- Press P to stop the loop UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.P then running = false end end) while running do local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local hrp = char:WaitForChild("HumanoidRootPart") local niga = workspace.Map.Spawn for _, v in ipairs(niga:GetDescendants()) do if not running then break end -- stop early if user pressed P if v:IsA("ProximityPrompt") then hrp.CFrame = v.Parent.Parent.CFrame task.wait(0.1) fireproximityprompt(v) task.wait(0.05) end end if not running then break end task.wait(120) -- 2 minutes end