JacksoMykalJunior

GOD SCRIPT

Mar 15th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.80 KB | None | 0 0
  1. ----// God Script \\----
  2. ----|| OP SCRIPT ||----
  3. ----\\ God Script //----
  4.  
  5. warn("Made By Red_Jack142")
  6. warn("ENJOY!")
  7.  
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  10. do
  11. print("FE Covered By Red_Jack142 | FE Made By Red_Jack142")
  12. print("Have Fun!")
  13. script.Parent = Player.Character
  14.  
  15. --RemoteEvent for communicating
  16. local Event = Instance.new("RemoteEvent")
  17. Event.Name = "UserInput_Event"
  18.  
  19. --Fake event to make stuff like Mouse.KeyDown work
  20. local function fakeEvent()
  21. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  22. t.connect = t.Connect
  23. return t
  24. end
  25.  
  26. --Creating fake input objects with fake variables
  27. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  28. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  29. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  30. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  31. end}
  32. --Merged 2 functions into one by checking amount of arguments
  33. CAS.UnbindAction = CAS.BindAction
  34.  
  35. --This function will trigger the events that have been :Connect()'ed
  36. local function te(self,ev,...)
  37. local t = m[ev]
  38. if t and t._fakeEvent and t.Function then
  39. t.Function(...)
  40. end
  41. end
  42. m.TrigEvent = te
  43. UIS.TrigEvent = te
  44.  
  45. Event.OnServerEvent:Connect(function(plr,io)
  46. if plr~=Player then return end
  47. if io.isMouse then
  48. m.Target = io.Target
  49. m.Hit = io.Hit
  50. else
  51. local b = io.UserInputState == Enum.UserInputState.Begin
  52. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  53. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  54. end
  55. for _,t in pairs(CAS.Actions) do
  56. for _,k in pairs(t.Keys) do
  57. if k==io.KeyCode then
  58. t.Function(t.Name,io.UserInputState,io)
  59. end
  60. end
  61. end
  62. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  63. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  64. end
  65. end)
  66. Event.Parent = NLS([==[
  67. local Player = game:GetService("Players").LocalPlayer
  68. local Event = script:WaitForChild("UserInput_Event")
  69.  
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local Mouse = Player:GetMouse()
  80. local h,t
  81. --Give the server mouse data 30 times every second, but only if the values changed
  82. --If player is not moving their mouse, client won't fire events
  83. while wait(1/30) do
  84. if h~=Mouse.Hit or t~=Mouse.Target then
  85. h,t=Mouse.Hit,Mouse.Target
  86. Event:FireServer({isMouse=true,Target=t,Hit=h})
  87. end
  88. end]==],Player.Character)
  89. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  90. end
  91.  
  92.  
  93. local p = owner
  94. local char = p.Character
  95. local size = 8
  96. part = function()
  97.  
  98. local a = Instance.new("Part", script)
  99. a.Anchored = true
  100. a.CanCollide = true
  101. a.CFrame = char.Torso.CFrame
  102. a.Size = Vector3.new(size, 0.2, 0.2)
  103. a.Transparency = 1
  104. return a
  105. end
  106.  
  107. part2 = function()
  108.  
  109. local a = Instance.new("Part", script)
  110. a.Anchored = true
  111. a.CanCollide = true
  112. a.CFrame = char.Torso.CFrame
  113. a.Size = Vector3.new(0.2, size, 0.2)
  114. a.Transparency = 1
  115. return a
  116. end
  117.  
  118. part3 = function()
  119.  
  120. local a = Instance.new("Part", script)
  121. a.Anchored = true
  122. a.CanCollide = false
  123. a.Size = Vector3.new(size, size, 1)
  124. a.Transparency = 0.7
  125. a.Material = "Neon"
  126. a.BrickColor = BrickColor.new("Really red")
  127. local b = Instance.new("BlockMesh", a)
  128. b.Scale = Vector3.new(1, 1, 0)
  129. return a
  130. end
  131.  
  132. local replicating = false
  133. local root, a, b, c, d, a2, b2, c2, d2, aa, bb, cc, dd, z, x, c, v, b, n = nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil
  134. replicate = function()
  135.  
  136. replicating = true
  137. script:ClearAllChildren()
  138. root = part()
  139. root.Transparency = 1
  140. root.Size = Vector3.new(0.2, 0.2, 0.2)
  141. root.CanCollide = false
  142. a = part()
  143. b = part()
  144. c = part()
  145. d = part()
  146. a2 = part()
  147. b2 = part()
  148. c2 = part()
  149. d2 = part()
  150. aa = part2()
  151. bb = part2()
  152. cc = part2()
  153. dd = part2()
  154. z = part3()
  155. x = part3()
  156. c = part3()
  157. v = part3()
  158. b = part3()
  159. n = part3()
  160. replicating = false
  161. end
  162.  
  163. script.ChildRemoved:connect(function(a)
  164.  
  165. if a.ClassName == "Part" and replicating == false then
  166. replicate()
  167. end
  168. end
  169. )
  170. replicate()
  171. local tick = 0
  172. CreateRegion3FromLocAndSize = function(Position, Size)
  173.  
  174. local SizeOffset = Size / 2
  175. local Point1 = Position - SizeOffset
  176. local Point2 = Position + SizeOffset
  177. return Region3.new(Point1, Point2)
  178. end
  179.  
  180. local set = false
  181. local whitelist = {"Hieroku", "PPATTA", "DevGamerzz", "I kill U", "kash5", "ZeroCrimson", "Zaidia", "tsup2", "PointCoded", "CLarramore", "Suzuuki", "", "", ""}
  182. p.Chatted:connect(function(ms)
  183.  
  184. if ms:sub(1, 5) == "size-" then
  185. size = tonumber(ms:sub(6))
  186. replicate()
  187. else
  188. if ms:sub(1, 4) == "set-" then
  189. set = true
  190. z.CanCollide = false
  191. x.CanCollide = false
  192. c.CanCollide = false
  193. v.CanCollide = false
  194. b.CanCollide = false
  195. n.CanCollide = false
  196. else
  197. if ms:sub(1, 6) == "unset-" then
  198. set = false
  199. z.CanCollide = false
  200. x.CanCollide = false
  201. c.CanCollide = false
  202. v.CanCollide = false
  203. b.CanCollide = false
  204. n.CanCollide = false
  205. else
  206. if ms:sub(1, 10) == "whitelist-" then
  207. table.insert(whitelist, ms:sub(11))
  208. else
  209. if ms:sub(1, 12) == "unwhitelist-" then
  210. for i,v in pairs(whitelist) do
  211. if ms:sub(13) == v then
  212. table.remove(whitelist, i)
  213. break
  214. end
  215. end
  216. end
  217. end
  218. end
  219. end
  220. end
  221. end
  222. )
  223. local magicpos = nil
  224. game:GetService("RunService").Heartbeat:connect(function()
  225.  
  226. pcall(function()
  227.  
  228. local void = char:GetChildren()
  229. for _,pl in pairs(whitelist) do
  230. if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then
  231. for i,v in pairs(game.Players[pl].Character:GetChildren()) do
  232. table.insert(void, v)
  233. end
  234. end
  235. end
  236. for i,v in pairs(game.Players:GetPlayers()) do
  237. if v.Character:isDescendantOf(char) and not v.Name == "FangxWulf" then
  238. v:LoadCharacter()
  239. end
  240. end
  241. char.Humanoid.Health = math.huge
  242. Humanoid.MaxHealth = math.huge
  243. Humanoid.Health = math.huge
  244. char.Humanoid.Health = math.huge
  245. Humanoid.MaxHealth = math.huge
  246. Humanoid.Health = math.huge
  247. char.Humanoid.Health = math.huge
  248. Humanoid.MaxHealth = math.huge
  249. Humanoid.Health = math.huge
  250. char.Humanoid.Health = math.huge
  251. Humanoid.MaxHealth = math.huge
  252. Humanoid.Health = math.huge
  253. char.Humanoid.Health = math.huge
  254. Humanoid.MaxHealth = math.huge
  255. Humanoid.Health = math.huge
  256. char.Humanoid.Health = math.huge
  257. Humanoid.MaxHealth = math.huge
  258. Humanoid.Health = math.huge
  259. char.Humanoid.Health = math.huge
  260. Humanoid.MaxHealth = math.huge
  261. Humanoid.Health = math.huge
  262. char.Humanoid.Health = math.huge
  263. Humanoid.MaxHealth = math.huge
  264. Humanoid.Health = math.huge
  265. char.Humanoid.Health = math.huge
  266. Humanoid.MaxHealth = math.huge
  267. Humanoid.Health = math.huge
  268. char.Humanoid.Health = math.huge
  269. Humanoid.MaxHealth = math.huge
  270. Humanoid.Health = math.huge
  271. char.Humanoid.Health = math.huge
  272. Humanoid.MaxHealth = math.huge
  273. Humanoid.Health = math.huge
  274. char.Humanoid.Health = math.huge
  275. Humanoid.MaxHealth = math.huge
  276. Humanoid.Health = math.huge
  277. char.Humanoid.Health = math.huge
  278. Humanoid.MaxHealth = math.huge
  279. Humanoid.Health = math.huge
  280. char.Humanoid.Health = math.huge
  281. Humanoid.MaxHealth = math.huge
  282. Humanoid.Health = math.huge
  283. char.Humanoid.Health = math.huge
  284. Humanoid.MaxHealth = math.huge
  285. Humanoid.Health = math.huge
  286. char.Humanoid.Health = math.huge
  287. Humanoid.MaxHealth = math.huge
  288. Humanoid.Health = math.huge
  289. char.Humanoid.Health = math.huge
  290. Humanoid.MaxHealth = math.huge
  291. Humanoid.Health = math.huge
  292. char.Humanoid.Health = math.huge
  293. Humanoid.MaxHealth = math.huge
  294. Humanoid.Health = math.huge
  295. char.Humanoid.Health = math.huge
  296. Humanoid.MaxHealth = math.huge
  297. Humanoid.Health = math.huge
  298. tick = tick + 0.01
  299. if not set then
  300. root.CFrame = root.CFrame:lerp(CFrame.new(char.Torso.CFrame.p) * CFrame.Angles(math.sin(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2)), 0.1)
  301. magicpos = char.Torso.CFrame
  302. else
  303. root.CFrame = root.CFrame:lerp(CFrame.new(magicpos.p) * CFrame.Angles(0, 0, 0), 0.05)
  304. end
  305. local reg = CreateRegion3FromLocAndSize(root.CFrame.p, Vector3.new(size, size, size))
  306. for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do
  307. if v.Name ~= "Base" then
  308. v:Destroy()
  309. end
  310. end
  311. a.CFrame = root.CFrame * CFrame.new(size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  312. b.CFrame = root.CFrame * CFrame.new(-size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  313. c.CFrame = root.CFrame * CFrame.new(0, size / 2, size / 2)
  314. d.CFrame = root.CFrame * CFrame.new(0, size / 2, -size / 2)
  315. a2.CFrame = root.CFrame * CFrame.new(size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  316. b2.CFrame = root.CFrame * CFrame.new(-size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  317. c2.CFrame = root.CFrame * CFrame.new(0, -size / 2, size / 2)
  318. d2.CFrame = root.CFrame * CFrame.new(0, -size / 2, -size / 2)
  319. aa.CFrame = root.CFrame * CFrame.new(size / 2, 0, size / 2)
  320. bb.CFrame = root.CFrame * CFrame.new(-size / 2, 0, size / 2)
  321. cc.CFrame = root.CFrame * CFrame.new(-size / 2, 0, -size / 2)
  322. dd.CFrame = root.CFrame * CFrame.new(size / 2, 0, -size / 2)
  323. z.CFrame = root.CFrame * CFrame.new(size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  324. x.CFrame = root.CFrame * CFrame.new(-size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  325. c.CFrame = root.CFrame * CFrame.new(0, 0, size / 2) * CFrame.Angles(0, 0, math.rad(90))
  326. v.CFrame = root.CFrame * CFrame.new(0, 0, -size / 2) * CFrame.Angles(0, 0, math.rad(90))
  327. b.CFrame = root.CFrame * CFrame.new(0, size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0)
  328. n.CFrame = root.CFrame * CFrame.new(0, -size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0)
  329. end
  330. )
  331. end
  332. )
Add Comment
Please, Sign In to add comment