Advertisement
Dark_EccentricYT

Untitled

Oct 27th, 2017
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.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 LeftUpperArm = char.LeftUpperArm
  7. local LeftShoulder = char.LeftUpperArm.LeftShoulder
  8. local LeftLowerArm = char.LeftLowerArm
  9. local LeftElbow = char.LeftLowerArm.LeftElbow
  10. local LeftUpperLeg = char.LeftUpperLeg
  11. local LeftHip = char.LeftUpperLeg.LeftHip
  12. local LeftLowerLeg = char.LeftLowerLeg
  13. local LeftKnee = char.LeftLowerLeg.LeftKnee
  14. local RightUpperArm = char.RightUpperArm
  15. local RightShoulder = char.RightUpperArm.RightShoulder
  16. local RightLowerArm = char.RightLowerArm
  17. local RightElbow = char.RightLowerArm.RightElbow
  18. local RightUpperLeg = char.RightUpperLeg
  19. local RightHip = char.RightUpperLeg.RightHip
  20. local RightLowerLeg = char.RightLowerLeg
  21. local RightKnee = char.RightLowerLeg.RightKnee
  22. local UpperTorso = char.UpperTorso
  23. local LowerTorso = char.LowerTorso
  24. local Root = char.LowerTorso.Root
  25. local Head = char.Head
  26. local Neck = char.Head.Neck
  27. local RootPart = char.HumanoidRootPart
  28. local LeftHand = char.LeftHand
  29. local RightHand = char.RightHand
  30. local LeftFoot = char.LeftFoot
  31. local RightFoot = char.RightFoot
  32. Instance.new("ForceField", char).Visible = false
  33. hum:SetStateEnabled("Dead", false)
  34. hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  35. local candie = false
  36. local Udyne = true
  37. local v3 = Vector3.new
  38. local idle = true
  39. local walk = true
  40. local debounce = true
  41. local mouse = p:GetMouse()
  42. local walk1 = true
  43. local walkon = true
  44. local ns = NumberSequence.new
  45. local new = Instance.new
  46. local nr = NumberRange.new
  47. local bc = BrickColor.new
  48. local UpperTorso = char.UpperTorso
  49. local Waist = char.UpperTorso.Waist
  50. local srot = 0
  51. local spos = {
  52. [1] = {180},
  53. [2] = {144},
  54. [3] = {108},
  55. [4] = {72},
  56. [5] = {36},
  57. [6] = {0}
  58. }
  59. local Vetrom = new("Sound", char)
  60. Vetrom.SoundId = "rbxassetid://682726290"
  61. Vetrom.Volume = 5
  62. Vetrom.Pitch = 1
  63. Vetrom.Looped = true
  64. Vetrom:Play()
  65. local hitsnd = new("Sound", char)
  66. hitsnd.SoundId = "rbxassetid://410625063"
  67. hitsnd.Volume = 10
  68. hitsnd.Pitch = 1
  69. for i = 1, 20 do
  70. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  71. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0.p) * CFrame.Angles(rad(120), rad(0), rad(0)), 0.1)
  72. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  73. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  74. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  75. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  76. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new(LeftKnee.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  77. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  78. Root.C0 = Root.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  79. Neck.C0 = Neck.C0:lerp(CFrame.new(Neck.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  80. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new(RightFoot.RightAnkle.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  81. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new(LeftFoot.LeftAnkle.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  82. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new(RightHand.RightWrist.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  83. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new(LeftHand.LeftWrist.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  84. Waist.C0 = Waist.C0:lerp(CFrame.new(Waist.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  85. wait()
  86. end
  87. wait(0.5)
  88. for i = 1, 20 do
  89. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  90. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  91. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  92. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  93. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  94. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  95. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new(LeftKnee.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  96. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  97. Root.C0 = Root.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  98. Neck.C0 = Neck.C0:lerp(CFrame.new(Neck.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  99. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new(RightFoot.RightAnkle.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  100. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new(LeftFoot.LeftAnkle.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  101. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new(RightHand.RightWrist.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  102. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new(LeftHand.LeftWrist.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  103. Waist.C0 = Waist.C0:lerp(CFrame.new(Waist.C0.p) * CFrame.Angles(rad(0), rad(0), rad(0)), 0.1)
  104. wait()
  105. end
  106. local udynespear1 = new("Part", char)
  107. udynespear1.BrickColor = bc("Toothpaste")
  108. udynespear1.Material = "Neon"
  109. udynespear1.CanCollide = false
  110. udynespear1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 10, 0)
  111. udynespear1.Size = Vector3.new(1, 1, 1)
  112. local udynespear2 = new("Part", char)
  113. udynespear2.BrickColor = udynespear1.BrickColor
  114. udynespear2.Material = udynespear1.Material
  115. udynespear2.CanCollide = false
  116. udynespear2.CFrame = udynespear1.CFrame
  117. udynespear2.Size = udynespear1.Size
  118. local udynespear3 = new("Part", char)
  119. udynespear3.BrickColor = udynespear1.BrickColor
  120. udynespear3.Material = udynespear1.Material
  121. udynespear3.CanCollide = false
  122. udynespear3.CFrame = udynespear1.CFrame
  123. udynespear3.Size = udynespear1.Size
  124. local udynespear4 = new("Part", char)
  125. udynespear4.BrickColor = udynespear1.BrickColor
  126. udynespear4.Material = udynespear1.Material
  127. udynespear4.CanCollide = false
  128. udynespear4.CFrame = udynespear1.CFrame
  129. udynespear4.Size = udynespear1.Size
  130. local udynespear5 = new("Part", char)
  131. udynespear5.BrickColor = udynespear1.BrickColor
  132. udynespear5.Material = udynespear1.Material
  133. udynespear5.CanCollide = false
  134. udynespear5.CFrame = udynespear1.CFrame
  135. udynespear5.Size = udynespear1.Size
  136. local udynespear6 = new("Part", char)
  137. udynespear6.BrickColor = udynespear1.BrickColor
  138. udynespear6.Material = udynespear1.Material
  139. udynespear6.CanCollide = false
  140. udynespear6.CFrame = udynespear1.CFrame
  141. udynespear6.Size = udynespear1.Size
  142. local zxc = Instance.new("SpecialMesh", udynespear1)
  143. zxc.MeshType = "FileMesh"
  144. zxc.Scale = Vector3.new(3, 3, 3)
  145. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  146. local zxc = Instance.new("SpecialMesh", udynespear2)
  147. zxc.MeshType = "FileMesh"
  148. zxc.Scale = Vector3.new(3, 3, 3)
  149. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  150. local zxc = Instance.new("SpecialMesh", udynespear3)
  151. zxc.MeshType = "FileMesh"
  152. zxc.Scale = Vector3.new(3, 3, 3)
  153. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  154. local zxc = Instance.new("SpecialMesh", udynespear4)
  155. zxc.MeshType = "FileMesh"
  156. zxc.Scale = Vector3.new(3, 3, 3)
  157. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  158. local zxc = Instance.new("SpecialMesh", udynespear5)
  159. zxc.MeshType = "FileMesh"
  160. zxc.Scale = Vector3.new(3, 3, 3)
  161. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  162. local zxc = Instance.new("SpecialMesh", udynespear6)
  163. zxc.MeshType = "FileMesh"
  164. zxc.Scale = Vector3.new(3, 3, 3)
  165. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  166. local sbg6 = Instance.new("BodyGyro", udynespear6)
  167. sbg6.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  168. sbg6.D = 400
  169. BP6 = Instance.new("BodyPosition", udynespear6)
  170. local sbg5 = Instance.new("BodyGyro", udynespear5)
  171. sbg5.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  172. sbg5.D = 400
  173. BP5 = Instance.new("BodyPosition", udynespear5)
  174. local sbg4 = Instance.new("BodyGyro", udynespear4)
  175. sbg4.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  176. sbg4.D = 400
  177. BP4 = Instance.new("BodyPosition", udynespear4)
  178. local sbg3 = Instance.new("BodyGyro", udynespear3)
  179. sbg3.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  180. sbg3.D = 400
  181. BP3 = Instance.new("BodyPosition", udynespear3)
  182. local sbg2 = Instance.new("BodyGyro", udynespear2)
  183. sbg2.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  184. sbg2.D = 400
  185. BP2 = Instance.new("BodyPosition", udynespear2)
  186. local sbg = Instance.new("BodyGyro", udynespear1)
  187. sbg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  188. sbg.D = 400
  189. BP = Instance.new("BodyPosition", udynespear1)
  190. spawn(function()
  191. while Udyne == true do
  192. BP2.Position = char.HumanoidRootPart.CFrame * CFrame.new(10, 5, 0).p
  193. BP3.Position = char.HumanoidRootPart.CFrame * CFrame.new(6, 8, 0).p
  194. BP.Position = char.HumanoidRootPart.CFrame * CFrame.new(3, 10, 0).p
  195. BP4.Position = char.HumanoidRootPart.CFrame * CFrame.new(-6, 8, 0).p
  196. BP5.Position = char.HumanoidRootPart.CFrame * CFrame.new(-3, 10, 0).p
  197. BP6.Position = char.HumanoidRootPart.CFrame * CFrame.new(-10, 5, 0).p
  198. sbg6.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  199. sbg5.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  200. sbg4.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  201. sbg3.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  202. sbg2.CFrame = CFrame.new(udynespear2.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  203. sbg.CFrame = CFrame.new(udynespear2.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  204. srot = srot + 4
  205. if srot == 360 then
  206. srot = 0
  207. end
  208. wait()
  209. end
  210. end)
  211. local Light = Instance.new("PointLight", char.HumanoidRootPart)
  212. Light.Color = Color3.new(0, 0, 1)
  213. Light.Brightness = 100
  214. Light.Range = 10
  215. hdebounce = true
  216. function throw1spear()
  217. coroutine.resume(coroutine.create(function()
  218. local udynespeart = new("Part", char)
  219. local zxc = Instance.new("SpecialMesh", udynespeart)
  220. zxc.MeshType = "FileMesh"
  221. zxc.Scale = Vector3.new(2, 2, 2)
  222. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  223. udynespeart.BrickColor = udynespear1.BrickColor
  224. udynespeart.Material = udynespear1.Material
  225. udynespeart.CanCollide = false
  226. udynespeart.Anchored = false
  227. udynespeart.Size = Vector3.new(2, 2, 2)
  228. 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)))
  229. udynespeart.Touched:connect(function(hit)
  230. if hit.Parent == char then
  231. return
  232. end
  233. for i, v in pairs(hit.Parent:GetChildren()) do
  234. if v:IsA("Humanoid") and hdebounce == true then
  235. hdebounce = false
  236. v.Health = v.Health - 10
  237. wait(0.9)
  238. hdebounce = true
  239. end
  240. end
  241. end)
  242. local sbgt = Instance.new("BodyGyro", udynespeart)
  243. sbgt.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  244. sbgt.D = 400
  245. sbgt.CFrame = CFrame.new(udynespear3.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  246. BPt = Instance.new("BodyPosition", udynespeart)
  247. BPt.Position = udynespeart.CFrame * CFrame.new(0, 10, 0).p
  248. wait(1)
  249. udynespeart.Anchored = true
  250. wait(0.5)
  251. udynespeart.Anchored = false
  252. BPt:destroy()
  253. local BodyVelocity = Instance.new("BodyVelocity", udynespeart)
  254. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  255. BodyVelocity.velocity = mouse.Hit.lookVector * 200
  256. for i = 1, 5 do
  257. sbgt.CFrame = CFrame.new(udynespeart.Position, mouse.Hit.p) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  258. wait()
  259. end
  260. sbgt:destroy()
  261. end))
  262. end
  263. mouse.KeyDown:connect(function(k)
  264. if k == "e" then
  265. end
  266. end)
  267. mouse.KeyDown:connect(function(k)
  268. if k == "f" then
  269. throw1spear()
  270. end
  271. end)
  272. local hitt
  273. mouse.KeyDown:connect(function(k)
  274. if k == "q" and mouse.Target then
  275. if mouse.Target.Parent == char then
  276. return
  277. end
  278. if mouse.Target.Parent == game.workspace.Base then
  279. return
  280. end
  281. for i, v in pairs(mouse.Target.Parent:GetChildren()) do
  282. if v:IsA("Humanoid") then
  283. hitt = mouse.Target.Parent
  284. if debounce == true then
  285. debounce = false
  286. for i = 1, 2 do
  287. do
  288. local speara = new("Part", char)
  289. speara.Touched:connect(function(hit)
  290. if hit.Parent == char then
  291. return
  292. end
  293. for i, v in pairs(hit.Parent:GetChildren()) do
  294. if v:IsA("Humanoid") and hdebounce == true then
  295. hdebounce = false
  296. v.Health = v.Health - 10
  297. wait(0.9)
  298. hdebounce = true
  299. end
  300. end
  301. end)
  302. local gunlight = Instance.new("SpotLight", speara)
  303. gunlight.Range = 40
  304. gunlight.Angle = 60
  305. gunlight.Face = "Top"
  306. gunlight.Shadows = true
  307. gunlight.Enabled = true
  308. gunlight.Color = Color3.new(0, 0, 1)
  309. local gunlight2 = Instance.new("SpotLight", speara)
  310. gunlight2.Range = 40
  311. gunlight2.Angle = 60
  312. gunlight2.Face = "Top"
  313. gunlight2.Shadows = true
  314. gunlight2.Enabled = true
  315. gunlight2.Color = Color3.new(0, 0, 1)
  316. speara.Size = Vector3.new(2, 2, 2)
  317. speara.BrickColor = bc("Toothpaste")
  318. local zxc = Instance.new("SpecialMesh", speara)
  319. zxc.MeshType = "FileMesh"
  320. zxc.Scale = Vector3.new(2, 2, 2)
  321. zxc.MeshId = "http://www.roblox.com/asset/?id=69891706"
  322. speara.Transparency = 0
  323. speara.Anchored = false
  324. speara.CanCollide = false
  325. speara.Name = "Spear"
  326. 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)))
  327. local sbgta = Instance.new("BodyGyro", speara)
  328. sbgta.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  329. sbgta.D = 10
  330. BPta = Instance.new("BodyPosition", speara)
  331. BPta.Name = "shootP"
  332. BPta.P = 20000
  333. sbgta.CFrame = CFrame.new(speara.Position, hitt.HumanoidRootPart.Position) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  334. BPta.Position = speara.CFrame * CFrame.new(0, 2, 0).p
  335. wait(0.9)
  336. sbgta.D = 500
  337. wait(1)
  338. BPta.D = 1000
  339. BPta.Position = hitt.HumanoidRootPart.CFrame * CFrame.new(0, -3, 0).p
  340. sbgta.CFrame = CFrame.new(speara.Position, hitt.HumanoidRootPart.Position) * CFrame.Angles(-math.pi / 2, math.rad(srot), 0)
  341. debounce = true
  342. local gdisp = coroutine.wrap(function()
  343. wait(1)
  344. for i = 1, 9 do
  345. wait(0.1)
  346. speara.Transparency = speara.Transparency + 0.3
  347. end
  348. speara:Destroy()
  349. end)
  350. gdisp()
  351. end
  352. end
  353. end
  354. end
  355. end
  356. end
  357. end)
  358. health = hum.Health
  359. hum.Changed:connect(function()
  360. if hum.Health < 5 and candie == false then
  361. candie = true
  362. defeated()
  363. end
  364. health = hum.Health
  365. end)
  366. p.Character.Humanoid.Died:connect(function()
  367. local jkl = Instance.new("Sound", Workspace)
  368. jkl.SoundId = "rbxassetid://427025525"
  369. jkl.Volume = 10
  370. jkl:Play()
  371. for _, V in pairs(char:getChildren()) do
  372. if V:isA("BasePart") then
  373. V.Transparency = 1
  374. elseif V:IsA("Accessory") and V:FindFirstChild("Handle") then
  375. V.Handle.Transparency = 1
  376. end
  377. end
  378. char.Head.face:destroy()
  379. for i = 1, 50 do
  380. dust = Instance.new("Part")
  381. dust.Locked = true
  382. dust.Size = Vector3.new(0.1, 0.1, 0.1)
  383. dust.BrickColor = BrickColor.new("White")
  384. dust.Transparency = 0
  385. dust.TopSurface = "Smooth"
  386. dust.BottomSurface = "Smooth"
  387. dust.CFrame = char.HumanoidRootPart.CFrame
  388. dust.CanCollide = true
  389. dust.Reflectance = 0.1
  390. dust.Material = "Neon"
  391. dust.Parent = char
  392. dust.Anchored = false
  393. end
  394. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement