Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local KillGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local PlayerBox = Instance.new("TextBox")
- local KillButton = Instance.new("TextButton")
- KillGui.Name = "KillGui"
- KillGui.Parent = game.Players.LocalPlayer.PlayerGui
- Frame.Parent = KillGui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.Position = UDim2.new(-0.00181818183, 0, 0.241992876, 0)
- Frame.Size = UDim2.new(0, 356, 0, 171)
- PlayerBox.Name = "PlayerBox"
- PlayerBox.Parent = Frame
- PlayerBox.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
- PlayerBox.Position = UDim2.new(0.224719107, 0, 0.146198824, 0)
- PlayerBox.Size = UDim2.new(0, 200, 0, 50)
- PlayerBox.Font = Enum.Font.SourceSans
- PlayerBox.Text = "Players Name"
- PlayerBox.TextColor3 = Color3.new(0, 1, 0)
- PlayerBox.TextScaled = true
- PlayerBox.TextSize = 14
- PlayerBox.TextWrapped = true
- KillButton.Name = "KillButton"
- KillButton.Parent = Frame
- KillButton.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
- KillButton.BorderColor3 = Color3.new(0.333333, 1, 0)
- KillButton.BorderSizePixel = 0
- KillButton.Position = UDim2.new(0.230337083, 0, 0.543859661, 0)
- KillButton.Size = UDim2.new(0, 200, 0, 50)
- KillButton.Font = Enum.Font.SourceSans
- KillButton.Text = "Kill Player"
- KillButton.TextColor3 = Color3.new(0, 1, 0)
- KillButton.TextScaled = true
- KillButton.TextSize = 14
- KillButton.TextWrapped = true
- KillGui.ResetOnSpawn = false
- KillButton.MouseButton1Click:connect(function()
- local plr = PlayerBox.Text
- game.Players[plr].Character.Humanoid.Health = 0
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement