-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer -- GUI local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "spam kili" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 280, 0, 200) Frame.Position = UDim2.new(0.5, -140, 0.5, -100) Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Frame.BorderSizePixel = 0 Frame.Active = true Frame.Draggable = true Frame.Parent = ScreenGui local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 30) Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20) Title.Text = "TP Player + Spam" Title.TextColor3 = Color3.new(1,1,1) Title.Font = Enum.Font.SourceSansBold Title.TextSize = 18 Title.Parent = Frame local NameBox = Instance.new("TextBox") NameBox.Size = UDim2.new(0.9, 0, 0, 30) NameBox.Position = UDim2.new(0.05, 0, 0, 40) NameBox.PlaceholderText = "Nama Player" NameBox.Text = "" NameBox.ClearTextOnFocus = false NameBox.TextColor3 = Color3.new(1,1,1) NameBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) NameBox.Parent = Frame local DistLabel = Instance.new("TextLabel") DistLabel.Size = UDim2.new(0.9, 0, 0, 20) DistLabel.Position = UDim2.new(0.05, 0, 0, 80) DistLabel.Text = "(studs):" DistLabel.TextColor3 = Color3.new(1,1,1) DistLabel.BackgroundTransparency = 1 DistLabel.Parent = Frame local DistBox = Instance.new("TextBox") DistBox.Size = UDim2.new(0.9, 0, 0, 25) DistBox.Position = UDim2.new(0.05, 0, 0, 100) DistBox.Text = "5" DistBox.ClearTextOnFocus = false DistBox.TextColor3 = Color3.new(1,1,1) DistBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) DistBox.Parent = Frame local ToggleBtn = Instance.new("TextButton") ToggleBtn.Size = UDim2.new(0.9, 0, 0, 35) ToggleBtn.Position = UDim2.new(0.05, 0, 0, 140) ToggleBtn.Text = "Spam Mode" ToggleBtn.TextColor3 = Color3.new(1,1,1) ToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0) ToggleBtn.Parent = Frame -- Variables local Spamming = false local Connection local function GetPlayerByName(name) name = name:lower() for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer and p.Name:lower():find(name) then return p end end return nil end ToggleBtn.MouseButton1Click:Connect(function() Spamming = not Spamming if Spamming then ToggleBtn.Text = "STOP Start" ToggleBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) Connection = RunService.Heartbeat:Connect(function() if not Spamming then return end local target = GetPlayerByName(NameBox.Text) if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then local dist = tonumber(DistBox.Text) or 5 local root = target.Character.HumanoidRootPart local offset = Vector3.new(0, 0, dist) if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then LocalPlayer.Character.HumanoidRootPart.CFrame = root.CFrame * CFrame.new(offset) end end end) else ToggleBtn.Text = "Start" ToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0) if Connection then Connection:Disconnect() Connection = nil end end end) -- Auto close kalau player mati / respawn LocalPlayer.CharacterAdded:Connect(function() if Spamming then Spamming = false ToggleBtn.Text = "START SPAM TP" ToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0) if Connection then Connection:Disconnect() Connection = nil end end end) print("TP GUI Loaded")