Universal Script 📌
6.0k Views
104 Executions

TELEPORT IMPROVED MADE BY ME

Universal Script 📌
Graz_lez
Graz_lez100K 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

I've added a DBZ teleport sound. Improved the teleportation script.

View Raw
-- Teleport to Selected Player Script
-- Place this script in a LocalScript within a GUI button or other interface

-- Define variables for player and teleport function
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local TeleportSoundId = "4826619573" -- DBZ teleport sound Roblox ID

-- Function to teleport to a selected player
local function teleportToPlayer(selectedName)
    -- Find the target player by partial username or display name
    local targetPlayer = nil
    local lowerSelectedName = selectedName:lower()
    for _, player in ipairs(Players:GetPlayers()) do
        if player.Name:lower():find(lowerSelectedName) or player.DisplayName:lower():find(lowerSelectedName) then
            targetPlayer = player
            break
        end
    end

    if not targetPlayer or not targetPlayer.Character then
        warn("Target player not found or has no character.")
        return
    end

    -- Ensure the local player has a character
    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
        warn("Local player character is not ready.")
        return
    end

    -- Play teleport sound
    local sound = Instance.new("Sound")
    sound.SoundId = "rbxassetid://" .. TeleportSoundId
    sound.Parent = LocalPlayer.Character
    sound:Play()

    -- Get the target player's position
    local targetRootPart = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
    if targetRootPart then


Comments

2
Log in to join the conversation. Login
Graz_lez's profile picture
Graz_lezUploader2 years ago(edited)

@Exort I cannot be the only one bro

1
Exort's profile picture
Exort2 years ago(edited)

goofy chatgpt

1