Advertisement
FantasyGamer

Anonymous's admin commands 2

May 7th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.03 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local event = plr.Chatted
  3. local msg
  4. local folder
  5. local sound
  6. local hint = Instance.new("Hint", workspace)
  7. local commands = {";play ID", ";GV",";loop toggle",";stop",";btools",";resume",";cbtools",";inject",";kill",";bring",";to"
  8.                  ,";god","ungod",";anchor",";unanchor" }
  9.  
  10. plr.Character.Humanoid.Changed:Connect(function()
  11. --If health == 0 then hint:Destroy()--
  12. local human = plr.Character.Humanoid
  13. local health = human.Health
  14. if health <= 0 then
  15. hint:Destroy()
  16. end
  17. end)
  18.  
  19. function getvisualizer()
  20.     --[[
  21. \\Visualizer creator : Anonymous5044
  22.     --]]
  23. local char = plr.Character
  24. local head = char.Head
  25.  
  26. if head:FindFirstChild("MyAssIsSoCool") then
  27. head:FindFirstChild("MyAssIsSoCool"):Destroy()
  28. end
  29. local model = Instance.new("Model", head)
  30. _G.ball = Instance.new("Part", model)
  31. local ball = _G.ball
  32. _G.sound2 = _G.sound
  33. local sound = _G.sound2
  34. _G.light = Instance.new("PointLight", ball)
  35. local light = _G.light
  36. local force = Instance.new("BodyGyro",ball)
  37. local BOX = Instance.new("SelectionBox", ball)
  38. BOX.LineThickness = 0.050
  39. BOX.Color3 = Color3.new(255, 0, 0)
  40. --local id2 = "rbxassetid://"..id
  41.  
  42. --sound.SoundId = id2
  43.  
  44. ball.Anchored = true
  45. model.Name = "MyAssIsSoCool"
  46. ball.CanCollide = false
  47. sound.Volume = 1
  48. ball.Shape = "Block"
  49. ball.BrickColor = BrickColor.new("Dark green")
  50. ball.Material = "Neon"
  51. local rot = 0
  52. game.Lighting.TimeOfDay = "00:00:00"
  53. game.Lighting.FogColor = Color3.new(0,0,0)
  54. game.Lighting.Ambient = Color3.new(0,0,0)
  55. game.Lighting.ColorShift_Bottom = Color3.new(0,0,0)
  56. game.Lighting.ColorShift_Top = Color3.new(0,0,0)
  57. game.Lighting.Brightness = 5
  58. game.Lighting.FogColor = Color3.new(0,0,0)
  59. game.Lighting.FogEnd = 30
  60. game.Lighting.FogStart = 0
  61. while wait() do
  62. --BOX.Adornee = ball
  63.     rot = rot+1
  64.  
  65. local sp = sound.PlaybackLoudness/220
  66. --ball.BrickColor = BrickColor.Random()
  67. ball.CFrame = head.CFrame*CFrame.new(0,3,0)
  68. ball.Rotation = Vector3.new(rot+6,rot,rot)
  69. ball.Size = Vector3.new(sp,sp,sp)
  70. light.Range = sp+5
  71. light.Brightness = sp+3
  72.  
  73.  
  74. end
  75. if rot >= 50 then
  76. rot =0
  77. end
  78. end
  79.  
  80. function create()
  81. local folder = Instance.new("Folder", plr.PlayerGui)
  82. _G.sound = Instance.new("Sound", folder)
  83. end
  84. create()
  85.  
  86. function tools()
  87.     local hammer = Instance.new("HopperBin", plr.Backpack)
  88.     local grab = Instance.new("HopperBin", plr.Backpack)
  89.     local clone = Instance.new("HopperBin", plr.Backpack)
  90.     local add = Instance.new("HopperBin", plr.Backpack)
  91. local canAdd = false
  92. add.Name = "Add tool"
  93. add.Selected:Connect(function()
  94. canAdd = true
  95. end)
  96.  
  97. add.Deselected:Connect(function()
  98. canAdd = false
  99. end)
  100.  
  101. local mouse  = plr:GetMouse()
  102.  
  103. mouse.Button1Down:Connect(function()
  104. if canAdd == true then
  105. local part = Instance.new("Part", workspace)
  106. part.CFrame = mouse.Target.CFrame*CFrame.new(0,5,0)
  107. end
  108. end)
  109.  
  110. -----
  111.  
  112. local btools = {hammer, grab, clone}
  113.  
  114. for i=1,3 do
  115. if i== 1 then
  116. local o = btools[i]
  117. btools[i].Name = "Hammer"
  118. o.BinType = "Hammer"
  119. o.TextureId = "rbxassetid://145360580"
  120. elseif i==2 then
  121.     local o = btools[i]
  122. btools[i].Name = "Grab"
  123. o.BinType = "Grab"
  124. o.TextureId = "rbxassetid://270648006"
  125. elseif i ==3 then
  126.     local o = btools[i]
  127. btools[i].Name = "Clone"
  128. o.BinType = "Clone"
  129. o.TextureId = "rbxassetid://321433365"
  130. end
  131. end
  132. end
  133.  
  134. function cbtools()
  135. local mouse = plr:GetMouse()
  136. local event1 = mouse.Button1Down
  137. local event2 = mouse.Button2Down
  138. event1:Connect(function()
  139. local obj = mouse.Target
  140. obj:Destroy()
  141. end)
  142.  
  143. event2:Connect(function()
  144. local target = mouse.Target
  145. local obj = target:Clone()
  146. print(obj.Parent)
  147. obj.CFrame = target.CFrame*CFrame.new(0,10,0)
  148. obj.Parent = target.Parent
  149. end)
  150.  
  151. end
  152.  
  153. event:Connect(function(msg)
  154. local msg = string.lower(msg)
  155. if string.sub(msg,1,6) == ";play " then
  156.     local id = string.sub(msg,7)
  157. _G.sound.SoundId = "rbxassetid://"..id
  158. _G.sound:Play()
  159. local Asset = game:GetService("MarketplaceService"):GetProductInfo(id)
  160. hint.Text = "Playing: "..tostring(Asset.Name)
  161. elseif string.sub(msg,1,7) == ";btools" then
  162.     tools()
  163. elseif string.sub(msg,1,5) == ";loop" then
  164. if _G.sound.Looped == true then
  165. _G.sound.Looped = false
  166. else _G.sound.Looped = true
  167. end
  168. elseif string.sub(msg,1,8) == ";cbtools" then
  169. cbtools()
  170. elseif string.sub(msg,1,3) == ";gv" then
  171. getvisualizer()
  172. elseif string.sub(msg,1,5) == ";stop" then
  173.     _G.sound:Stop()
  174. elseif string.sub(msg,1,7) == ";resume" then
  175. _G.sound:Resume()
  176. elseif string.sub(msg,1,5) == ";cmds" then
  177. for i=1, #commands do
  178. warn(commands[i])
  179. end
  180. elseif string.sub(msg,1,7) == ";inject" then
  181. local textb = hint.Text
  182. hint.Text = "[-]Inject not avalible[-]"
  183. wait(3)
  184. hint.Text = textb
  185.  
  186. elseif string.sub(msg,1,6) == ";kill " then
  187. local tar = string.sub(string.lower(msg),7)
  188. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  189. if string.find(string.lower(plr.Name), tar) then
  190. hint.Text = "Killed "..plr.Name
  191. plr.Character.Humanoid.Health = 0
  192. end
  193. end
  194.  
  195. elseif string.sub(msg,1,8) == ";anchor " then
  196. local tar = string.sub(string.lower(msg),9)
  197. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  198. if string.find(string.lower(plr.Name), tar) then
  199. hint.Text = "[-]Anchored "..plr.Name.."[-]"
  200. plr.Character.Torso.Anchored = true
  201. end
  202. end
  203.  
  204. elseif string.sub(msg,1,10) == ";unanchor " then
  205. local tar = string.sub(string.lower(msg),11)
  206. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  207. if string.find(string.lower(plr.Name), tar) then
  208. hint.Text = "[-]UnAnchored "..plr.Name.."[-]"
  209. plr.Character.Torso.Anchored = false
  210. end
  211. end
  212.  
  213. elseif string.sub(msg,1,7) == ";bring " then
  214. local tar = string.sub(string.lower(msg),8)
  215. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  216. if string.find(string.lower(plr.Name), tar) then
  217. hint.Text = "[-]Bringed "..plr.Name.."[-]"
  218. plr.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.new(0,6,0)
  219. end
  220. end
  221.  
  222. elseif string.sub(msg,1,4) == ";to " then
  223. local tar = string.sub(string.lower(msg),5)
  224. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  225. if string.find(string.lower(plr.Name), tar) then
  226. game.Players.LocalPlayer.Character.Torso.CFrame = plr.Character.Torso.CFrame*CFrame.new(0,6,0)
  227. hint.Text = "[-]Teleported to "..plr.Name.."[-]"
  228. end
  229. end
  230.  
  231. elseif string.sub(msg,1,5) == ";god " then
  232. local tar = string.sub(string.lower(msg),6)
  233. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  234. if string.find(string.lower(plr.Name), tar) then
  235. hint.Text = "[-]godded "..plr.Name.."[-]"
  236. plr.Character.Humanoid.MaxHealth = "2e9"
  237. wait(1)
  238. plr.Character.Humanoid.Health = "2e9"
  239. end
  240. end
  241.  
  242. elseif string.sub(msg,1,7) == ";ungod " then
  243. local tar = string.sub(string.lower(msg),8)
  244. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  245. if string.find(string.lower(plr.Name), tar) then
  246. hint.Text = "[-]Ungodded "..plr.Name.."[-]"
  247. plr.Character.Humanoid.MaxHealth = "100"
  248. plr.Character.Humanoid.Health = "100"
  249. end
  250. end
  251.  
  252. elseif string.sub(msg,1,8) == ";volume " then
  253. local tar = string.sub(string.lower(msg),9)
  254. hint.Text = "[-]Volume set to "..tar.."[-]"
  255. _G.sound.Volume = tar
  256.  
  257. elseif string.sub(msg,1,5) == ";lag " then
  258. local tar = string.sub(string.lower(msg),6)
  259. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  260. if string.find(string.lower(plr.Name), tar) then
  261. --hint.Text = "[-]Lagged "..plr.Name.."[-]"
  262. for i=1,100000 do
  263. Instance.new("HopperBin", plr.Backpack)
  264.    
  265. end
  266. end
  267. end
  268.  
  269. elseif string.sub(msg,1,9) == ";protect " then
  270. local tar = string.sub(string.lower(msg),10)
  271. for _,plr in pairs(game:GetService("Players"):GetChildren()) do
  272. if string.find(string.lower(plr.Name), tar) then
  273. hint.Text = "[-]Protecting "..plr.Name.." from HopperCrash.[-]"
  274.  
  275. plr.Backpack.ChildAdded:Connect(function(child)
  276. if child.ClassName == "HopperBin" then
  277. child:Destroy()
  278. end
  279. end)
  280. end
  281. end
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301. end
  302. end)
  303.  
  304. ---------------
  305. -- Start MSG --
  306. ---------------
  307. hint.Text = "[-]fantasygamery's commands injected[-]"
  308. wait(1)
  309. hint.Text = "[-]---------------------------------------[-]"
  310. wait(1)
  311. hint.Text = "[-]fantasygamery's commands injected[-]"
  312.  
  313. ---------------
  314. --           --
  315. ---------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement