Advertisement
JacksoMykalJunior

GOD MODE

Mar 19th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.77 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = Localplayer
  3. do
  4. print("FE Covered By Red_Jack142 | FE Made By Red_Jack142")
  5. print("Have Fun!")
  6. script.Parent = Player.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent and t.Function then
  32. t.Function(...)
  33. end
  34. end
  35. m.TrigEvent = te
  36. UIS.TrigEvent = te
  37.  
  38. Event.OnServerEvent:Connect(function(plr,io)
  39. if plr~=Player then return end
  40. if io.isMouse then
  41. m.Target = io.Target
  42. m.Hit = io.Hit
  43. else
  44. local b = io.UserInputState == Enum.UserInputState.Begin
  45. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  46. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  47. end
  48. for _,t in pairs(CAS.Actions) do
  49. for _,k in pairs(t.Keys) do
  50. if k==io.KeyCode then
  51. t.Function(t.Name,io.UserInputState,io)
  52. end
  53. end
  54. end
  55. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  57. end
  58. end)
  59. Event.Parent = NLS([==[
  60. local Player = game:GetService("Players").LocalPlayer
  61. local Event = script:WaitForChild("UserInput_Event")
  62.  
  63. local UIS = game:GetService("UserInputService")
  64. local input = function(io,a)
  65. if a then return end
  66. --Since InputObject is a client-side instance, we create and pass table instead
  67. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  68. end
  69. UIS.InputBegan:Connect(input)
  70. UIS.InputEnded:Connect(input)
  71.  
  72. local Mouse = Player:GetMouse()
  73. local h,t
  74. --Give the server mouse data 30 times every second, but only if the values changed
  75. --If player is not moving their mouse, client won't fire events
  76. while wait(1/30) do
  77. if h~=Mouse.Hit or t~=Mouse.Target then
  78. h,t=Mouse.Hit,Mouse.Target
  79. Event:FireServer({isMouse=true,Target=t,Hit=h})
  80. end
  81. end]==],Player.Character)
  82. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  83. end
  84.  
  85.  
  86.  
  87. plr = game.Players.LocalPlayer
  88. repeat wait() until plr.Character
  89. char = plr.Character
  90.  
  91. -- Credit to shack for the anti death system
  92.  
  93. local BODY = {}
  94. LeftArm = char["Left Arm"]
  95. RightLeg = char["Right Leg"]
  96. LeftLeg = char["Left Leg"]
  97. for _, c in pairs(char:GetDescendants()) do
  98. if c:IsA("BasePart") and c.Name ~= "Handle" then
  99. if c ~= char.HumanoidRootPart and c ~= char.Torso and c ~= char.Head and c ~= char["Right Arm"] and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  100. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  101. end
  102. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  103. elseif c:IsA("JointInstance") then
  104. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  105. end
  106. end
  107. for e = 1, #BODY do
  108. if BODY[e] ~= nil then
  109. local STUFF = BODY[e]
  110. local PART = STUFF[1]
  111. local PARENT = STUFF[2]
  112. local MATERIAL = STUFF[3]
  113. local COLOR = STUFF[4]
  114. local TRANSPARENCY = STUFF[5]
  115. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  116. PART.Material = MATERIAL
  117. PART.Color = COLOR
  118. PART.Transparency = TRANSPARENCY
  119. end
  120. PART.AncestryChanged:Connect(function()
  121. PART.Parent = PARENT
  122. end)
  123. end
  124. end
  125. function refit()
  126. char.Parent = workspace
  127. for e = 1, #BODY do
  128. if BODY[e] ~= nil then
  129. local STUFF = BODY[e]
  130. local PART = STUFF[1]
  131. local PARENT = STUFF[2]
  132. local MATERIAL = STUFF[3]
  133. local COLOR = STUFF[4]
  134. local TRANSPARENCY = STUFF[5]
  135. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  136. PART.Material = MATERIAL
  137. PART.Color = COLOR
  138. PART.Transparency = TRANSPARENCY
  139. end
  140. if PART.Parent ~= PARENT then
  141. char:FindFirstChildOfClass("Humanoid"):remove()
  142. PART.Parent = PARENT
  143. Humanoid = Instance.new("Humanoid",char)
  144. end
  145. end
  146. end
  147. end
  148. char.Humanoid.Died:connect(function()
  149. refit()
  150. end)
  151. local torso = Instance.new("SelectionBox",char)
  152. torso.Adornee = char.Torso
  153. local leftarm = Instance.new("SelectionBox",char)
  154. leftarm.Adornee = LeftArm
  155. local rightarm = Instance.new("SelectionBox",char)
  156. rightarm.Adornee = char["Right Arm"]
  157. local leftleg = Instance.new("SelectionBox",char)
  158. leftleg.Adornee = LeftLeg
  159. local rightleg = Instance.new("SelectionBox",char)
  160. rightleg.Adornee = char["Right Leg"]
  161. -- Color pallet
  162. green = "Lime green"
  163. red = "Really red"
  164. blue = "Electric blue"
  165. yellow = "New Yeller"
  166. violet = "Pastel violet"
  167.  
  168. coroutine.wrap(function()
  169. while true do
  170. wait(0.5)
  171. torso.Color3 = BrickColor.new(green).Color
  172. rightarm.Color3 = BrickColor.new(green).Color
  173. leftarm.Color3 = BrickColor.new(green).Color
  174. leftleg.Color3 = BrickColor.new(green).Color
  175. rightleg.Color3 = BrickColor.new(green).Color
  176. wait(0.5)
  177. torso.Color3 = BrickColor.new(red).Color
  178. rightarm.Color3 = BrickColor.new(red).Color
  179. leftarm.Color3 = BrickColor.new(red).Color
  180. leftleg.Color3 = BrickColor.new(red).Color
  181. rightleg.Color3 = BrickColor.new(red).Color
  182. wait(0.5)
  183. torso.Color3 = BrickColor.new(blue).Color
  184. rightarm.Color3 = BrickColor.new(blue).Color
  185. leftarm.Color3 = BrickColor.new(blue).Color
  186. leftleg.Color3 = BrickColor.new(blue).Color
  187. rightleg.Color3 = BrickColor.new(blue).Color
  188. wait(0.5)
  189. torso.Color3 = BrickColor.new(yellow).Color
  190. rightarm.Color3 = BrickColor.new(yellow).Color
  191. leftarm.Color3 = BrickColor.new(yellow).Color
  192. leftleg.Color3 = BrickColor.new(yellow).Color
  193. rightleg.Color3 = BrickColor.new(yellow).Color
  194. wait(0.5)
  195. torso.Color3 = BrickColor.new(violet).Color
  196. rightarm.Color3 = BrickColor.new(violet).Color
  197. leftarm.Color3 = BrickColor.new(violet).Color
  198. leftleg.Color3 = BrickColor.new(violet).Color
  199. rightleg.Color3 = BrickColor.new(violet).Color
  200. end
  201. end)()
  202. while true do
  203. wait()
  204. refit()
  205.  
  206. local BODY = {}
  207. for _, c in pairs(Character:GetDescendants()) do
  208. if c:IsA("BasePart") and c.Name ~= "Handle" then
  209. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  210. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  211. end
  212. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  213. elseif c:IsA("JointInstance") then
  214. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  215. end
  216. end
  217. for e = 1, #BODY do
  218. if BODY[e] ~= nil then
  219. local STUFF = BODY[e]
  220. local PART = STUFF[1]
  221. local PARENT = STUFF[2]
  222. local MATERIAL = STUFF[3]
  223. local COLOR = STUFF[4]
  224. local TRANSPARENCY = STUFF[5]
  225. if PART.ClassName == "Part" and PART ~= RootPart then
  226. PART.Material = MATERIAL
  227. PART.Color = COLOR
  228. PART.Transparency = TRANSPARENCY
  229. end
  230. PART.AncestryChanged:Connect(function()
  231. PART.Parent = PARENT
  232. end)
  233. end
  234. end
  235.  
  236. function refit()
  237. Character.Parent = workspace
  238. for e = 1, #BODY do
  239. if BODY[e] ~= nil then
  240. local STUFF = BODY[e]
  241. local PART = STUFF[1]
  242. local PARENT = STUFF[2]
  243. local MATERIAL = STUFF[3]
  244. local COLOR = STUFF[4]
  245. local TRANSPARENCY = STUFF[5]
  246. if PART:IsA("BasePart") and PART ~= RootPart then
  247. PART.Material = MATERIAL
  248. PART.Color = COLOR
  249. PART.Transparency = TRANSPARENCY+EXTRATRANS
  250. end
  251. if PART.Parent ~= PARENT then
  252. Humanoid:remove()
  253. PART.Parent = PARENT
  254. Humanoid = IT("Humanoid",Character)
  255. end
  256. end
  257. end
  258. end
  259.  
  260.  
  261. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement