-- LocalScript inside StarterPlayerScripts local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoidRootPart = character:WaitForChild("HumanoidRootPart") -- Update character reference on respawn player.CharacterAdded:Connect(function(newCharacter) character = newCharacter humanoidRootPart = character:WaitForChild("HumanoidRootPart") end) -- UI Setup local screenGui = Instance.new("ScreenGui") screenGui.Name = "TeapotGui" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local uiListLayout = Instance.new("UIListLayout") uiListLayout.FillDirection = Enum.FillDirection.Horizontal uiListLayout.Padding = UDim.new(0, 10) uiListLayout.Parent = screenGui -- Create Button Utility local function createButton(name, color) local button = Instance.new("TextButton") button.Size = UDim2.new(0, 200, 0, 40) button.BackgroundColor3 = color button.TextColor3 = Color3.new(1, 1, 1) button.Font = Enum.Font.GothamBold button.TextSize = 18 button.Text = name button.Name = name button.Parent = screenGui button.BorderSizePixel = 0 button.AutoButtonColor = true button.BackgroundTransparency = 0.1 return button end -- Buttons local teleportButton = createButton("Loop TP to End", Color3.fromRGB(75, 0, 130)) local deleteButton = createButton("Loop Delete Teapots", Color3.fromRGB(200, 50, 50)) -- Teleport Loop Logic local isTeleporting = false local function teleportToFinish() local teapotsFolder = workspace:FindFirstChild("Teapots") if teapotsFolder then local finishPart = teapotsFolder:FindFirstChild("Finish") if finishPart and humanoidRootPart then humanoidRootPart.CFrame = finishPart.CFrame + Vector3.new(0, 5, 0) end end end teleportButton.MouseButton1Click:Connect(function() isTeleporting = not isTeleporting teleportButton.Text = isTeleporting and "Stop TP" or "Loop TP to End" if isTeleporting then task.spawn(function() while isTeleporting do teleportToFinish() task.wait(0.1) -- Fast interval end end) end end) -- Teapot Deletion Loop local isDeleting = false local teapotFolder = workspace:WaitForChild("Teapots"):WaitForChild("Pots") deleteButton.MouseButton1Click:Connect(function() isDeleting = not isDeleting deleteButton.Text = isDeleting and "Stop Deleting" or "Loop Delete Teapots" end) RunService.Heartbeat:Connect(function() if isDeleting and teapotFolder then for _, item in ipairs(teapotFolder:GetChildren()) do if item.Name == "Teapot" then item:Destroy() end end end end)