Advertisement
supreim

Untitled

Jan 29th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. if script.Parent.className ~= "ScreenGui" then
  2. screengui = Instance.new("ScreenGui")
  3. screengui.Parent = game.Players[script.Parent.Parent.Name].PlayerGui
  4. screengui.Name = "AdminGui"
  5. script.Parent = screengui
  6. script.Name = "EpicFunctionAdminThingy"
  7. mode = "nothing"
  8. end
  9. local btn = Instance.new("TextButton")
  10. btn.Parent = screengui
  11. btn.Position = UDim2.new(.9,0,.1,0)
  12. btn.Size = UDim2.new(.1,0,.02,0)
  13. btn.BackgroundColor3 = Color3.new(1,0,0)
  14. btn.Text = "Kill"
  15. function killMode()
  16. mode = "kill"
  17. end
  18. btn.MouseButton1Click:connect(killMode)
  19. local btn2 = Instance.new("TextButton")
  20. btn2.Parent = screengui
  21. btn2.Position = UDim2.new(.9,0,.12,0)
  22. btn2.Size = UDim2.new(.1,0,.02,0)
  23. btn2.BackgroundColor3 = Color3.new(1,0,0)
  24. btn2.Text = "Explode"
  25. function explodeMode()
  26. mode = "explode"
  27. end
  28. btn2.MouseButton1Click:connect(explodeMode)
  29. local btn3 = Instance.new("TextButton")
  30. btn3.Parent = screengui
  31. btn3.Position = UDim2.new(.9,0,.14,0)
  32. btn3.Size = UDim2.new(.1,0,.02,0)
  33. btn3.BackgroundColor3 = Color3.new(1,0,0)
  34. btn3.Text = "Respawn"
  35. function respawnMode()
  36. mode = "respawn"
  37. end
  38. btn3.MouseButton1Click:connect(respawnMode)
  39. local btn4 = Instance.new("TextButton")
  40. btn4.Parent = screengui
  41. btn4.Position = UDim2.new(.9,0,.16,0)
  42. btn4.Size = UDim2.new(.1,0,.02,0)
  43. btn4.BackgroundColor3 = Color3.new(1,0,0)
  44. btn4.Text = "Kick"
  45. function kickMode()
  46. mode = "kick"
  47. end
  48. btn4.MouseButton1Click:connect(kickMode)
  49. local btn5 = Instance.new("TextButton")
  50. btn5.Parent = screengui
  51. btn5.Position = UDim2.new(.9,0,.18,0)
  52. btn5.Size = UDim2.new(.1,0,.02,0)
  53. btn5.BackgroundColor3 = Color3.new(1,0,0)
  54. btn5.Text = "Delimb"
  55. function delimbMode()
  56. mode = "delimb"
  57. end
  58. btn5.MouseButton1Click:connect(delimbMode)
  59.  
  60. x = game.Players:GetChildren()
  61. for i = 1, #x do
  62. local tb = Instance.new("TextButton")
  63. tb.Parent = screengui
  64. tb.Name = i
  65. tb.BackgroundColor3 = Color3.new(0,1,0)
  66. tb.Size = UDim2.new(.2,0,.05,0)
  67. tb.Text = x[i].Name
  68. tb.Position = UDim2.new(0.7,0,.05*i,0)
  69. function mode()
  70. if mode == "kill" then
  71. x[i].Character:BreakJoints()
  72. end
  73. if mode == "explode" then
  74. local exp = Instance.new("Explosion")
  75. exp.Parent = game.supreim
  76. exp.Position = x[i].Character.Torso.Position
  77. exp.BlastRadius = 5
  78. exp.BlastPressure = 100000
  79. end
  80. if mode == "respawn" then
  81. local m = Instance.new("Model")
  82. m.Parent = game.supreim
  83. m.Name = x[i].Name
  84. local p = Instance.new("Part")
  85. p.Parent = m
  86. p.Name = "Torso"
  87. p.Position = Vector3.new(10000,10000,10000)
  88. p.CanCollide = false
  89. p.Anchored = true
  90. p.Transparency = 1
  91. local h = Instance.new("Humanoid")
  92. h.Parent = m
  93. h.Torso = p
  94. x[i].Character = m
  95. end
  96. if mode == "kick" then
  97. x[i]:Remove()
  98. end
  99. if mode == "delimb" then
  100. v = x[i].Character:GetChildren()
  101. for i = 1, #v do
  102. if v[i].className == "Part" then
  103. if v[i].Size == Vector3.new(1,2,1) then
  104. v[i]:Remove()
  105. end
  106. end
  107. end
  108. end
  109. end
  110. tb.MouseButton1Click:connect(mode)
  111. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement