DanielYoes

FE - ADMIn

Jun 2nd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.55 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. spam = false
  3. GodMode = false
  4. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("".."[Admin Cmds Loaded!]", "All")
  5. Player.Chatted:connect(function(Command)
  6. function Kill()
  7. local Target = Command:sub(7)
  8. game.Players.LocalPlayer.Character.Humanoid.Name = 1
  9. local l = game.Players.LocalPlayer.Character["1"]:Clone()
  10. l.Parent = game.Players.LocalPlayer.Character l.Name = "Humanoid"
  11. wait(0.1)
  12. game.Players.LocalPlayer.Character["1"]:Destroy()
  13. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  14. wait(0.1)
  15. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[Target].Character.HumanoidRootPart.CFrame * CFrame.new(-1.5,0,0) wait(0.1)
  16. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[Target].Character.HumanoidRootPart.CFrame * CFrame.new(-1.5,0,0) wait(0.2)
  17. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(10000,0,0)
  18. end
  19.  
  20. function Teleport()
  21. game.Workspace[Player.Name].HumanoidRootPart.CFrame = game.Workspace[Command:sub(5)].HumanoidRootPart.CFrame
  22. end
  23.  
  24. function Fly()
  25. repeat wait()
  26. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  27. local mouse = game.Players.LocalPlayer:GetMouse()
  28. repeat wait() until mouse
  29. local plr = game.Players.LocalPlayer
  30. local torso = plr.Character.Torso
  31. local flying = true
  32. local deb = true
  33. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  34. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  35. local maxspeed = 50
  36. local speed = 0
  37.  
  38. function Fly()
  39. local bg = Instance.new("BodyGyro", torso)
  40. bg.P = 9e4
  41. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  42. bg.cframe = torso.CFrame
  43. local bv = Instance.new("BodyVelocity", torso)
  44. bv.velocity = Vector3.new(0,0.1,0)
  45. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  46. repeat wait()
  47. plr.Character.Humanoid.PlatformStand = true
  48. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  49. speed = speed+.5+(speed/maxspeed)
  50. if speed > maxspeed then
  51. speed = maxspeed
  52. end
  53. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  54. speed = speed-1
  55. if speed < 0 then
  56. speed = 0
  57. end
  58. end
  59. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  60. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  61. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  62. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  63. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  64. else
  65. bv.velocity = Vector3.new(0,0.1,0)
  66. end
  67. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  68. until not flying
  69. ctrl = {f = 0, b = 0, l = 0, r = 0}
  70. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  71. speed = 0
  72. bg:Destroy()
  73. bv:Destroy()
  74. plr.Character.Humanoid.PlatformStand = false
  75. end
  76. mouse.KeyDown:connect(function(key)
  77. if key:lower() == "e" then
  78. if flying then flying = false
  79. else
  80. flying = true
  81. Fly()
  82. end
  83. elseif key:lower() == "w" then
  84. ctrl.f = 1
  85. elseif key:lower() == "s" then
  86. ctrl.b = -1
  87. elseif key:lower() == "a" then
  88. ctrl.l = -1
  89. elseif key:lower() == "d" then
  90. ctrl.r = 1
  91. end
  92. end)
  93. mouse.KeyUp:connect(function(key)
  94. if key:lower() == "w" then
  95. ctrl.f = 0
  96. elseif key:lower() == "s" then
  97. ctrl.b = 0
  98. elseif key:lower() == "a" then
  99. ctrl.l = 0
  100. elseif key:lower() == "d" then
  101. ctrl.r = 0
  102. end
  103. end)
  104. Fly()
  105. end
  106.  
  107. function God()
  108. if GodMode == true then
  109. game.Players.LocalPlayer.Character.Humanoid.Name = 1
  110. local l = game.Players.LocalPlayer.Character["1"]:Clone()
  111. l.Parent = game.Players.LocalPlayer.Character
  112. l.Name = "Humanoid"
  113. wait(0.1)
  114. game.Players.LocalPlayer.Character["1"]:Destroy()
  115. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  116. game.Players.LocalPlayer.Character.Animate.Disabled = true
  117. wait(0.1)
  118. game.Players.LocalPlayer.Character.Animate.Disabled = false
  119. game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None"
  120. end
  121. end
  122.  
  123. function Spam()
  124. local Action = game.Players:GetPlayers()
  125. for i = 1,#Action do
  126. Action[i].Chatted:connect(function(Message)
  127. if spam == true then
  128. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("".."["..Action[i].Name.."]".." "..Message, "All")
  129. end
  130. end)
  131. end
  132. end
  133.  
  134. function Speed()
  135. game.Workspace[Player.Name].Humanoid.WalkSpeed = Command:sub(11)
  136. end
  137.  
  138. function Jump()
  139. game.Workspace[Player.Name].Humanoid.JumpPower = Command:sub(10)
  140. end
  141.  
  142. function Invisible()
  143. Local = game:GetService('Players').LocalPlayer
  144. Char = Local.Character
  145. touched,tpdback = false, false
  146. Local.CharacterAdded:connect(function(char)
  147. if script.Disabled ~= true then
  148. wait(.25)
  149. loc = Char.HumanoidRootPart.Position
  150. Char:MoveTo(box.Position + Vector3.new(0,.5,0))
  151. end
  152. end)
  153. game:GetService('UserInputService').InputBegan:connect(function(key)
  154. if key.KeyCode == Enum.KeyCode.Equals then
  155. if script.Disabled ~= true then
  156. script.Disabled = true
  157. print('you may re-execute')
  158. end
  159. end
  160. end)
  161. box = Instance.new('Part',workspace)
  162. box.Anchored = true
  163. box.CanCollide = true
  164. box.Size = Vector3.new(10,1,10)
  165. box.Position = Vector3.new(0,10000,0)
  166. box.Touched:connect(function(part)
  167. if (part.Parent.Name == Local.Name) then
  168. if touched == false then
  169. touched = true
  170. function apply()
  171. if script.Disabled ~= true then
  172. no = Char.HumanoidRootPart:Clone()
  173. wait(.25)
  174. Char.HumanoidRootPart:Destroy()
  175. no.Parent = Char
  176. Char:MoveTo(loc)
  177. touched = false
  178. end end
  179. if Char then
  180. apply()
  181. end
  182. end
  183. end
  184. end)
  185. repeat wait() until Char
  186. loc = Char.HumanoidRootPart.Position
  187. Char:MoveTo(box.Position + Vector3.new(0,.5,0))
  188. end
  189.  
  190.  
  191. if Command:sub(1,5) == "-Kill" then
  192. Kill()
  193. elseif Command:sub(1,5) == "-kill" then
  194. Kill()
  195. elseif Command:sub(1,5) == "-KILL" then
  196. Kill()
  197. elseif Command:sub(1,9) == "-Speed Me" then
  198. Speed()
  199. elseif Command:sub(1,9) == "-Speed me" then
  200. Speed()
  201. elseif Command:sub(1,9) == "-speed me" then
  202. Speed()
  203. elseif Command:sub(1,9) == "-SPEED Me" then
  204. Speed()
  205. elseif Command:sub(1,8) == "-Jump Me" then
  206. Jump()
  207. elseif Command:sub(1,8) == "-Jump me" then
  208. Jump()
  209. elseif Command:sub(1,8) == "-jump me" then
  210. Jump()
  211. elseif Command:sub(1,8) == "-JUMP ME" then
  212. Jump()
  213. elseif Command:sub(1,8) == "-Invs Me" then
  214. Invisible()
  215. elseif Command:sub(1,8) == "-Invs me" then
  216. Invisible()
  217. elseif Command:sub(1,8) == "-invs me" then
  218. Invisible()
  219. elseif Command:sub(1,8) == "-INVS ME" then
  220. Invisible()
  221. elseif Command:sub(1,3) == "-Tp" then
  222. Teleport()
  223. elseif Command:sub(1,3) == "-tp" then
  224. Teleport()
  225. elseif Command:sub(1,3) == "-TP" then
  226. Teleport()
  227. elseif Command:sub(1,7) == "-Fly Me" then
  228. Fly()
  229. elseif Command:sub(1,7) == "-Fly me" then
  230. Fly()
  231. elseif Command:sub(1,7) == "-fly me" then
  232. Fly()
  233. elseif Command:sub(1,7) == "-FLY ME" then
  234. Fly()
  235. elseif Command:sub(1,7) == "-God Me" then
  236. GodMode = true
  237. God()
  238. elseif Command:sub(1,7) == "-God me" then
  239. GodMode = true
  240. God()
  241. elseif Command:sub(1,7) == "-god me" then
  242. GodMode = true
  243. God()
  244. elseif Command:sub(1,7) == "-GOD ME" then
  245. GodMode = true
  246. God()
  247. elseif Command:sub(1,7) == "-Spam" then
  248. Spam()
  249. spam = not spam
  250. elseif Command:sub(1,5) == "-spam" then
  251. Spam()
  252. spam = not spam
  253. elseif Command:sub(1,5) == "-SPAM" then
  254. Spam()
  255. spam = not spam
  256. end
  257.  
  258. end)
  259.  
  260.  
  261. game.Workspace[Player.Name].Humanoid.Name = 1
  262. local l = game.Workspace[Player.Name]["1"]:Clone()
  263. l.Parent = game.Workspace[Player.Name]
  264. l.Name = "Humanoid"
  265. wait(0.1)
  266. game.Workspace[Player.Name]["1"]:Destroy()
  267. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  268. game.Workspace[Player.Name].Animate.Disabled = true
  269. wait(0.1)
  270. game.Workspace[Player.Name].Animate.Disabled = false
  271. game.Workspace[Player.Name].Humanoid.DisplayDistanceType = "None"
Add Comment
Please, Sign In to add comment