local player = game.Players.LocalPlayer -- Create the ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "KickUI" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") -- Create the Kick Button local button = Instance.new("TextButton") button.Name = "KickButton" button.Size = UDim2.new(0.25, 0, 0.08, 0) button.Position = UDim2.new(0.5, 0, 0.9, 0) button.AnchorPoint = Vector2.new(0.5, 0.5) button.BackgroundColor3 = Color3.fromRGB(200, 50, 50) button.TextColor3 = Color3.new(1, 1, 1) button.Font = Enum.Font.GothamBold button.TextSize = 20 button.Text = "Kick Me" button.TextScaled = true button.Parent = screenGui -- Round corners local uiCorner = Instance.new("UICorner") uiCorner.CornerRadius = UDim.new(0, 12) uiCorner.Parent = button -- Kick logic button.MouseButton1Click:Connect(function() player:Kick("You clicked the kick button!") end)