To player follow player
Key Required

To player follow player

Tipis tower 2OnlyThePowerOnlyThePower 2.2K views 26 executesUpdated Aug 31, 2025
2.5/ 5(2 votes)
1150% Positive
Lua Script•168 lines (5375 chars)
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

-- ScreenGui utama
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")

-- Tombol utama (abu-abu)
local MainButton = Instance.new("TextButton")
MainButton.Size = UDim2.new(0, 180, 0, 50)
MainButton.Position = UDim2.new(0.5, -90, 0.8, 0)
MainButton.Text = "Open Player GUI"
MainButton.TextColor3 = Color3.fromRGB(255,255,255)
MainButton.BackgroundColor3 = Color3.fromRGB(100,100,100) -- abu abu
MainButton.Font = Enum.Font.GothamBold
MainButton.TextSize = 16
MainButton.Parent = ScreenGui

local UICornerBtn = Instance.new("UICorner")
UICornerBtn.CornerRadius = UDim.new(0, 10)
UICornerBtn.Parent = MainButton

-- Frame GUI kedua (hidden dulu)
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 340, 0, 260)
Frame.Position = UDim2.new(0.5, -170, 0.5, -130)
Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Frame.Active = true
Frame.Draggable = true
Frame.Visible = false
Frame.Parent = ScreenGui

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 12)
UICorner.Parent = Frame

-- Title
local Title = Instance.new("TextLabel")
Title.Text = "Player Control GUI"
Title.Size = UDim2.new(1, 0, 0, 40)
Title.BackgroundTransparency = 1
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 16
Title.Parent = Frame

-- Username Input
local TextBox = Instance.new("TextBox")
TextBox.Size = UDim2.new(0, 260, 0, 40)
TextBox.Position = UDim2.new(0.5, -130, 0, 50)
TextBox.PlaceholderText = "Enter Username..."
TextBox.TextColor3 = Color3.fromRGB(255,255,255)
TextBox.BackgroundColor3 = Color3.fromRGB(50,50,50)
TextBox.Font = Enum.Font.Gotham
TextBox.TextSize = 14
TextBox.Parent = Frame

local UICorner2 = Instance.new("UICorner")
UICorner2.CornerRadius = UDim.new(0, 8)
UICorner2.Parent = TextBox

-- Teleport Button
local ToPlayerBtn = Instance.new("TextButton")
ToPlayerBtn.Size = UDim2.new(0, 260, 0, 40)
ToPlayerBtn.Position = UDim2.new(0.5, -130, 0, 100)
ToPlayerBtn.Text = "▶ Teleport To Player"
ToPlayerBtn.TextColor3 = Color3.fromRGB(255,255,255)
ToPlayerBtn.BackgroundColor3 = Color3.fromRGB(120,120,120) -- abu abu elegan
ToPlayerBtn.Font = Enum.Font.GothamBold
ToPlayerBtn.TextSize = 14
ToPlayerBtn.Parent = Frame

local UICorner3 = Instance.new("UICorner")
UICorner3.CornerRadius = UDim.new(0, 8)
UICorner3.Parent = ToPlayerBtn

-- Follow Button
local FollowBtn = Instance.new("TextButton")
FollowBtn.Size = UDim2.new(0, 260, 0, 40)
FollowBtn.Position = UDim2.new(0.5, -130, 0, 150)
FollowBtn.Text = "👣 Follow Player"
FollowBtn.TextColor3 = Color3.fromRGB(255,255,255)
FollowBtn.BackgroundColor3 = Color3.fromRGB(120,120,120)
FollowBtn.Font = Enum.Font.GothamBold
FollowBtn.TextSize = 14
FollowBtn.Parent = Frame

local UICorner5 = Instance.new("UICorner")
UICorner5.CornerRadius = UDim.new(0, 8)
UICorner5.Parent = FollowBtn

-- Stop Button
local StopBtn = Instance.new("TextButton")
StopBtn.Size = UDim2.new(0, 260, 0, 40)
StopBtn.Position = UDim2.new(0.5, -130, 0, 200)
StopBtn.Text = "■ Stop"
StopBtn.TextColor3 = Color3.fromRGB(255,255,255)
StopBtn.BackgroundColor3 = Color3.fromRGB(150,150,150)
StopBtn.Font = Enum.Font.GothamBold
StopBtn.TextSize = 14
StopBtn.Parent = Frame

local UICorner4 = Instance.new("UICorner")
UICorner4.CornerRadius = UDim.new(0, 8)
UICorner4.Parent = StopBtn

-- Info Label
local Label = Instance.new("TextLabel")
Label.Size = UDim2.new(1, -20, 0, 30)
Label.Position = UDim2.new(0, 10, 1, -35)
Label.BackgroundTransparency = 1
Label.TextColor3 = Color3.fromRGB(200,200,200)
Label.Text = ""
Label.Font = Enum.Font.Gotham
Label.TextSize = 14
Label.Parent = Frame

-- Logic
local follow = false
local targetPlayer = nil

MainButton.MouseButton1Click:Connect(function()
    Frame.Visible = not Frame.Visible
end)

-- Teleport
ToPlayerBtn.MouseButton1Click:Connect(function()
    local username = TextBox.Text
    targetPlayer = Players:FindFirstChild(username)
    
    if targetPlayer and targetPlayer.Character then
        Label.Text = "Teleported to: " .. username
        local root = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
        local targetRoot = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
        if root and targetRoot then
            root.CFrame = targetRoot.CFrame * CFrame.new(2,0,2)
        end
    else
        Label.Text = "Player not found!"
    end
end)

-- Follow
FollowBtn.MouseButton1Click:Connect(function()
    local username = TextBox.Text
    targetPlayer = Players:FindFirstChild(username)
    
    if targetPlayer and targetPlayer.Character then
        follow = true
        Label.Text = "Following: " .. username
        while follow and targetPlayer and targetPlayer.Character and LocalPlayer.Character do
            task.wait(0.1)
            local root = LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
            local targetRoot = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
            if root and targetRoot then
                root.CFrame = root.CFrame:Lerp(targetRoot.CFrame * CFrame.new(2,0,2), 0.3)
            end
        end
    else
        Label.Text = "Player not found!"
    end
end)

-- Stop
StopBtn.MouseButton1Click:Connect(function()
    follow = false
    Label.Text = "Stopped."
end)

Features & Information

Can be used for all games

Community Comments (0)

No comments yet for this script.

More Scripts for Tipis tower 2