Advertisement
ericdesouza

The god eater

Mar 10th, 2018
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.15 KB | None | 0 0
  1. ----- Script made by Pedrorb03 -----
  2. game.Players.LocalPlayer.Character.Head:WaitForChild("face")
  3. while game.Players.LocalPlayer.Character.Head.face.texture ~= "rbxassetid://1039774343" do
  4. wait()
  5. game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://1039774343"
  6. end
  7. for _,animate in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  8. if animate.Name == "Animate" then
  9. animate:remove()
  10. end
  11. if animate.ClassName == "Accessory" then
  12. animate:remove()
  13. end
  14. end
  15. for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  16.  
  17. anim:Stop()
  18.  
  19. end
  20.  
  21. rot = 0
  22. armrot = 0
  23. suck = nil
  24. power = 0
  25. movingup = false
  26. movingback = false
  27. popo = 0
  28. bodyforces = {}
  29. popos = {}
  30. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  31. if part:IsA("BasePart") then
  32.  
  33. local zerograv = Instance.new("BodyForce",part) zerograv.force = Vector3.new(0, game.Workspace.Gravity, 1) * part:GetMass() zerograv.Name = "ZeroGravity"
  34. end
  35. end
  36. ac = true
  37.  
  38.  
  39. game:GetService("RunService").RenderStepped:connect(function()
  40. game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.MaxHealth
  41. if movingup == false and movingback == false then
  42. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
  43. end
  44. rot = rot+5
  45. for number = 1,#popos do
  46. if popos[number].Parent == nil then
  47. table.remove(popos,number)
  48. end
  49. end
  50. for _,pop in pairs(popos) do
  51. pop.Touched:connect(function(hit)
  52. if hit.Locked == false then
  53. if hit.Parent ~= game.Players.LocalPlayer.Character then
  54. if hit ~= pop then
  55. hit.Color = pop.Color
  56. hit.Material = pop.Material
  57.  
  58. pop:remove()
  59. end
  60. end
  61. end
  62. end)
  63.  
  64. end
  65. armrot = armrot+10
  66. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 500
  67. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 16
  68. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  69. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p,game.Workspace.CurrentCamera.CFrame.p+game.Workspace.CurrentCamera.CFrame.lookVector*50000000)
  70. if ac == true then
  71.  
  72. end
  73. if suck == nil then
  74. for _,bod in pairs(bodyforces) do
  75. bod:remove()
  76. end
  77. end
  78. if suck ~= nil then
  79. local pos1 = game.Players.LocalPlayer:GetMouse().Hit.p
  80. local pos2 = game.Players.LocalPlayer.Character.Head.CFrame:toWorldSpace(CFrame.new(Vector3.new(0,0.25,0.5))).p
  81. for _,child in pairs(game.Workspace:GetChildren()) do
  82. if child:IsA("BasePart") then
  83. if child.Anchored == false then
  84. if (child.Position-pos1).magnitude <= 1+game.Players.LocalPlayer.Character.Head.Size.Y*5 then
  85. local hit = child
  86. local did = false
  87. for i=1,#bodyforces do
  88. if bodyforces[i].Parent == hit then
  89. did = true
  90. end
  91. end
  92. if did == false then
  93. local bodyforce = Instance.new("BodyPosition",hit) bodyforce.Position = pos2
  94. table.insert(bodyforces,bodyforce)
  95. end
  96. end
  97. end
  98. end
  99. for _,child2 in pairs(child:GetChildren()) do
  100. if child2:IsA("BasePart") then
  101. if child2.Anchored == false then
  102. if (child2.Position-pos1).magnitude <= 1+game.Players.LocalPlayer.Character.Head.Size.Y*5 then
  103. local hit = child2
  104. local did = false
  105. for i=1,#bodyforces do
  106. if bodyforces[i].Parent == hit then
  107. did = true
  108. end
  109. end
  110. if did == false then
  111. local bodyforce = Instance.new("BodyPosition",hit) bodyforce.Position = pos2
  112. table.insert(bodyforces,bodyforce)
  113. end
  114. end
  115. end
  116. end
  117. for _,child3 in pairs(child2:GetChildren()) do
  118. if child3:IsA("BasePart") then
  119. if child3.Anchored == false then
  120. if (child3.Position-pos1).magnitude <= 1+game.Players.LocalPlayer.Character.Head.Size.Y*5 then
  121. local hit = child3
  122. local did = false
  123. for i=1,#bodyforces do
  124. if bodyforces[i].Parent == hit then
  125. did = true
  126. end
  127. end
  128. if did == false then
  129. local bodyforce = Instance.new("BodyPosition",hit) bodyforce.Position = pos2
  130. table.insert(bodyforces,bodyforce)
  131. end
  132. end
  133. end
  134. end
  135.  
  136. end
  137. end
  138. end
  139.  
  140. for _,bod in pairs(bodyforces) do
  141. bod.Position = game.Players.LocalPlayer.Character.Head.CFrame.p
  142. end
  143. suck.Mesh.Scale = Vector3.new(1+game.Players.LocalPlayer.Character.Head.Size.Y*5,(pos1-pos2).magnitude,1+game.Players.LocalPlayer.Character.Head.Size.Y*5)
  144. suck.CFrame = CFrame.new((pos1+pos2)/2,pos1) * CFrame.Angles(math.rad(90),rot,0)
  145. local ray = Ray.new(pos2,(pos1-pos2).unit*600)
  146. local hit,normal,position = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
  147.  
  148. if hit ~= nil then
  149. if hit.Anchored == false then
  150. local did = false
  151. for i=1,#bodyforces do
  152. if bodyforces[i].Parent == hit then
  153. did = true
  154. end
  155. end
  156. if did == false then
  157. local bodyforce = Instance.new("BodyPosition",hit) bodyforce.Position = pos2
  158. table.insert(bodyforces,bodyforce)
  159. end
  160. end
  161. end
  162.  
  163.  
  164.  
  165.  
  166.  
  167. end
  168. end)
  169. game:GetService("UserInputService").InputBegan:connect(function(key)
  170. if key.KeyCode == Enum.KeyCode.E then
  171. suck = Instance.new("Part",game.Players.LocalPlayer.Character)
  172. local mesh = Instance.new("SpecialMesh",suck) mesh.MeshId = "rbxassetid://1040723301"
  173. suck.Transparency = 0.5
  174. suck.Color = Color3.fromRGB(255,255,255)
  175. suck.CanCollide = false
  176. suck.Anchored = true
  177. suck.Size = Vector3.new(0,0,0)
  178. game.Players.LocalPlayer.Character.Head:WaitForChild("face")
  179.  
  180. while game.Players.LocalPlayer.Character.Head.face.texture ~= "rbxassetid://505480085" do
  181. wait()
  182. game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://505480085"
  183. end
  184.  
  185.  
  186. for _,decal in pairs(game.Players.LocalPlayer.Character.Head:GetChildren()) do
  187. if decal.ClassName == "Decal" then
  188. decal:remove()
  189. end
  190. end
  191. local decal = Instance.new("Decal",game.Players.LocalPlayer.Character.Head) decal.Texture = "http://www.roblox.com/asset/?id=1038938817" decal.Face = "Front"
  192.  
  193. end
  194. if key.KeyCode == Enum.KeyCode.W then
  195. if movingup == false then
  196. movingup = true
  197. while movingup == true do
  198. wait()
  199. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*200
  200. end
  201. end
  202. end
  203. if key.KeyCode == Enum.KeyCode.S then
  204. if movingback == false then
  205. movingback = true
  206. while movingback == true do
  207. wait()
  208. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = -game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*200
  209.  
  210. end
  211. end
  212. end
  213. if key.KeyCode == Enum.KeyCode.F then
  214. local food = math.random(1,7)
  215. local part = Instance.new("Part",game.Workspace) part.CFrame = CFrame.new(0,25,0)
  216. local meshs = Instance.new("SpecialMesh",part)
  217. if food == 1 then
  218. part.Size = Vector3.new(1.266, 1.704, 0.978)
  219. meshs.MeshId = "rbxassetid://923471248"
  220. meshs.TextureId = "rbxassetid://923471252"
  221. end
  222. if food == 2 then
  223. part.Size = Vector3.new(2.18, 0.733, 2.18)
  224. meshs.MeshId = "http://www.roblox.com/asset/?id=107432887"
  225. meshs.TextureId = "rbxassetid://107432992"
  226. end
  227. if food == 3 then
  228. part.Size = Vector3.new(1.764, 1.129, 1.686)
  229. meshs.MeshId = "http://www.roblox.com/asset/?id=90824595"
  230. meshs.TextureId = "rbxassetid://90819050"
  231. end
  232. if food == 4 then
  233. part.Size = Vector3.new(2.903, 2.903, 0.531)
  234. meshs.MeshId = "http://www.roblox.com/asset/?id=18417911"
  235. meshs.TextureId = "rbxassetid://18417918"
  236. end
  237. if food == 5 then
  238. part.Size = Vector3.new(2.056, 0.615, 0.907)
  239. meshs.MeshId = "http://www.roblox.com/asset/?id=29896287"
  240. meshs.TextureId = "rbxassetid://29896653"
  241. end
  242. if food == 6 then
  243. part.Size = Vector3.new(0.731, 1.693, 0.708)
  244. meshs.MeshId = "http://www.roblox.com/asset/?id=13073626"
  245. meshs.TextureId = "rbxassetid://13073598"
  246. end
  247. if food == 7 then
  248. part.Size = Vector3.new(1.997, 1.986, 1.997)
  249. meshs.MeshId = "http://www.roblox.com/asset/?id=125736357"
  250. meshs.TextureId = "rbxassetid://125728597"
  251. end
  252. end
  253. if key.KeyCode == Enum.KeyCode.C then
  254. if popo > 0 then
  255. popo = popo-1
  256. local ball = Instance.new("Part",game.Workspace) ball.Shape = Enum.PartType.Ball ball.Material = Enum.Material.Slate ball.Color = Color3.fromRGB(105, 64, 40) ball.CanCollide = false
  257. ball.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  258. ball.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  259. ball.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  260. ball.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  261. ball.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  262. ball.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  263. ball.Size = Vector3.new(game.Players.LocalPlayer.Character.Torso.Size.Y/2,game.Players.LocalPlayer.Character.Torso.Size.Y/2,game.Players.LocalPlayer.Character.Torso.Size.Y/2)
  264. ball.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.CFrame:toWorldSpace(CFrame.new(0,-game.Players.LocalPlayer.Character.Torso.Size.Y,0)).p,game.Players.LocalPlayer:GetMouse().Hit.p)
  265. ball.Velocity = ball.CFrame.lookVector*(game.Players.LocalPlayer.Character.Torso.Position-game.Players.LocalPlayer:GetMouse().Hit.p).magnitude*3
  266. table.insert(popos,ball)
  267. game:GetService("Debris"):AddItem(ball,5)
  268. end
  269. end
  270.  
  271.  
  272.  
  273. end)
  274. game:GetService("UserInputService").InputEnded:connect(function(key)
  275. if key.KeyCode == Enum.KeyCode.E then
  276. suck:remove()
  277. suck = nil
  278. game.Players.LocalPlayer.Character.Head:WaitForChild("face")
  279.  
  280. game.Players.LocalPlayer.Character.Head:WaitForChild("face")
  281. while game.Players.LocalPlayer.Character.Head.face.texture ~= "rbxassetid://1039774343" do
  282. wait()
  283. game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://1039774343"
  284. end
  285. end
  286. if key.KeyCode == Enum.KeyCode.W then
  287. movingup = false
  288.  
  289. end
  290. if key.KeyCode == Enum.KeyCode.S then
  291. movingback = false
  292.  
  293. end
  294.  
  295.  
  296. end)
  297. game.Players.LocalPlayer.Character.Head.Touched:connect(function(hit)
  298. if hit.Parent ~= game.Players.LocalPlayer.Character then
  299.  
  300. if hit ~= nil then
  301. if hit.Anchored == false then
  302. hit:remove()
  303. popo = popo+2
  304. local sound = Instance.new("Sound",game.Players.LocalPlayer.Character.Head) sound.SoundId = "rbxassetid://179303694" sound:Play()
  305. game:GetService("Debris"):AddItem(sound,5)
  306. while ac == false do
  307. wait()
  308. if ac == true then
  309. break
  310. end
  311. end
  312. game.Players.LocalPlayer.Character.Torso:WaitForChild("Neck")
  313. game.Players.LocalPlayer.Character.HumanoidRootPart:WaitForChild("RootJoint")
  314. game.Players.LocalPlayer.Character.Torso:WaitForChild("Right Shoulder")
  315. game.Players.LocalPlayer.Character.Torso:WaitForChild("Left Shoulder")
  316. game.Players.LocalPlayer.Character.Torso:WaitForChild("Right Hip")
  317. game.Players.LocalPlayer.Character.Torso:WaitForChild("Left Hip")
  318. local rootjoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  319. local neck = game.Players.LocalPlayer.Character.Torso.Neck:Clone()
  320. local rightShoulder = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  321. local leftShoulder = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  322. local rightShoulder = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  323. local rightHip = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  324. local leftHip = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  325. ac = false
  326. wait(0.1)
  327. game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.MaxHealth
  328. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  329. if part:IsA("BasePart") then
  330. part.Size = part.Size*1.05
  331. game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.MaxHealth
  332. end
  333. end
  334. game.Players.LocalPlayer.CameraMaxZoomDistance = game.Players.LocalPlayer.CameraMaxZoomDistance*1.05
  335. game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.MaxHealth
  336. rootjoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  337. neck.Parent = game.Players.LocalPlayer.Character.Torso
  338. rightShoulder.Parent = game.Players.LocalPlayer.Character.Torso
  339. leftShoulder.Parent = game.Players.LocalPlayer.Character.Torso
  340. rightHip.Parent = game.Players.LocalPlayer.Character.Torso
  341. leftHip.Parent = game.Players.LocalPlayer.Character.Torso
  342. neck.C0 = CFrame.new(neck.C0.p*1.05)*CFrame.Angles(math.rad(-90),0,math.rad(180))
  343. rightShoulder.C0 = CFrame.new(rightShoulder.C0.p*1.05)
  344. leftShoulder.C0 = CFrame.new(leftShoulder.C0.p*1.05)
  345. rightHip.C0 = CFrame.new(rightHip.C0.p*1.05)
  346. leftHip.C0 = CFrame.new(leftHip.C0.p*1.05)
  347. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = game.Players.LocalPlayer.Character.Humanoid.MaxHealth*5.2
  348. game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.MaxHealth
  349. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  350. if part:FindFirstChild("ZeroGravity") then
  351. part.ZeroGravity:remove()
  352. end
  353. end
  354. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  355. if part:IsA("BasePart") then
  356. part.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  357. local zerograv = Instance.new("BodyForce",part) zerograv.force = Vector3.new(0, game.Workspace.Gravity, 0) * part:GetMass() zerograv.Name = "ZeroGravity"
  358. end
  359. end
  360. wait(0.1)
  361. ac = true
  362. end
  363. end
  364.  
  365. end
  366. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement