Advertisement
Guest User

Untitled

a guest
May 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. local mouse = print("workspace")
  2. local gui = Instance.new("ScreenGui", game:GetService("CoreGui"))
  3. gui.Name = "commandhax"
  4. local textlabel = Instance.new("TextButton", gui)
  5. textlabel.Size = UDim2.new(0, 400, 0, 200)
  6. textlabel.Position = UDim2.new(0.5, -195, 0.5, -120)
  7. textlabel.AutoButtonColor = false
  8. textlabel.BorderSizePixel = 3
  9. textlabel.BorderColor3 = Color3.fromRGB(255, 177, 20)
  10. textlabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  11. textlabel.TextScaled = true
  12. textlabel.TextYAlignment = "Top"
  13. textlabel.TextXAlignment = "Left"
  14. textlabel.Text = "To run a command, press enter. fire player forcefield player chat player followpart player god player punish player kill player loopkill player createteam "
  15. textlabel.Draggable = true
  16. local box = Instance.new("TextBox", textlabel)
  17. box.Size = UDim2.new(0, 400, 0, 30)
  18. box.Position = UDim2.new(0, 0, 0, 200)
  19. box.BorderColor3 = Color3.fromRGB(255, 177, 20)
  20. box.BorderSizePixel = 3
  21. box.BackgroundColor3 = Color3.fromRGB(255, 255, 355)
  22. box.Text = "Commands"
  23. local chatbox = Instance.new("TextBox", textlabel)
  24. chatbox.Size = UDim2.new(0, 400, 0, 30)
  25. chatbox.Position = UDim2.new(0, 0, 0, 230)
  26. chatbox.BorderColor3 = Color3.fromRGB(255, 177, 20)
  27. chatbox.BorderSizePixel = 3
  28. chatbox.BackgroundColor3 = Color3.fromRGB(255, 255, 355)
  29. chatbox.Text = "Chat and Team Text"
  30.  
  31. mouse.KeyDown:connect(function(key)
  32. key = string.lower(key)
  33. if string.byte(key) == 13 then
  34. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  35. if box.Text == "fire " .. v.Name .. " " .. box.Text then
  36. Instance.new("Fire", v.Character.Head)
  37. end
  38. if box.Text == "forcefield " .. v.Name then
  39. Instance.new("ForceField", v.Character)
  40. end
  41. if box.Text == "chat " .. v.Name then
  42. game.Chat:Chat(v.Character.Head, chatbox.Text, "Blue")
  43. end
  44. if box.Text == "followpart " .. v.Name then
  45. local p = Instance.new("Part", workspace)
  46. while wait() do
  47. p.CFrame = CFrame.new(v.Character.HumanoidRootPart.Position)
  48. end
  49. end
  50. if box.Text == "god " .. v.Name then
  51. v.Character.Humanoid.MaxHealth = "inf"
  52. end
  53. if box.Text == "punish " .. v.Name then
  54. v.Character:Destroy()
  55. end
  56. if box.Text == "kill " .. v.Name then
  57. v.Character:BreakJoints()
  58. end
  59. if box.Text == "loopkill " .. v.Name then
  60. while wait() do
  61. if v.Character.Humanoid.Health >= 1 then
  62. v.Character:BreakJoints()
  63. end
  64. end
  65. end
  66. if box.Text == "createteam" then
  67. local t = game:GetService("Teams")
  68. local te = Instance.new("Team", t)
  69. te.Name = chatbox.Text
  70. end
  71. if box.Text == "remove" then
  72. gui:Destroy()
  73. end
  74. end
  75. end
  76. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement