Universal Script 📌
6.8k Views
75 Executions

teleport to random player and instantly go back

Universal Script 📌
trellurr
trellurrPublished 5
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

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
Universal Script 📌
3
0
Approved 7 minutes ago
Key System
Universal Script 📌
20
0
Approved 18 minutes ago
Key System
Script hub
3.0M
691.0k
Bumped 3 hours ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
5.9k
19.8k
Bumped 3 hours ago
Key System