Universal Script 📌
6.8k Views
99 Executions

teleport to random player and instantly go back

Universal Script 📌
trellurr
trellurr10K executions
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

useful for bypassing bad anti-teleport scripts

Updates

  1. Script edited: Create script

View Raw
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local TeleportService = game:GetService("TeleportService")

local function teleportToRandomPlayer()
    local players = Players:GetPlayers()
    if #players < 2 then
        warn("Not enough players to teleport")
        return
    end

    local randomPlayer
    repeat
        randomPlayer = players[math.random(1, #players)]
    until randomPlayer ~= LocalPlayer

    local originalPosition = LocalPlayer.Character.HumanoidRootPart.CFrame
    LocalPlayer.Character.HumanoidRootPart.CFrame = randomPlayer.Character.HumanoidRootPart.CFrame

    wait(0.1)  -- The time after which we returned to our starting position.

    LocalPlayer.Character.HumanoidRootPart.CFrame = originalPosition
end

teleportToRandomPlayer()



Comments

2
Log in to join the conversation. Login
vxsty's profile picture
vxstyVerified
Verified Badge
Verified User
Hall of Fame2 years ago(edited)

W chatgpt for making this

2
Dorton's profile picture
Dorton2 years ago(edited)

AAAAAAAAAAAAAAAAAAAAA CHATGPT

1

More universal scripts

See all
Script hub
29.1k
240.9k
Bumped 8 minutes ago
Script hub
6.9k
100.8k
Bumped 1 hour ago

Script hub

SAGAZx Hub

Script hub
280.0k
188.9k
Bumped 2 hours ago
Key System
Script hub
321
373
Bumped 3 hours ago

Script hub

Blythe

Script hub
9.0k
55.4k
Bumped 3 hours ago
Key System
Script hub
526
6.9k
Bumped 7 hours ago
Key System