EsTLation

clienthkscript

Mar 9th, 2022
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.47 KB | None | 0 0
  1.  
  2.  
  3. --STARTING VALUES--
  4.  
  5. local Player = game.Players.LocalPlayer
  6.  
  7. local Character = Player.Character
  8.  
  9. local Animate = Character:FindFirstChild("Animate") or Character:WaitForChild("Animate")
  10. if Animate then
  11. Animate:Destroy()
  12. end
  13.  
  14. local Humanoid = Character:WaitForChild("Humanoid")
  15.  
  16. Humanoid.Animator.Parent = nil
  17.  
  18. function GetParts()
  19. local Table = {}
  20. --BODY/HEAD--
  21. local HRP = Character:FindFirstChild("HumanoidRootPart") if HRP then table.insert(Table, HRP) end
  22. local Torso = Character:FindFirstChild("Torso") if Torso then table.insert(Table, Torso) end
  23. local Head = Character:FindFirstChild("Head") if Head then table.insert(Table, Head) end
  24. --LEGS--
  25. local RLeg = Character:FindFirstChild("Right Leg") if RLeg then table.insert(Table, RLeg) end
  26. local LLeg = Character:FindFirstChild("Left Leg") if LLeg then table.insert(Table, LLeg) end
  27. --ARMS--
  28. local RArm = Character:FindFirstChild("Right Arm") if RArm then table.insert(Table, RArm) end
  29. local LArm = Character:FindFirstChild("Left Arm") if LArm then table.insert(Table, LArm) end
  30. if RLeg and LLeg and RArm and LArm and Torso and HRP and Head then
  31. return Table
  32. else
  33. return false
  34. end
  35. end
  36.  
  37. repeat wait() GetParts() until GetParts() ~= false
  38.  
  39. local P = GetParts()
  40.  
  41. --MATH VALUES--
  42.  
  43. local MR = math.rad
  44. local Mra = math.random
  45. local SINE = 0
  46. local euler = CFrame.fromEulerAnglesXYZ
  47. local RootCF = euler(-1.57,0,3.14)
  48. local CF = CFrame.new
  49. local CFa = CFrame.Angles
  50. local necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  51.  
  52. --CREATE FAKE NAIL--
  53.  
  54. local FNail = Instance.new("Part", Character)
  55. FNail.Name = "FNail"
  56. FNail.Position = P[2].Position
  57. FNail.Size = Vector3.new(0.832, 4.933, 0.36)
  58. FNail.CanCollide = false
  59.  
  60. local FNailMesh = Instance.new("SpecialMesh", FNail)
  61. FNailMesh.Name = "FNailMesh"
  62. FNailMesh.MeshId = "rbxassetid://4462649391"
  63. FNailMesh.Scale = Vector3.new(2.2,2.5,1.5)
  64.  
  65. --WELD FAKE NAIL--
  66.  
  67. local BackNailWeld = Instance.new("Weld", FNail)
  68.  
  69. BackNailWeld.Part0 = FNail
  70.  
  71. BackNailWeld.Part1 = P[2]
  72.  
  73. BackNailWeld.C0 = CFrame.new(0, 0, -0.6) * CFrame.Angles(0, 0, MR(205))
  74.  
  75. --CREATE REAL NAIL--
  76.  
  77. local Nail = Instance.new("Part", Character)
  78. Nail.Name = "Nail"
  79. Nail.Transparency = 1
  80. Nail.Position = P[6].Position
  81. Nail.Size = Vector3.new(0.832, 4.933, 0.36)
  82. Nail.CanCollide = false
  83.  
  84. local NailMesh = Instance.new("SpecialMesh", Nail)
  85. NailMesh.Name = "NailMesh"
  86. NailMesh.MeshId = "rbxassetid://4462649391"
  87. NailMesh.Scale = Vector3.new(2.2,2.5,1.5)
  88.  
  89. --WELD REAL NAIL--
  90.  
  91. local NailWeld = Instance.new("Weld", Nail)
  92.  
  93. NailWeld.Part0 = Nail
  94.  
  95. NailWeld.Part1 = P[6]
  96.  
  97. NailWeld.C0 = CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 1, 1.95)
  98.  
  99. --CREATE HITBOX--
  100.  
  101. local HitBox = Instance.new("Part", Nail)
  102. HitBox.Name = "HitBox"
  103. HitBox.Transparency = 1
  104. HitBox.Position = Nail.Position
  105. HitBox.Size = Vector3.new(0.832, 4.933, 0.05)
  106. HitBox.CanCollide = false
  107.  
  108. --WELD HITBOX--
  109.  
  110. local HitWeld = Instance.new("Weld", HitBox)
  111.  
  112. HitWeld.Part0 = HitBox
  113.  
  114. HitWeld.Part1 = Nail
  115.  
  116. --CREATE TRAIL--
  117.  
  118. local Attachment0 = Instance.new("Attachment", HitBox)
  119. Attachment0.Name = "Attachment0"
  120. Attachment0.Position = Vector3.new(0, 2.4665, 0)
  121.  
  122. local Attachment1 = Instance.new("Attachment", HitBox)
  123. Attachment1.Name = "Attachment1"
  124. Attachment1.Position = Vector3.new(0, -2.4665, 0)
  125.  
  126. local Trail = Instance.new("Trail", HitBox)
  127. Trail.Attachment0 = Attachment0
  128. Trail.Attachment1 = Attachment1
  129. Trail.Texture = "rbxassetid://1978704853"
  130. Trail.LightInfluence = 1
  131. Trail.LightEmission = 1
  132. Trail.Lifetime = 0.4
  133.  
  134. --RAYCAST FUNCTION--
  135. function RayCast(Position, Direction, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  136. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Max or 999.999)), Ignore)
  137. end
  138.  
  139. --CLERP STUFF
  140.  
  141. function CLERP(a,b,t)
  142. local qa = {QuaternionFromCFrame(a)}
  143. local qb = {QuaternionFromCFrame(b)}
  144. local ax, ay, az = a.x, a.y, a.z
  145. local bx, by, bz = b.x, b.y, b.z
  146. local _t = 1-t
  147. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  148. end
  149.  
  150. function QuaternionFromCFrame(CF)
  151. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = CF:components()
  152. local trace = m00 + m11 + m22
  153. if trace > 0 then
  154. local s = math.sqrt(1 + trace)
  155. local recip = 0.5/s
  156. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  157. else
  158. local i = 0
  159. if m11 > m00 then
  160. i = 1
  161. end
  162. if m22 > (i == 0 and m00 or m11) then
  163. i = 2
  164. end
  165. if i == 0 then
  166. local s = math.sqrt(m00-m11-m22+1)
  167. local recip = 0.5/s
  168. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  169. elseif i == 1 then
  170. local s = math.sqrt(m11-m22-m00+1)
  171. local recip = 0.5/s
  172. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  173. elseif i == 2 then
  174. local s = math.sqrt(m22-m00-m11+1)
  175. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  176. end
  177. end
  178. end
  179.  
  180. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  181. local xs, ys, zs = x + x, y + y, z + z
  182. local wx, wy, wz = w*xs, w*ys, w*zs
  183. local xx = x*xs
  184. local xy = x*ys
  185. local xz = x*zs
  186. local yy = y*ys
  187. local yz = y*zs
  188. local zz = z*zs
  189. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  190. end
  191.  
  192. function QuaternionSlerp(a, b, t)
  193. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  194. local startInterp, finishInterp;
  195. if cosTheta >= 0.0001 then
  196. if (1 - cosTheta) > 0.0001 then
  197. local theta = math.acos(cosTheta)
  198. local invSinTheta = 1/math.sin(theta)
  199. startInterp = math.sin((1-t)*theta)*invSinTheta
  200. finishInterp = math.sin(t*theta)*invSinTheta
  201. else
  202. startInterp = 1-t
  203. finishInterp = t
  204. end
  205. else
  206. if (1+cosTheta) > 0.0001 then
  207. local theta = math.acos(-cosTheta)
  208. local invSinTheta = 1/math.sin(theta)
  209. startInterp = math.sin((t-1)*theta)*invSinTheta
  210. finishInterp = math.sin(t*theta)*invSinTheta
  211. else
  212. startInterp = t-1
  213. finishInterp = t
  214. end
  215. end
  216. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  217. end
  218.  
  219. ---SONG---
  220.  
  221. local Music = Instance.new("Sound", P[2])
  222. Music.Name = "Song"
  223. Music.SoundId = "rbxassetid://711197488"
  224. Music.Looped = true
  225. Music.Volume = 1
  226. Music:Play()
  227. Music.EmitterSize = 20
  228. Music.MaxDistance = 100
  229.  
  230. ---JOINTS---
  231.  
  232. LeftHip = P[2]["Left Hip"]
  233. RightHip = P[2]["Right Hip"]
  234. RootJoint = P[1]["RootJoint"]
  235.  
  236. RightShoulder, LeftShoulder=Instance.new("Weld"), Instance.new("Weld")
  237. RightShoulder.Name="Right Shoulder" LeftShoulder.Name="Left Shoulder"
  238.  
  239. RightShoulder.Name="Right Shoulder"
  240. RightShoulder.Part0=P[2]
  241. RightShoulder.C0=CF(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  242. RightShoulder.C1=CF(0, 0.5, 0)
  243. RightShoulder.Part1=Character["Right Arm"]
  244. RightShoulder.Parent=P[2]
  245. --
  246. LeftShoulder.Name="Left Shoulder"
  247. LeftShoulder.Part0=P[2]
  248. LeftShoulder.C0=CF(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  249. LeftShoulder.C1=CF(0, 0.5, 0)
  250. LeftShoulder.Part1=Character["Left Arm"]
  251. LeftShoulder.Parent=P[2]
  252.  
  253. --TWEEN
  254.  
  255. function Tween(obj,props,time,easing,direction,repeats,backwards)
  256. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  257. local tween = game:GetService("TweenService"):Create(obj, info, props)
  258. tween:Play()
  259. end
  260.  
  261. --ATTACKS
  262.  
  263. local Wait = 150
  264.  
  265. local A = false
  266.  
  267. local J = false
  268.  
  269. local AT = true
  270.  
  271. function AttackSlash1()
  272. A = true
  273. Wait = 0
  274. Humanoid.WalkSpeed = 8
  275. Humanoid.JumpPower = 0
  276. for i = 0, 0.7, 0.1 do
  277. wait()
  278. RightHip.C0=CLERP(RightHip.C0,CF(1,-1,0)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-3),math.rad(-40),math.rad(0)),.2)
  279. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1,0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-3),math.rad(1),math.rad(5)),.2)
  280. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(0.1,0.1,0)*CFa(math.rad(0),math.rad(0),math.rad(40)),.3)
  281. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(2),math.rad(0),math.rad(-40)),.3)
  282. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.25,0.5,-0.65)*CFa(math.rad(90),math.rad(-30),math.rad(-23)),.3)
  283. LeftShoulder.C0=CLERP(LeftShoulder.C0, CF(-1.45,0.7,0.4) * CFa(math.rad(130),math.rad(-40),math.rad(-15)),.3)
  284. NailWeld.C0 = CLERP(NailWeld.C0, CFrame.Angles(math.rad(180), math.rad(0), math.rad(90)) * CFrame.new(1.7, 1, 0),0.3)
  285. end
  286. AT = false
  287. local Sound = Instance.new("Sound", HitBox)
  288. Sound.Name = "Sound"
  289. Sound.SoundId = "rbxassetid://1409971445"
  290. Sound.PlaybackSpeed = 1.2
  291. Sound:Play()
  292. Sound.EmitterSize = 20
  293. Sound.MaxDistance = 50
  294. spawn(function()
  295. wait(4)
  296. Sound:Destroy()
  297. end)
  298. for i = 0, 0.4, 0.1 do
  299. wait()
  300. RightHip.C0=CLERP(RightHip.C0,CF(1,-1,0)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-3),math.rad(0),math.rad(-20)),.2)
  301. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1,0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-3),math.rad(50),math.rad(0)),.2)
  302. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(-0.1,-0.25,0)*CFa(math.rad(10),math.rad(0),math.rad(-50)),.3)
  303. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(2),math.rad(0),math.rad(50)),.3)
  304. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.45,0.5,0.1)*CFa(math.rad(80),math.rad(-20),math.rad(70)),.3)
  305. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-1.45,0.5,0.1)*CFa(math.rad(100),math.rad(-20),math.rad(-50)),.3)
  306. end
  307. A = false
  308. end
  309.  
  310. function AttackSlash2()
  311. A = true
  312. Wait = 0
  313. Humanoid.WalkSpeed = 8
  314. Humanoid.JumpPower = 0
  315. for i = 0, 0.7, 0.1 do
  316. wait()
  317. RightHip.C0=CLERP(RightHip.C0,CF(1,-1,0)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-3),math.rad(0),math.rad(0)),.2)
  318. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1,0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-3),math.rad(20),math.rad(5)),.2)
  319. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(-0.1,0.1,0)*CFa(math.rad(0),math.rad(0),math.rad(-40)),.3)
  320. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(2),math.rad(0),math.rad(40)),.3)
  321. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.25,0.5,-0.65)*CFa(math.rad(100),math.rad(0),math.rad(-23)),.3)
  322. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-0.5,0.5,-0.25)*CFa(math.rad(90),math.rad(0),math.rad(40)),.3)
  323. NailWeld.C0 = CLERP(NailWeld.C0, CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) * CFrame.new(-1.9, 1, 0),0.3)
  324. end
  325. local Sound = Instance.new("Sound", HitBox)
  326. Sound.Name = "Sound"
  327. Sound.SoundId = "rbxassetid://1409971445"
  328. Sound.PlaybackSpeed = 1.2
  329. Sound:Play()
  330. Sound.EmitterSize = 20
  331. Sound.MaxDistance = 50
  332. spawn(function()
  333. wait(4)
  334. Sound:Destroy()
  335. end)
  336. AT = false
  337. for i = 0, 0.4, 0.1 do
  338. wait()
  339. RightHip.C0=CLERP(RightHip.C0,CF(1,-1,0)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-3),math.rad(-30),math.rad(0)),.2)
  340. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1,0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-3),math.rad(0),math.rad(20)),.2)
  341. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(0.2,-0.25,0)*CFa(math.rad(10),math.rad(0),math.rad(90)),.3)
  342. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(2),math.rad(0),math.rad(-90)),.3)
  343. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.45,0.5,0.1)*CFa(math.rad(80),math.rad(0),math.rad(20)),.3)
  344. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-1.45,0.5,0.1)*CFa(math.rad(100),math.rad(0),math.rad(-50)),.3)
  345. NailWeld.C0 = CLERP(NailWeld.C0, CFrame.Angles(math.rad(0), math.rad(0), math.rad(180)) * CFrame.new(0, 2.75, 0),0.3)
  346. end
  347. A = false
  348. end
  349.  
  350. local Combo = 1
  351.  
  352. Mouse.Button1Down:Connect(function()
  353. if Combo == 1 and A == false and J == false then
  354. Combo = 2
  355. AttackSlash1()
  356. elseif Combo == 2 and A == false and J == false then
  357. Combo = 1
  358. AttackSlash2()
  359. end
  360. end)
  361.  
  362. function OnHit(Character)
  363. local Torso = Character:FindFirstChild("Torso")
  364. if Torso then
  365. spawn(function()
  366. for i = 1,7 do
  367. wait()
  368. local Sphere = Instance.new("Part", Torso)
  369. local Mesh = Instance.new("SpecialMesh", Sphere)
  370. Mesh.MeshType = Enum.MeshType.Sphere
  371. Sphere.Anchored = true
  372. Sphere.CanCollide = false
  373. Sphere.Material = Enum.Material.Neon
  374. Sphere.Color = Color3.fromRGB(255,255,255)
  375. Sphere.Orientation = Vector3.new(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360))
  376. Sphere.Size = Vector3.new(0.1, 0.1, math.random(3,5))
  377. Sphere.Position = Torso.Position
  378. spawn(function()
  379. Tween(Sphere,{Size = Vector3.new(0.2, 0.2, math.random(7,10))},0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  380. Tween(Sphere,{Transparency = 1},0.5,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  381. wait(0.15)
  382. Tween(Sphere,{Size = Vector3.new(0.1, 0.1, math.random(3,5))},1,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  383. wait(0.35)
  384. Sphere:Destroy()
  385. end)
  386. end
  387. end)
  388. end
  389. end
  390.  
  391. local SoulValue = 0
  392.  
  393. function OnDeath(Character)
  394. local Torso = Character:FindFirstChild("Torso")
  395. if Torso then
  396. spawn(function()
  397. for i = 1,10 do
  398. wait()
  399. local Sphere = Instance.new("Part", Torso)
  400. local Mesh = Instance.new("SpecialMesh", Sphere)
  401. Mesh.MeshType = Enum.MeshType.Sphere
  402. Sphere.Anchored = true
  403. Sphere.CanCollide = false
  404. Sphere.Material = Enum.Material.Neon
  405. Sphere.Color = Color3.fromRGB(255,255,255)
  406. Sphere.Size = Vector3.new(0.45, 0.45, 0.45)
  407. Sphere.Position = Torso.Position
  408. spawn(function()
  409. Tween(Sphere,{Position = Sphere.Position + Vector3.new(math.random(-7, 7), math.random(-7, 7), math.random(-7, 7))},0.7,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
  410. wait(0.7)
  411. for i = 0, 1,0.1 do
  412. wait()
  413. Sphere.CFrame = Sphere.CFrame:Lerp(P[2].CFrame, i)
  414. end
  415. SoulValue = SoulValue + 1
  416. Tween(Sphere,{Transparency = 1},0.2,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  417. Tween(Sphere,{Size = Vector3.new(0.7, 0.7, 0.7)},0.3,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  418. wait(0.35)
  419. Sphere:Destroy()
  420. end)
  421. end
  422. end)
  423. end
  424. end
  425.  
  426. HitBox.Touched:Connect(function(Hit)
  427. if A == true and AT == false then
  428. local Humanoid = Hit.Parent:FindFirstChild("Humanoid") or Hit.Parent.Parent:FindFirstChild("Humanoid")
  429. if Humanoid and Humanoid.Health > 0 and Humanoid.Parent ~= Character then
  430. AT = true
  431. Humanoid:TakeDamage(35)
  432. local Sound = Instance.new("Sound", HitBox)
  433. Sound.Name = "Sound"
  434. Sound.SoundId = "rbxassetid://2438779398"
  435. Sound:Play()
  436. Sound.EmitterSize = 20
  437. Sound.MaxDistance = 50
  438. spawn(function()
  439. wait(4)
  440. Sound:Destroy()
  441. end)
  442. OnHit(Humanoid.Parent)
  443. if Humanoid.Health <= 0 then
  444. OnDeath(Humanoid.Parent)
  445. end
  446. end
  447. end
  448. end)
  449.  
  450. function SoulJump()
  451. if SoulValue >= 5 then
  452. SoulValue = SoulValue - 5
  453. J = true
  454. Nail.Transparency = 0
  455. FNail.Transparency = 1
  456. Wait = 150
  457. Humanoid.WalkSpeed = 0
  458. Humanoid.JumpPower = 0
  459. local Sound = Instance.new("Sound", HitBox)
  460. Sound.Name = "Sound"
  461. Sound.SoundId = "rbxassetid://3671410369"
  462. Sound:Play()
  463. Sound.EmitterSize = 20
  464. Sound.MaxDistance = 50
  465. spawn(function()
  466. wait(4)
  467. Sound:Destroy()
  468. end)
  469. for i = 0, 3, 0.1 do
  470. wait()
  471. spawn(function()
  472. local Sphere = Instance.new("Part", P[1])
  473. local Mesh = Instance.new("SpecialMesh", Sphere)
  474. Mesh.MeshType = Enum.MeshType.Sphere
  475. Sphere.Anchored = true
  476. Sphere.CanCollide = false
  477. Sphere.Material = Enum.Material.Neon
  478. Sphere.Color = Color3.fromRGB(255,255,255)
  479. Sphere.Size = Vector3.new(0.1, 1, 0.1)
  480. Sphere.Position = P[1].Position + Vector3.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  481. spawn(function()
  482. Tween(Sphere,{Position = Sphere.Position + Vector3.new(0, math.random(2, 4), 0)},1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
  483. Tween(Sphere,{Transparency = 1},1,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  484. Tween(Sphere,{Size = Vector3.new(0.5, 2, 0.5)},1,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  485. wait(2)
  486. Sphere:Destroy()
  487. end)
  488. end)
  489. RightHip.C0=CLERP(RightHip.C0,CF(1,-0.5 - 0.05 * math.cos(SINE / 25),-0.75)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  490. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-0.5 - 0.05 * math.cos(SINE / 25),-0.75)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-5),math.rad(0),math.rad(20)),.1)
  491. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(0,0,-2 + 0.05 * math.cos(SINE / 25))*CFa(math.rad(10),math.rad(0),math.rad(0)),.1)
  492. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(10),math.rad(0),math.rad(0)),.1)
  493. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.4,0.4 + 0 * math.cos(SINE / 25),0)*CFa(math.rad(35),math.rad(0),math.rad(-50)),.1)
  494. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-1.4,0.4 + 0 * math.cos(SINE / 25),0)*CFa(math.rad(35),math.rad(0),math.rad(50)),.1)
  495. end
  496. local vel = Instance.new("BodyPosition", P[2])
  497. vel.P = 7500
  498. vel.D = 1000
  499. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  500. vel.position = P[2].CFrame.p + Vector3.new(0, 100, 0)
  501. spawn(function()
  502. wait(1)
  503. vel:Destroy()
  504. end)
  505. local Sound = Instance.new("Sound", HitBox)
  506. Sound.Name = "Sound"
  507. Sound.SoundId = "rbxassetid://1295446488"
  508. Sound:Play()
  509. Sound.EmitterSize = 20
  510. Sound.MaxDistance = 50
  511. spawn(function()
  512. wait(4)
  513. Sound:Destroy()
  514. end)
  515. spawn(function()
  516. local A = P[2].Position + Vector3.new(0, -4, 0)
  517. for i = 1, 15 do
  518. wait()
  519. local Part = Instance.new("Part", game.Workspace)
  520. Part.Anchored = true
  521. Part.Color = Color3.fromRGB(255, 255, 255)
  522. Part.Orientation = Vector3.new(0, 0, Vector3.new(math.random(-360, 360)))
  523. Part.CanCollide = false
  524. Part.FormFactor = 3
  525. Part.Name = "Ring"
  526. Part.Material = "Neon"
  527. Part.Size = Vector3.new(1, 1, 1)
  528. Tween(Part,{Orientation = Vector3.new(0, math.random(-360, 360), 0)},2,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
  529. Part.Position = A
  530. Part.Transparency = 0
  531. local M = Instance.new("SpecialMesh", Part)
  532. M.MeshId = "rbxassetid://662585058"
  533. M.Scale = Vector3.new(0.05,0.01,0.05)
  534. Tween(M,{Scale = Vector3.new(0.5, 0.01, 0.5)},2,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
  535. Tween(Part,{Transparency = 1},1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
  536. end
  537. end)
  538. for i = 0, 2, 0.1 do
  539. wait()
  540. RightHip.C0=CLERP(RightHip.C0,CF(1,-0.35 - 0.05 * math.cos(SINE / 25),-0.75)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-5),math.rad(0),math.rad(-20)),.5)
  541. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 25),0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-5),math.rad(0),math.rad(20)),.5)
  542. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(0,0,0 + 0.05 * math.cos(SINE / 25))*CFa(math.rad(-10),math.rad(0),math.rad(0)),.5)
  543. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  544. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.45,0.5 + 0.1 * math.cos(SINE / 25),0)*CFa(math.rad(-5),math.rad(0),math.rad(45)),.5)
  545. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-1.45,0.5 + 0.1 * math.cos(SINE / 25),0)*CFa(math.rad(-5),math.rad(0),math.rad(-45)),.5)
  546. end
  547. J = false
  548. end
  549. end
  550.  
  551. --UIS--
  552.  
  553. Mouse.KeyDown:connect(function(k)
  554. if k == "q" and J == false then
  555. if Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall and Humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
  556. SoulJump()
  557. end
  558. elseif k == "v" then
  559. Music.SoundId = "rbxassetid://711197488"
  560. Music:Play()
  561. elseif k == "b" then
  562. Music.SoundId = "rbxassetid://1525123663"
  563. Music:Play()
  564. elseif k == "n" then
  565. Music.SoundId = "rbxassetid://2156992950"
  566. Music:Play()
  567. elseif k == "m" then
  568. Music.Playing = not Music.Playing
  569. end
  570. end)
  571.  
  572. local Thing = 0
  573.  
  574. ---GUIS
  575.  
  576. local ScreenGui = Instance.new("ScreenGui")
  577. local Frame = Instance.new("Frame")
  578. local Number = Instance.new("TextLabel")
  579. ScreenGui.Parent = Player.PlayerGui
  580. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  581.  
  582. Frame.Parent = ScreenGui
  583. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  584. Frame.BackgroundTransparency = 1
  585. Frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  586. Frame.Size = UDim2.new(1, 0, 1, 0)
  587.  
  588. Number.Name = "Number"
  589. Number.Parent = Frame
  590. Number.BackgroundColor3 = Color3.new(1, 1, 1)
  591. Number.BackgroundTransparency = 1
  592. Number.Position = UDim2.new(0.914270997, 0, 0.872235894, 0)
  593. Number.Size = UDim2.new(0.0854901969, 0, 0.127764121, 0)
  594. Number.Font = Enum.Font.SourceSansLight
  595. Number.Text = "0"
  596. Number.TextColor3 = Color3.new(1, 1, 1)
  597. Number.TextScaled = true
  598. Number.TextSize = 14
  599. Number.TextWrapped = true
  600.  
  601. while wait() do
  602. Thing = Thing + 1
  603. if Thing > 10 then
  604. Thing = 0
  605. end
  606. if A == false and J == false then
  607. Humanoid.WalkSpeed = 18
  608. Humanoid.JumpPower = 60
  609. Trail.Enabled = false
  610. elseif A == true and J == false then
  611. Trail.Enabled = true
  612. end
  613. if Wait >= 150 then
  614. Nail.Transparency = 1
  615. FNail.Transparency = 0
  616. elseif Wait < 150 then
  617. Nail.Transparency = 0
  618. FNail.Transparency = 1
  619. Wait = Wait + 2
  620. end
  621. if SoulValue > 20 then
  622. SoulValue = 20
  623. end
  624. if SoulValue > 3 and Thing >= 10 then
  625. for i = 1,SoulValue/3 do
  626. spawn(function()
  627. local Sphere = Instance.new("Part", P[1])
  628. local Mesh = Instance.new("SpecialMesh", Sphere)
  629. Mesh.MeshType = Enum.MeshType.Sphere
  630. Sphere.Anchored = true
  631. Sphere.CanCollide = false
  632. Sphere.Material = Enum.Material.Neon
  633. Sphere.Color = Color3.fromRGB(255,255,255)
  634. Sphere.Size = Vector3.new(0.2, 0.2, 0.2)
  635. Sphere.Position = P[1].Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  636. spawn(function()
  637. Tween(Sphere,{Position = Sphere.Position + Vector3.new(0, math.random(2, 4), 0)},2,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
  638. Tween(Sphere,{Transparency = 1},2,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  639. Tween(Sphere,{Size = Vector3.new(0.3, 0.3, 0.3)},2,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut)
  640. wait(2)
  641. Sphere:Destroy()
  642. end)
  643. end)
  644. end
  645. end
  646. Number.Text = SoulValue
  647. local Torvel = (P[1].Velocity * Vector3.new(1,0,1)).magnitude
  648. HF,PF = RayCast(P[1].Position,(CFrame.new(P[1].Position, P[1].Position - Vector3.new(0,1,0))).lookVector, 4 ,Character)
  649. if A == false and J == false then
  650. NailWeld.C0 = CLERP(NailWeld.C0, CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 1, 1.95), 0.5)
  651. if Torvel>2 and Torvel<22 and HF ~= nil then
  652. SINE = SINE + 2
  653. Anim="Walk"
  654. RightHip.C0=CLERP(RightHip.C0,CF(1,-1 + 0.05 * math.cos(SINE / 4),0)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(0),math.rad(0 + 5 * math.cos(SINE / 2)),math.rad(0 + 55 * math.cos(SINE / 8))),.1)
  655. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1 + 0.05 * math.cos(SINE / 4),0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(0),math.rad(0 + 5 * math.cos(SINE / 2)),math.rad(0 + 55 * math.cos(SINE / 8))),.1)
  656. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(0,-0.05,-0.05 - 0.05 * math.cos(SINE / 4))*CFa(math.rad(5 + 3 * math.cos(SINE / 4)),math.rad(0 + P[1].RotVelocity.Y/1.5),math.rad(0 - P[1].RotVelocity.Y - 5 * math.cos(SINE / 8))),.1)
  657. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(-5 + 0.5 * math.cos(SINE / 4)),math.rad(0 + P[1].RotVelocity.Y/1),math.rad(0 - P[3].RotVelocity.Y*1.5 + 5 * math.cos(SINE / 8))),.1)
  658. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.5,0.5,0 + 0.25 * math.cos(SINE / 8))*CFa(math.rad(0 - 70 * math.cos(SINE / 8)),math.rad(0),math.rad(5 - 10 * math.cos(SINE / 4))),.1)
  659. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-1.5,0.5,0 - 0.25 * math.cos(SINE / 8))*CFa(math.rad(0 + 70 * math.cos(SINE / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(SINE / 4))),.1)
  660. elseif Torvel<1 and HF~=nil then
  661. SINE = SINE + 3
  662. Anim="Idle"
  663. RightHip.C0=CLERP(RightHip.C0,CF(1,-1 + 0.05 * math.cos(SINE / 20) - 0.02 * math.cos(SINE / 40),0)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-3 + 2 * math.cos(SINE / 40)),math.rad(0 - 6 * math.cos(SINE / 40)),math.rad(-6 + 2 * math.cos(SINE / 20) - 6 * math.cos(SINE / 40))),.1)
  664. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1 + 0.05 * math.cos(SINE / 20) - 0.02 * math.cos(SINE / 40),0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-3 - 2 * math.cos(SINE / 40)),math.rad(10 - 6 * math.cos(SINE / 40)),math.rad(3 - 2 * math.cos(SINE / 20) - 3 * math.cos(SINE / 40))),.1)
  665. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(0 + 0.02 * math.cos(SINE / 40),0 - 0.06 * math.cos(SINE / 40),-0.05 - 0.05 * math.cos(SINE / 20))*CFa(math.rad(0 + 2 * math.cos(SINE / 20)),math.rad(0 + 2 * math.cos(SINE / 40)),math.rad(-20 + 6 * math.cos(SINE / 40))),.1)
  666. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(6),math.rad(0 - 2 * math.cos(SINE / 42)),math.rad(20 - 6 * math.cos(SINE / 40))),.1)
  667. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.45,0.5 + 0.05 * math.cos(SINE / 28),0.1)*CFa(math.rad(-13 + 3 * math.cos(SINE / 26)),math.rad(10 - 3 * math.cos(SINE / 24)),math.rad(20 - 5 * math.cos(SINE / 34))),.1)
  668. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-1.45,0.5 + 0.05 * math.cos(SINE / 28),0.1)*CFa(math.rad(-13 - 3 * math.cos(SINE / 25)),math.rad(10 + 3 * math.cos(SINE / 24)),math.rad(-10 + 5 * math.cos(SINE / 34))),.1)
  669. elseif P[1].Velocity.y > 1 and HF==nil then
  670. SINE = SINE + 3
  671. Anim="Jump" -- falling anims
  672. RightHip.C0=CLERP(RightHip.C0,CF(1,-0.35 - 0.05 * math.cos(SINE / 25),-0.75)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  673. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 25),0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-5),math.rad(0),math.rad(20)),.1)
  674. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(0,0,0 + 0.05 * math.cos(SINE / 25))*CFa(math.rad(-10),math.rad(0),math.rad(0)),.1)
  675. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  676. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.45,0.5 + 0.1 * math.cos(SINE / 25),0)*CFa(math.rad(-5),math.rad(0),math.rad(25)),.1)
  677. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-1.45,0.5 + 0.1 * math.cos(SINE / 25),0)*CFa(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  678. elseif P[1].Velocity.y < -1 and HF==nil then
  679. SINE = SINE + 3
  680. Anim="Fall" -- falling anims
  681. RightHip.C0=CLERP(RightHip.C0,CF(1,-0.35 - 0.05 * math.cos(SINE / 25),-0.75)*CFa(math.rad(0),math.rad(90),math.rad(0))*CFa(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  682. LeftHip.C0=CLERP(LeftHip.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 25),0)*CFa(math.rad(0),math.rad(-90),math.rad(0))*CFa(math.rad(-5),math.rad(0),math.rad(20)),.1)
  683. RootJoint.C0=CLERP(RootJoint.C0,RootCF*CF(0,0,0 + 0.05 * math.cos(SINE / 25))*CFa(math.rad(10),math.rad(0),math.rad(0)),.1)
  684. P[2].Neck.C0=CLERP(P[2].Neck.C0,necko*CFa(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  685. RightShoulder.C0=CLERP(RightShoulder.C0,CF(1.45,0.5 + 0.1 * math.cos(SINE / 25),0)*CFa(math.rad(-15),math.rad(0),math.rad(55)),.1)
  686. LeftShoulder.C0=CLERP(LeftShoulder.C0,CF(-1.45,0.5 + 0.1 * math.cos(SINE / 25),0)*CFa(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  687. end
  688. end
  689. end
Advertisement
Add Comment
Please, Sign In to add comment