coolgoldboy166

undyne spear

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