Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if script.Parent.className ~= "ScreenGui" then
- screengui = Instance.new("ScreenGui")
- screengui.Parent = game.Players[script.Parent.Parent.Name].PlayerGui
- screengui.Name = "AdminGui"
- script.Parent = screengui
- script.Name = "EpicFunctionAdminThingy"
- mode = "nothing"
- end
- local btn = Instance.new("TextButton")
- btn.Parent = screengui
- btn.Position = UDim2.new(.9,0,.1,0)
- btn.Size = UDim2.new(.1,0,.02,0)
- btn.BackgroundColor3 = Color3.new(1,0,0)
- btn.Text = "Kill"
- function killMode()
- mode = "kill"
- end
- btn.MouseButton1Click:connect(killMode)
- local btn2 = Instance.new("TextButton")
- btn2.Parent = screengui
- btn2.Position = UDim2.new(.9,0,.12,0)
- btn2.Size = UDim2.new(.1,0,.02,0)
- btn2.BackgroundColor3 = Color3.new(1,0,0)
- btn2.Text = "Explode"
- function explodeMode()
- mode = "explode"
- end
- btn2.MouseButton1Click:connect(explodeMode)
- local btn3 = Instance.new("TextButton")
- btn3.Parent = screengui
- btn3.Position = UDim2.new(.9,0,.14,0)
- btn3.Size = UDim2.new(.1,0,.02,0)
- btn3.BackgroundColor3 = Color3.new(1,0,0)
- btn3.Text = "Respawn"
- function respawnMode()
- mode = "respawn"
- end
- btn3.MouseButton1Click:connect(respawnMode)
- local btn4 = Instance.new("TextButton")
- btn4.Parent = screengui
- btn4.Position = UDim2.new(.9,0,.16,0)
- btn4.Size = UDim2.new(.1,0,.02,0)
- btn4.BackgroundColor3 = Color3.new(1,0,0)
- btn4.Text = "Kick"
- function kickMode()
- mode = "kick"
- end
- btn4.MouseButton1Click:connect(kickMode)
- local btn5 = Instance.new("TextButton")
- btn5.Parent = screengui
- btn5.Position = UDim2.new(.9,0,.18,0)
- btn5.Size = UDim2.new(.1,0,.02,0)
- btn5.BackgroundColor3 = Color3.new(1,0,0)
- btn5.Text = "Delimb"
- function delimbMode()
- mode = "delimb"
- end
- btn5.MouseButton1Click:connect(delimbMode)
- x = game.Players:GetChildren()
- for i = 1, #x do
- local tb = Instance.new("TextButton")
- tb.Parent = screengui
- tb.Name = i
- tb.BackgroundColor3 = Color3.new(0,1,0)
- tb.Size = UDim2.new(.2,0,.05,0)
- tb.Text = x[i].Name
- tb.Position = UDim2.new(0.7,0,.05*i,0)
- function mode()
- if mode == "kill" then
- x[i].Character:BreakJoints()
- end
- if mode == "explode" then
- local exp = Instance.new("Explosion")
- exp.Parent = game.supreim
- exp.Position = x[i].Character.Torso.Position
- exp.BlastRadius = 5
- exp.BlastPressure = 100000
- end
- if mode == "respawn" then
- local m = Instance.new("Model")
- m.Parent = game.supreim
- m.Name = x[i].Name
- local p = Instance.new("Part")
- p.Parent = m
- p.Name = "Torso"
- p.Position = Vector3.new(10000,10000,10000)
- p.CanCollide = false
- p.Anchored = true
- p.Transparency = 1
- local h = Instance.new("Humanoid")
- h.Parent = m
- h.Torso = p
- x[i].Character = m
- end
- if mode == "kick" then
- x[i]:Remove()
- end
- if mode == "delimb" then
- v = x[i].Character:GetChildren()
- for i = 1, #v do
- if v[i].className == "Part" then
- if v[i].Size == Vector3.new(1,2,1) then
- v[i]:Remove()
- end
- end
- end
- end
- end
- tb.MouseButton1Click:connect(mode)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement