RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"teleport the player randomly every 20 seconds"
-- server script (ServerScriptService) local Players = game:GetService("Players") while true do wait(20) for _, player in ipairs(Players:GetPlayers()) do local character = player.Character if character then local randomX = math.random(-100, 100) local randomY = math.random(50, 100) local randomZ = math.random(-100, 100) character:SetPrimaryPartCFrame(CFrame.new(Vector3.new(randomX, randomY, randomZ))) end end end