Universal Script 📌
4.2k Views
98 Executions

Player teleporter

Universal Script 📌
ChatGPT
ChatGPTPublished 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

teleports to people (made with chatgpt)

Updates

  1. Script edited: Create script

View Raw
-- Create the GUI
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TeleportButton = Instance.new("TextButton")

ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
Frame.Parent = ScreenGui
Frame.Size = UDim2.new(0, 200, 0, 100)
Frame.Position = UDim2.new(0.5, -100, 0.5, -50)
Frame.BackgroundColor3 = Color3.fromRGB(128, 128, 128)
Frame.Active = true
Frame.Draggable = true

TeleportButton.Parent = Frame
TeleportButton.Size = UDim2.new(1, 0, 0, 50)
TeleportButton.Position = UDim2.new(0, 0, 0.5, -25)
TeleportButton.Text = "Teleport"
TeleportButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)

local playerList = {}
for _, player in pairs(game.Players:GetPlayers()) do
    if player ~= game.Players.LocalPlayer then
        table.insert(playerList, player)
    end
end

local selectedPlayer = nil

-- Create a dropdown to select players
local playerDropdown = Instance.new("TextLabel")
playerDropdown.Parent = Frame
playerDropdown.Size = UDim2.new(1, 0, 0, 50)
playerDropdown.Position = UDim2.new(0, 0, 0, 0)
playerDropdown.Text = "Select Player"

local function updateDropdown()
    playerDropdown.Text = "Select Player: " .. (selectedPlayer and selectedPlayer.Name or "None")
end

TeleportButton.MouseButton1Click:Connect(function()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!