Tp to a player
Key RequiredUniversal

Tp to a player

Universal Scriptjjaa*jjaa* 6.7K views 468 executesUpdated Mar 30, 2025
1.7/ 5(3 votes)
1233% Positive
Lua Script•69 lines (2495 chars)
local player = game.Players.LocalPlayer
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = player:WaitForChild("PlayerGui")

-- Create draggable frame (base)
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 80)
frame.Position = UDim2.new(0.4, 0, 0.1, 0)
frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
frame.Active = true
frame.Draggable = true
frame.Parent = screenGui

-- Create text input (textbox for player name)
local nameBox = Instance.new("TextBox")
nameBox.Size = UDim2.new(0.9, 0, 0.4, 0)
nameBox.Position = UDim2.new(0.05, 0, 0.1, 0)
nameBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
nameBox.Text = "Enter player name"
nameBox.TextScaled = true
nameBox.Parent = frame

-- Create "TP to Player" button
local tpButton = Instance.new("TextButton")
tpButton.Size = UDim2.new(0.9, 0, 0.3, 0)
tpButton.Position = UDim2.new(0.05, 0, 0.6, 0)
tpButton.BackgroundColor3 = Color3.fromRGB(100, 200, 255)
tpButton.Text = "TP to Player"
tpButton.TextScaled = true
tpButton.Parent = frame

-- Function to find player by partial username or display name
local function findPlayerByName(partialName)
    local players = game.Players:GetPlayers()
    for _, target in pairs(players) do
        if target ~= player then
            local username = string.lower(target.Name)
            local displayName = string.lower(target.DisplayName)
            local searchQuery = string.lower(partialName)
            if string.find(username, searchQuery) or string.find(displayName, searchQuery) then
                return target
            end
        end
    end
    return nil
end

-- Function to teleport to player
local function teleportToPlayer()
    local targetName = nameBox.Text
    if targetName and targetName ~= "" then
        local targetPlayer = findPlayerByName(targetName)
        if targetPlayer and targetPlayer.Character then
            local targetRoot = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
            if targetRoot then
                local character = player.Character
                if character then
                    local rootPart = character:FindFirstChild("HumanoidRootPart")
                    if rootPart then
                        rootPart.CFrame = targetRoot.CFrame + Vector3.new(0, 3, 0)  -- Teleport slightly above
                    end
                end
            end
        end
    end
end

-- Connect button click to teleport function
tpButton.MouseButton1Click:Connect(teleportToPlayer)

Features & Information

Tp to player

Community Comments (4)

dasxdasxMar 30, 2025

Did you do it through chatgpt? if you do don't forget to remove the comments to make it less obvious

LindseyLindseyApr 1, 2025

@exploiting543, please dont encourage people to hide the chatgpt tags, using chatgpt should be a taboo. there's a difference between using it to learn and using it to SKID. we do NOT need anymore garbage filler posts.

dasxdasxApr 1, 2025

@Lindsey I know that these children use ChatGPT to create scripts but by the tags -- from ChatGPT it is easily noticeable that she created in ChatGPT and usually does not hide these tags because they think they will not be noticed

gostpavel66gostpavel66May 5, 2026

yes it teleports me, but every time i die it just dissappears, ai made script.

More Scripts for Universal Scripts