Advertisement
Ban43_GodOfEdits

gil

Jul 28th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.95 KB | None | 0 0
  1. local num = 0
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local rad = math.rad
  5. local hum = char.Humanoid
  6. local Weld0 = Instance.new("Weld")
  7.  
  8. Instance.new("ForceField", char).Visible = false
  9. hum:SetStateEnabled("Dead", false)
  10.  
  11. local candie = false
  12. local Udyne = true
  13. local v3 = Vector3.new
  14.  
  15. local debounce = true
  16. local mouse = p:GetMouse()
  17. local walk1 = true
  18.  
  19. local ns = NumberSequence.new
  20. local new = Instance.new
  21. local nr = NumberRange.new
  22. local bc = BrickColor.new
  23.  
  24. local srot = 0
  25. local spos = {
  26. [1] = {180},
  27. [2] = {144},
  28. [3] = {108},
  29. [4] = {72},
  30. [5] = {36},
  31. [6] = {0}
  32. }
  33. local Vetrom = new("Sound", char)
  34. Vetrom.SoundId = "rbxassetid://"
  35. Vetrom.Volume = 5
  36. Vetrom.Pitch = 1
  37. Vetrom.Looped = true
  38. Vetrom:Play()
  39. local hitsnd = new("Sound", char)
  40. hitsnd.SoundId = "rbxassetid://934916502"
  41. hitsnd.Volume = 10
  42. hitsnd.Pitch = 1
  43.  
  44.  
  45. local udynespear1 = new("Part", char)
  46. udynespear1.BrickColor = bc("Gold")
  47. udynespear1.Material = "Neon"
  48. udynespear1.CanCollide = false
  49. udynespear1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 10, 0)
  50. udynespear1.Size = Vector3.new(0,0,0)
  51. local udynespear2 = new("Part", char)
  52. udynespear2.BrickColor = udynespear1.BrickColor
  53. udynespear2.Material = udynespear1.Material
  54. udynespear2.CanCollide = false
  55. udynespear2.CFrame = udynespear1.CFrame
  56. udynespear2.Size = udynespear1.Size
  57. local udynespear3 = new("Part", char)
  58. udynespear3.BrickColor = udynespear1.BrickColor
  59. udynespear3.Material = udynespear1.Material
  60. udynespear3.CanCollide = false
  61. udynespear3.CFrame = udynespear1.CFrame
  62. udynespear3.Size = udynespear1.Size
  63. local udynespear4 = new("Part", char)
  64. udynespear4.BrickColor = udynespear1.BrickColor
  65. udynespear4.Material = udynespear1.Material
  66. udynespear4.CanCollide = false
  67. udynespear4.CFrame = udynespear1.CFrame
  68. udynespear4.Size = udynespear1.Size
  69. local udynespear5 = new("Part", char)
  70. udynespear5.BrickColor = udynespear1.BrickColor
  71. udynespear5.Material = udynespear1.Material
  72. udynespear5.CanCollide = false
  73. udynespear5.CFrame = udynespear1.CFrame
  74. udynespear5.Size = udynespear1.Size
  75. local udynespear6 = new("Part", char)
  76. udynespear6.BrickColor = udynespear1.BrickColor
  77. udynespear6.Material = udynespear1.Material
  78. udynespear6.CanCollide = false
  79. udynespear6.CFrame = udynespear1.CFrame
  80. udynespear6.Size = udynespear1.Size
  81.  
  82. local sbg6 = Instance.new("BodyGyro", udynespear6)
  83. sbg6.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  84. sbg6.D = 400
  85. BP6 = Instance.new("BodyPosition", udynespear6)
  86. local sbg5 = Instance.new("BodyGyro", udynespear5)
  87. sbg5.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  88. sbg5.D = 400
  89. BP5 = Instance.new("BodyPosition", udynespear5)
  90. local sbg4 = Instance.new("BodyGyro", udynespear4)
  91. sbg4.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  92. sbg4.D = 400
  93. BP4 = Instance.new("BodyPosition", udynespear4)
  94. local sbg3 = Instance.new("BodyGyro", udynespear3)
  95. sbg3.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  96. sbg3.D = 400
  97. BP3 = Instance.new("BodyPosition", udynespear3)
  98. local sbg2 = Instance.new("BodyGyro", udynespear2)
  99. sbg2.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  100. sbg2.D = 400
  101. BP2 = Instance.new("BodyPosition", udynespear2)
  102. local sbg = Instance.new("BodyGyro", udynespear1)
  103. sbg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  104. sbg.D = 400
  105. BP = Instance.new("BodyPosition", udynespear1)
  106. spawn(function()
  107. while Udyne == true do
  108.  
  109. sbg6.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  110. sbg5.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  111. sbg4.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  112. sbg3.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  113. sbg2.CFrame = CFrame.new(udynespear2.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  114. sbg.CFrame = CFrame.new(udynespear2.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  115. srot = srot + 4
  116. if srot == 360 then
  117. srot = 0
  118. end
  119. wait()
  120. end
  121. end)
  122. local Light = Instance.new("PointLight", char.HumanoidRootPart)
  123. Light.Color = Color3.new(50, 1, 0)
  124. Light.Brightness = 100
  125. Light.Range = 10
  126. hdebounce = true
  127. function throw1spear()
  128. coroutine.resume(coroutine.create(function()
  129. local udynespeart = new("Part", char)
  130. local zxc = Instance.new("SpecialMesh", udynespeart
  131. )
  132. zxc.MeshType = "FileMesh"
  133. zxc.Scale = Vector3.new(.1,.1,.1)
  134. zxc.MeshId = "rbxassetid://466293216"
  135. zxc.TextureId = "rbxassetid://466293242"
  136. udynespeart.BrickColor = udynespear1.BrickColor
  137. udynespeart.Material = udynespear1.Material
  138. udynespeart.CanCollide = true
  139. udynespeart.Anchored = false
  140. udynespeart.Size = Vector3.new(1.065, 4.969, 0.167)
  141. udynespeart.CFrame = (char.HumanoidRootPart.CFrame + Vector3.new(math.random(1, 2), 0, 2)) * CFrame.fromEulerAnglesXYZ(math.random(0, math.rad(0)), math.random(0, math.rad(0)), math.random(0, math.rad(0)))
  142. udynespeart.Touched:connect(function(hit)
  143. if hit.Parent == char then
  144. return
  145. end
  146. for i, v in pairs(hit.Parent:GetChildren()) do
  147. if v:IsA("Humanoid") and hdebounce == true then
  148. hdebounce = false
  149. v.Health = 0
  150.  
  151. udynespeart.Anchored = true
  152.  
  153. hdebounce = true
  154. end
  155.  
  156. end
  157. end)
  158. local sbgt = Instance.new("BodyGyro", udynespeart)
  159. sbgt.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  160. sbgt.D = 400
  161. sbgt.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  162. BPt = Instance.new("BodyPosition", udynespeart)
  163. BPt.Position = udynespeart.CFrame * CFrame.new(0, 10, 0).p
  164. wait(1)
  165. udynespeart.Anchored = true
  166. wait(0.5)
  167. udynespeart.Anchored = false
  168. BPt:destroy()
  169. local BodyVelocity = Instance.new("BodyVelocity", udynespeart)
  170. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  171. BodyVelocity.velocity = mouse.Hit.lookVector * 200
  172. for i = 1, 5 do
  173. sbgt.CFrame = CFrame.new(udynespeart.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  174. wait()
  175. end
  176. sbgt:destroy()
  177. end))
  178. end
  179. mouse.KeyDown:connect(function(k)
  180. if k == "e" then
  181.  
  182. end
  183. end)
  184. mouse.KeyDown:connect(function(k)
  185. if k == "f" then
  186. throw1spear()
  187. end
  188. end)
  189. local hitt
  190. mouse.KeyDown:connect(function(k)
  191. if k == "q" and mouse.Target then
  192. if mouse.Target.Parent == char then
  193. return
  194. end
  195. if mouse.Target.Parent == game.workspace.Base then
  196. return
  197. end
  198. for i, v in pairs(mouse.Target.Parent:GetChildren()) do
  199. if v:IsA("Humanoid") then
  200. hitt = mouse.Target.Parent
  201. if debounce == true then
  202. debounce = false
  203. for i = 1, 2 do
  204. do
  205. local speara = new("Part", char)
  206. speara.Touched:connect(function(hit)
  207. if hit.Parent == char then
  208. return
  209. end
  210. for i, v in pairs(hit.Parent:GetChildren()) do
  211. if v:IsA("Humanoid") and hdebounce == true then
  212. hdebounce = false
  213. v.Health = v.Health - 10
  214. wait(0.9)
  215. hdebounce = true
  216. end
  217. end
  218. end)
  219. local gunlight = Instance.new("SpotLight", speara)
  220. gunlight.Range = 40
  221. gunlight.Angle = 60
  222. gunlight.Face = "Top"
  223. gunlight.Shadows = true
  224. gunlight.Enabled = true
  225. gunlight.Color = Color3.new(0, 0, 1)
  226. local gunlight2 = Instance.new("SpotLight", speara)
  227. gunlight2.Range = 40
  228. gunlight2.Angle = 60
  229. gunlight2.Face = "Top"
  230. gunlight2.Shadows = true
  231. gunlight2.Enabled = true
  232. gunlight2.Color = Color3.new(0, 0, 1)
  233. speara.Size = Vector3.new(2, 2, 2)
  234. speara.BrickColor = bc("Toothpaste")
  235. local zxc = Instance.new("SpecialMesh", speara)
  236. zxc.MeshType = "FileMesh"
  237. zxc.Scale = Vector3.new(2, 2, 2)
  238. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  239. speara.Transparency = 0
  240. speara.Anchored = false
  241. speara.CanCollide = false
  242. speara.Name = "Spear"
  243. speara.CFrame = (mouse.Hit + Vector3.new(math.random(-10, 10), 19, math.random(-10, 10))) * CFrame.fromEulerAnglesXYZ(math.random(0, math.rad(359)), math.random(0, math.rad(359)), math.random(0, math.rad(359)))
  244. local sbgta = Instance.new("BodyGyro", speara)
  245. sbgta.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  246. sbgta.D = 10
  247. BPta = Instance.new("BodyPosition", speara)
  248. BPta.Name = "shootP"
  249. BPta.P = 20000
  250. sbgta.CFrame = CFrame.new(speara.Position, hitt.HumanoidRootPart.Position) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  251. BPta.Position = speara.CFrame * CFrame.new(0, 2, 0).p
  252. wait(0.9)
  253. sbgta.D = 500
  254. wait(1)
  255. BPta.D = 1000
  256. BPta.Position = hitt.HumanoidRootPart.CFrame * CFrame.new(0, -3, 0).p
  257. sbgta.CFrame = CFrame.new(speara.Position, hitt.HumanoidRootPart.Position) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  258. debounce = true
  259. local gdisp = coroutine.wrap(function()
  260. wait(1)
  261. for i = 1, 9 do
  262. wait(0.1)
  263. speara.Transparency = speara.Transparency + 0.3
  264. end
  265. speara:Destroy()
  266. end)
  267. gdisp()
  268. end
  269. end
  270. end
  271. end
  272. end
  273. end
  274. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement