Run it
Copy the script and paste it into your executor.
-- Teleport to another player script
local player = game.Players.LocalPlayer
local userInputService = game:GetService("UserInputService")
local teleportKey = Enum.KeyCode.T -- Key to trigger teleport (T key)
local targetPlayer -- Variable to store the player to teleport to
-- Function to teleport the player to the target player's position
local function teleportToPlayer(targetPlayer)
if targetPlayer and targetPlayer.Character then
local targetHumanoidRootPart = targetPlayer.Character:WaitForChild("HumanoidRootPart")
local teleportPosition = targetHumanoidRootPart.Position
player.Character:SetPrimaryPartCFrame(CFrame.(teleportPosition))
()
_, otherPlayer (.Players:())
otherPlayer ~= player
targetPlayer = otherPlayer
userInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.UserInputType == .UserInputType.Keyboard
input.KeyCode == teleportKey
()
targetPlayer
(targetPlayer)
)
teleport to a random person pretty simple long script btw

Universal