Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local KillGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Close = Instance.new("TextButton")
- local Drag = Instance.new("TextButton")
- local Kill = Instance.new("TextButton")
- local Box = Instance.new("TextBox")
- local KillAll = Instance.new("TextButton")
- local Open = Instance.new("TextButton")
- -- Properties
- KillGui.Name = "KillGui"
- KillGui.Parent = game.CoreGui
- Frame.Parent = KillGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BackgroundTransparency = 0.5
- Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- Close.Name = "Close"
- Close.Parent = Frame
- Close.BackgroundColor3 = Color3.new(1, 0, 0)
- Close.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- Close.Font = Enum.Font.SourceSansBold
- Close.FontSize = Enum.FontSize.Size14
- Close.Text = "Close"
- Close.TextColor3 = Color3.new(0, 0, 0)
- Close.TextSize = 14
- Drag.Name = "Drag"
- Drag.Parent = Frame
- Drag.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
- Drag.Position = UDim2.new(0.200000003, 0, 0, 0)
- Drag.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- Drag.AutoButtonColor = false
- Drag.Font = Enum.Font.SourceSansBold
- Drag.FontSize = Enum.FontSize.Size14
- Drag.Text = "Drag"
- Drag.TextColor3 = Color3.new(0, 0, 0)
- Drag.TextSize = 14
- Kill.Name = "Kill"
- Kill.Parent = Frame
- Kill.BackgroundColor3 = Color3.new(0.407843, 0.407843, 0.407843)
- Kill.Position = UDim2.new(0.100000001, 0, 0.349999994, 0)
- Kill.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
- Kill.Font = Enum.Font.SourceSansBold
- Kill.FontSize = Enum.FontSize.Size32
- Kill.Text = "Kill"
- Kill.TextColor3 = Color3.new(0, 0, 0)
- Kill.TextSize = 30
- Box.Name = "Box"
- Box.Parent = Frame
- Box.BackgroundColor3 = Color3.new(0.407843, 0.407843, 0.407843)
- Box.Position = UDim2.new(0.400000006, 0, 0.349999994, 0)
- Box.Size = UDim2.new(0.5, 0, 0.200000003, 0)
- Box.Font = Enum.Font.SourceSansBold
- Box.FontSize = Enum.FontSize.Size24
- Box.TextColor3 = Color3.new(0, 0, 0)
- Box.TextSize = 20
- KillAll.Name = "KillAll"
- KillAll.Parent = Frame
- KillAll.BackgroundColor3 = Color3.new(0.407843, 0.407843, 0.407843)
- KillAll.Position = UDim2.new(0.300000012, 0, 0.730000019, 0)
- KillAll.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)
- KillAll.Font = Enum.Font.SourceSansBold
- KillAll.FontSize = Enum.FontSize.Size32
- KillAll.Text = "Kill All"
- KillAll.TextColor3 = Color3.new(0, 0, 0)
- KillAll.TextSize = 30
- Open.Name = "Open"
- Open.Parent = KillGui
- Open.BackgroundColor3 = Color3.new(0, 1, 0)
- Open.Position = UDim2.new(0, 0, 0.5, 0)
- Open.Size = UDim2.new(0.0500000007, 0, 0.0500000007, 0)
- Open.Visible = false
- Open.Font = Enum.Font.SourceSansBold
- Open.FontSize = Enum.FontSize.Size32
- Open.Text = "Open"
- Open.TextColor3 = Color3.new(0, 0, 0)
- Open.TextSize = 30
- local frame = game.CoreGui.KillGui.Frame
- held = false
- base = UDim2.new(0,0,0,0)
- frame.Drag.MouseButton1Down:connect(function(x,y)
- base = UDim2.new(0,x,0,y) - frame.Position
- held = true
- end)
- frame.Drag.MouseButton1Up:connect(function()
- base = UDim2.new(0,0,0,0)
- held = false
- end)
- frame.Drag.Parent.MouseMoved:connect(function(x,y)
- if held then
- frame.Position = UDim2.new(0,x,0,y) - base
- end
- end)
- frame.Close.MouseButton1Click:connect(function()
- frame.Visible = false
- frame.Parent.Open.Visible = true
- end)
- frame.Parent.Open.MouseButton1Click:connect(function()
- frame.Visible = true
- frame.Parent.Open.Visible = false
- end)
- frame.Kill.MouseButton1Click:connect(function()
- game.ReplicatedStorage.RemoteEvents.Kill:FireServer(workspace:FindFirstChild(frame.Box.Text).Humanoid)
- end)
- frame.KillAll.MouseButton1Click:connect(function()
- for _,v in pairs(game.Players:GetChildren()) do
- game.ReplicatedStorage.RemoteEvents.Kill:FireServer(v.Character.Humanoid)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement