oatmeal2009

FE jevil script

Jun 29th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.13 KB | None | 0 0
  1.  
  2. --Made by mrfunnylaughs4. I may not know everything about Jevil since I don't play DeltaRune, but I'll try
  3. --my best on keeping it as similar as possible.
  4.  
  5. local plr = game:GetService("Players").LocalPlayer
  6. local mouse = plr:GetMouse()
  7. local char = workspace.CloneCharacter
  8. if char:FindFirstChild("Animate") then
  9. char.Animate:Destroy()
  10. end
  11. local hum = char:FindFirstChildOfClass("Humanoid")
  12. local tors = char.Torso
  13. local head = char.Head
  14. local rootpart = char.HumanoidRootPart
  15. local RS = tors["Right Shoulder"]
  16. local LS = tors["Left Shoulder"]
  17. local RH = tors["Right Hip"]
  18. local LH = tors["Left Hip"]
  19. local neck = tors.Neck
  20. local rootj = rootpart.RootJoint
  21. local RSnor = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  22. local LSnor = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  23. local RHnor = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  24. local LHnor = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  25. local necknor = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. local rootjnor = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. local sine = 0
  28. local rooted = false
  29. local attack = false
  30. local music = Instance.new("Sound")
  31. music.Parent = tors
  32. local timepos = 0
  33. local playing = true
  34. local volume = 2
  35. local song = "rbxassetid://2545298782"
  36. local JevilForm = false
  37. hum.WalkSpeed = 10
  38.  
  39. -----------------------------------------------------
  40. ----------------------Functions----------------------
  41. -----------------------------------------------------
  42.  
  43. local function SmoothPart(part)
  44. part.TopSurface = Enum.SurfaceType.Smooth
  45. part.BottomSurface = Enum.SurfaceType.Smooth
  46. part.LeftSurface = Enum.SurfaceType.Smooth
  47. part.RightSurface = Enum.SurfaceType.Smooth
  48. part.FrontSurface = Enum.SurfaceType.Smooth
  49. part.BackSurface = Enum.SurfaceType.Smooth
  50. end
  51.  
  52. local function Effect(Length, Type, SizeStart, SizeEnd, Position, Colour, Parent, Material, CanCollide)
  53. local part = Instance.new("Part")
  54. part.Name = Type
  55. part.Material = Material or Enum.Material.Plastic
  56. part.CFrame = Position
  57. part.CanCollide = CanCollide or false
  58. part.Size = SizeStart
  59. part.Anchored = true
  60. part.BrickColor = BrickColor.new(tostring(Colour))
  61. part.Parent = Parent or workspace
  62. if Type == "Block" then
  63. SmoothPart(part)
  64. end
  65. if Type == "Sphere" then
  66. part.Shape = Enum.PartType.Ball
  67. SmoothPart(part)
  68. end
  69. if Type == "TwirlSwirl" or Type == "Swirl" then
  70. local mesh = Instance.new("SpecialMesh")
  71. mesh.MeshType = Enum.MeshType.FileMesh
  72. mesh.MeshId = "rbxassetid://662585058"
  73. mesh.Name = "SwirlMesh"
  74. mesh.Scale = SizeStart / Vector3.new(500, 500, 500)
  75. mesh.Parent = part
  76. end
  77. if Type == "Wave" or Type == "SpiralWave" then
  78. local mesh = Instance.new("SpecialMesh")
  79. mesh.MeshType = Enum.MeshType.FileMesh
  80. mesh.MeshId = "rbxassetid://20329976"
  81. mesh.Name = "WaveMesh"
  82. mesh.Scale = SizeStart / Vector3.new(4, 4, 4)
  83. mesh.Parent = part
  84. end
  85. if Type == "MeshSphere" then
  86. local mesh = Instance.new("SpecialMesh")
  87. mesh.MeshType = Enum.MeshType.Sphere
  88. mesh.Parent = part
  89. SmoothPart(part)
  90. end
  91. if Type == "Cylinder" then
  92. part.Shape = Enum.PartType.Cylinder
  93. SmoothPart(part)
  94. end
  95. if Type == "KillSphere" then
  96. part.Shape = Enum.PartType.Cylinder
  97. part.Transparency = 1
  98. part.Touched:Connect(function()
  99. end)
  100. end
  101. spawn(function()
  102. local TwirlAngle = math.random(-250, 250) / 1000
  103. local WaveAngle = math.random(-500, 500) / 1000
  104. for i = 1, Length do
  105. game:GetService("RunService").RenderStepped:Wait()
  106. part.Transparency = part.Transparency + 1 / Length
  107. part.Size = part.Size + SizeEnd / Vector3.new(Length, Length, Length)
  108. if Type == "TwirlSwirl" then
  109. part.CFrame = part.CFrame * CFrame.Angles(TwirlAngle, TwirlAngle, TwirlAngle)
  110. part.SwirlMesh.Scale = part.SwirlMesh.Scale + SizeEnd / Vector3.new(Length * 500, Length * 500, Length * 500)
  111. end
  112. if Type == "Swirl" then
  113. part.CFrame = part.CFrame * CFrame.Angles(0, TwirlAngle, 0)
  114. part.SwirlMesh.Scale = part.SwirlMesh.Scale + SizeEnd / Vector3.new(Length * 500, Length * 500, Length * 500)
  115. end
  116. if Type == "SpiralWave" then
  117. part.CFrame = part.CFrame * CFrame.Angles(WaveAngle, WaveAngle, WaveAngle)
  118. part.WaveMesh.Scale = part.WaveMesh.Scale + SizeEnd / Vector3.new(Length * 4, Length * 4, Length * 4)
  119. end
  120. if Type == "Wave" then
  121. part.CFrame = part.CFrame * CFrame.Angles(0, WaveAngle, 0)
  122. part.WaveMesh.Scale = part.WaveMesh.Scale + SizeEnd / Vector3.new(Length * 4, Length * 4, Length * 4)
  123. end
  124. if Type == "KillSphere" then
  125. for i,v in pairs(part:GetTouchingParts()) do
  126. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") and not v:IsDescendantOf(char) then
  127. v.Parent:BreakJoints()
  128. end
  129. end
  130. end
  131. end
  132. part:Destroy()
  133. end)
  134. end
  135.  
  136. -----------------------------------------------------
  137. ----------------------Creations----------------------
  138. -----------------------------------------------------
  139.  
  140. local hat = Instance.new("Part")
  141. hat.Name = "JevilHat"
  142. hat.Size = Vector3.new(1, 1, 1)
  143. hat.CanCollide = false
  144. hat.Parent = char
  145. local mesh = Instance.new("SpecialMesh")
  146. mesh.MeshType = Enum.MeshType.FileMesh
  147. mesh.MeshId = "rbxassetid://193760002"
  148. mesh.TextureId = "rbxassetid://193760041"
  149. mesh.VertexColor = Vector3.new(0.5, 0, 0.5)
  150. mesh.Parent = hat
  151. local weld = Instance.new("Weld")
  152. weld.Part0 = head
  153. weld.Part1 = hat
  154. weld.C0 = CFrame.new(0, 0.5, 0.31)
  155. weld.Parent = hat
  156. local shirt = Instance.new("Shirt")
  157. shirt.Name = "Cloth"
  158. shirt.ShirtTemplate = "rbxassetid://2544612637"
  159. shirt.Parent = char
  160. local pants = Instance.new("Pants")
  161. pants.Name = "Cloth"
  162. pants.PantsTemplate = "rbxassetid://2544611861"
  163. pants.Parent = char
  164.  
  165. -----------------------------------------------------
  166. -----------------Attacking functions-----------------
  167. -----------------------------------------------------
  168.  
  169. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  170. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard and attack == false then
  171. if JevilForm == false then
  172. if input.KeyCode == Enum.KeyCode.T then
  173. attack = true
  174. local sound = Instance.new("Sound")
  175. sound.SoundId = "rbxassetid://2545211765"
  176. sound.Volume = 5
  177. sound.Parent = head
  178. sound:Play()
  179. repeat
  180. game:GetService("RunService").RenderStepped:Wait()
  181. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, -0.3, 2), 0.15)
  182. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  183. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  184. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  185. until sound.Playing == false
  186. attack = false
  187. end
  188. if input.KeyCode == Enum.KeyCode.F then
  189. attack = true
  190. rooted = true
  191. playing = false
  192. for i = 1, 90 do
  193. game:GetService("RunService").RenderStepped:Wait()
  194. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  195. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  196. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 16, 0, 0), 0.15)
  197. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 16, 0, 0), 0.15)
  198. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 2 + 0.2 * math.sin(sine / 20)), 0.1)
  199. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  200. end
  201. local sound = Instance.new("Sound")
  202. sound.SoundId = "rbxassetid://2545010175"
  203. sound.Volume = 5
  204. sound.Parent = head
  205. sound:Play()
  206. repeat
  207. game:GetService("RunService").RenderStepped:Wait()
  208. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  209. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  210. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  211. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  212. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 2 + 0.2 * math.sin(sine / 20)), 0.1)
  213. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  214. until sound.Playing == false
  215. for i = 1, 30 do
  216. game:GetService("RunService").RenderStepped:Wait()
  217. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  218. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  219. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  220. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  221. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 2 + 0.2 * math.sin(sine / 20)), 0.1)
  222. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  223. end
  224. if math.random(1, 100) == 1 then
  225. song = "rbxassetid://2582332053"
  226. else
  227. volume = 0.5
  228. song = "rbxassetid://2597271983"
  229. end
  230. music.TimePosition = 0
  231. hum.HipHeight = 2
  232. playing = true
  233. JevilForm = true
  234. attack = false
  235. rooted = false
  236. hum.WalkSpeed = 20
  237. hum.JumpPower = 50
  238. end
  239. end
  240. if JevilForm == true then
  241. if input.KeyCode == Enum.KeyCode.Z then
  242. attack = true
  243. rooted = true
  244. local sound = Instance.new("Sound")
  245. sound.SoundId = "rbxassetid://2545008459"
  246. sound.Volume = 10
  247. sound.Parent = head
  248. sound:Play()
  249. repeat
  250. game:GetService("RunService").RenderStepped:Wait()
  251. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  252. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  253. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  254. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  255. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  256. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  257. until sound.Playing == false
  258. for i = 1, 10 do
  259. for i = 1, 15 do
  260. game:GetService("RunService").RenderStepped:Wait()
  261. for i,v in pairs(char:GetDescendants()) do
  262. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  263. v.Transparency = v.Transparency + 1 / 15
  264. end
  265. if v:IsA("Decal") then
  266. v.Transparency = v.Transparency + 1 / 15
  267. end
  268. end
  269. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  270. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  271. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  272. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  273. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.1)
  274. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  275. end
  276. local oldpos = rootpart.Position
  277. local dist = (rootpart.Position - mouse.Hit.Position).Magnitude
  278. if dist > 30 then
  279. dist = 30
  280. end
  281. rootpart.CFrame = CFrame.new(oldpos + CFrame.new(oldpos, mouse.Hit.Position).LookVector * dist + Vector3.new(0, 6, 0), Vector3.new(oldpos.X, rootpart.Position.Y, oldpos.Z)) * CFrame.Angles(0, math.pi, 0)
  282. for i = 1, 15 do
  283. game:GetService("RunService").RenderStepped:Wait()
  284. for i,v in pairs(char:GetDescendants()) do
  285. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  286. v.Transparency = v.Transparency - 1 / 15
  287. end
  288. if v:IsA("Decal") then
  289. v.Transparency = v.Transparency - 1 / 15
  290. end
  291. end
  292. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  293. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  294. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  295. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  296. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.1)
  297. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  298. end
  299. for i,v in pairs(char:GetDescendants()) do
  300. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  301. v.Transparency = 0
  302. end
  303. if v:IsA("Decal") then
  304. v.Transparency = 0
  305. end
  306. end
  307. local sound = Instance.new("Sound")
  308. sound.SoundId = "rbxassetid://2545012765"
  309. sound.Volume = 10
  310. sound.Parent = head
  311. sound:Play()
  312. for amount = 1, 5 do
  313. local spade = Instance.new("Part")
  314. spade.Name = "Spade"
  315. spade.Anchored = true
  316. spade.CanCollide = false
  317. spade.Size = Vector3.new(1, 0.05, 1)
  318. if amount == 1 then
  319. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.pi / 2, 0)
  320. elseif amount == 2 then
  321. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(100), 0)
  322. elseif amount == 3 then
  323. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(80), 0)
  324. elseif amount == 4 then
  325. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(110), 0)
  326. elseif amount == 5 then
  327. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(70), 0)
  328. end
  329. spade.Parent = char
  330. local decal1 = Instance.new("Decal")
  331. decal1.Texture = "rbxassetid://2700856195"
  332. decal1.Face = Enum.NormalId.Top
  333. decal1.Parent = spade
  334. local decal2 = Instance.new("Decal")
  335. decal2.Texture = "rbxassetid://2700856195"
  336. decal2.Face = Enum.NormalId.Bottom
  337. decal2.Parent = spade
  338. local debounce = false
  339. spade.Touched:Connect(function(hit)
  340. end)
  341. spawn(function()
  342. for i = 1, 180 do
  343. game:GetService("RunService").RenderStepped:Wait()
  344. for i,v in pairs(spade:GetTouchingParts()) do
  345. if not v:IsDescendantOf(char) and debounce == false then
  346. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  347. debounce = true
  348. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 20
  349. coroutine.resume(coroutine.create(function()
  350. wait(0.4)
  351. debounce = false
  352. end))
  353. end
  354. end
  355. end
  356. spade.Transparency = 1
  357. spade.CFrame = spade.CFrame * CFrame.new(0.5, 0, 0)
  358. end
  359. for i = 1, 10 do
  360. game:GetService("RunService").RenderStepped:Wait()
  361. spade.CFrame = spade.CFrame * CFrame.new(0.5, 0, 0)
  362. decal1.Transparency = decal1.Transparency + 0.1
  363. decal2.Transparency = decal2.Transparency + 0.1
  364. end
  365. spade:Destroy()
  366. end)
  367. end
  368. for i = 1, 10 do
  369. game:GetService("RunService").RenderStepped:Wait()
  370. RS.C0 = RSnor * CFrame.Angles(-2.5, 0, 0) * CFrame.new(0, 0, -1) + Vector3.new(0, 0.7, 0)
  371. LS.C0 = LSnor * CFrame.Angles(-2.5, 0, 0) * CFrame.new(0, 0, -1) + Vector3.new(0, 0.7, 0)
  372. RH.C0 = RHnor * CFrame.Angles(-1, 0, 0)
  373. LH.C0 = LHnor * CFrame.Angles(-1, 0, 0)
  374. rootj.C0 = rootjnor
  375. neck.C0 = necknor
  376. end
  377. end
  378. attack = false
  379. rooted = false
  380. hum.WalkSpeed = 20
  381. hum.JumpPower = 50
  382. end
  383. if input.KeyCode == Enum.KeyCode.X then
  384. attack = true
  385. for i = 1, 4 do
  386. local model = Instance.new("Model")
  387. model.Name = "Spades"
  388. model.Parent = char
  389. local mainpart = Instance.new("Part")
  390. mainpart.Transparency = 1
  391. mainpart.CanCollide = false
  392. mainpart.Anchored = true
  393. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  394. mainpart.Parent = model
  395. model.PrimaryPart = mainpart
  396. local spades = {}
  397. for i = 1, 10 do
  398. local spade = Instance.new("Part")
  399. spade.Name = "Spade"
  400. spade.Transparency = 1
  401. spade.Anchored = true
  402. spade.CanCollide = false
  403. spade.Size = Vector3.new(2, 0.05, 2)
  404. spade.Parent = model
  405. local decal1 = Instance.new("Decal")
  406. decal1.Texture = "rbxassetid://2700856195"
  407. decal1.Face = Enum.NormalId.Top
  408. decal1.Transparency = 1
  409. decal1.Parent = spade
  410. local decal2 = Instance.new("Decal")
  411. decal2.Texture = "rbxassetid://2700856195"
  412. decal2.Face = Enum.NormalId.Bottom
  413. decal2.Transparency = 1
  414. decal2.Parent = spade
  415. local debounce = false
  416. spade.Touched:Connect(function(hit)
  417. end)
  418. table.insert(spades, spade)
  419. end
  420. for i = 1, #spades do
  421. spades[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-20, 0, 0)
  422. end
  423. for x = 20, 10, -0.5 do
  424. game:GetService("RunService").RenderStepped:Wait()
  425. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  426. for i = 1, #spades do
  427. for i,v in pairs(spades[i]:GetChildren()) do
  428. if v:IsA("Decal") then
  429. v.Transparency = v.Transparency - 0.05
  430. end
  431. end
  432. spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-x, 0, 0), 0.15)
  433. end
  434. end
  435. for i = 1, 35 do
  436. game:GetService("RunService").RenderStepped:Wait()
  437. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  438. for i = 1, #spades do
  439. spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-10, 0, 0), 0.15)
  440. end
  441. end
  442. coroutine.resume(coroutine.create(function()
  443. for i = 1, #spades do
  444. coroutine.resume(coroutine.create(function()
  445. for x = 10, 13, 0.3 do
  446. game:GetService("RunService").RenderStepped:Wait()
  447. spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-x, 0, 0), 0.15)
  448. end
  449. for x = 1, 15 do
  450. game:GetService("RunService").RenderStepped:Wait()
  451. spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-13, 0, 0), 0.15)
  452. end
  453. local debounce = false
  454. for x = 0, 0.5, 0.025 do
  455. game:GetService("RunService").RenderStepped:Wait()
  456. for i,v in pairs(spades[i]:GetTouchingParts()) do
  457. if not v:IsDescendantOf(char) and debounce == false then
  458. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  459. debounce = true
  460. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 20
  461. coroutine.resume(coroutine.create(function()
  462. wait(0.4)
  463. debounce = false
  464. end))
  465. end
  466. end
  467. end
  468. spades[i].CFrame = spades[i].CFrame * CFrame.new(x, 0, 0)
  469. end
  470. for x = 0.5, 1, 0.025 do
  471. game:GetService("RunService").RenderStepped:Wait()
  472. for i,v in pairs(spades[i]:GetChildren()) do
  473. if v:IsA("Decal") then
  474. v.Transparency = v.Transparency + 0.05
  475. end
  476. end
  477. for i,v in pairs(spades[i]:GetTouchingParts()) do
  478. if not v:IsDescendantOf(char) and debounce == false then
  479. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  480. debounce = true
  481. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 5
  482. coroutine.resume(coroutine.create(function()
  483. wait(0.4)
  484. debounce = false
  485. end))
  486. end
  487. end
  488. end
  489. spades[i].CFrame = spades[i].CFrame * CFrame.new(x, 0, 0)
  490. end
  491. spades[i]:Destroy()
  492. end))
  493. wait(0.05)
  494. end
  495. end))
  496. wait(1)
  497. coroutine.resume(coroutine.create(function()
  498. wait(1.4)
  499. model:Destroy()
  500. end))
  501. end
  502. attack = false
  503. end
  504. if input.KeyCode == Enum.KeyCode.C then
  505. attack = true
  506. rooted = true
  507. local sound = Instance.new("Sound")
  508. sound.SoundId = "rbxassetid://2545011398"
  509. sound.Volume = 10
  510. sound.Parent = head
  511. sound:Play()
  512. repeat
  513. game:GetService("RunService").RenderStepped:Wait()
  514. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  515. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  516. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  517. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  518. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  519. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  520. until sound.Playing == false
  521. rooted = false
  522. hum.WalkSpeed = 20
  523. hum.JumpPower = 50
  524. local model = Instance.new("Model")
  525. model.Name = "Devs"
  526. model.Parent = char
  527. local mainpart = Instance.new("Part")
  528. mainpart.Transparency = 1
  529. mainpart.CanCollide = false
  530. mainpart.Anchored = true
  531. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  532. mainpart.Parent = model
  533. model.PrimaryPart = mainpart
  534. local devs = {}
  535. local devsine = 0
  536. for i = 1, 4 do
  537. local dev = Instance.new("Part")
  538. dev.Name = "Devilsknife"
  539. dev.Transparency = 1
  540. dev.Anchored = true
  541. dev.CanCollide = false
  542. dev.Size = Vector3.new(4, 0.05, 4.6)
  543. dev.Parent = model
  544. local decal1 = Instance.new("Decal")
  545. decal1.Texture = "rbxassetid://2704176861"
  546. decal1.Face = Enum.NormalId.Top
  547. decal1.Transparency = 1
  548. decal1.Parent = dev
  549. local decal2 = Instance.new("Decal")
  550. decal2.Texture = "rbxassetid://2704176861"
  551. decal2.Face = Enum.NormalId.Bottom
  552. decal2.Transparency = 1
  553. decal2.Parent = dev
  554. dev.Touched:Connect(function(hit)
  555. end)
  556. table.insert(devs, dev)
  557. end
  558. local spin = 0
  559. for i = 1, 15 do
  560. game:GetService("RunService").RenderStepped:Wait()
  561. spin = spin + 12
  562. devsine = devsine + 1
  563. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  564. for i = 1, #devs do
  565. for i,v in pairs(devs[i]:GetChildren()) do
  566. if v:IsA("Decal") then
  567. v.Transparency = v.Transparency - 1 / 15
  568. end
  569. end
  570. if i == 1 then
  571. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  572. elseif i == 2 then
  573. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  574. elseif i == 3 then
  575. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  576. elseif i == 4 then
  577. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  578. end
  579. end
  580. end
  581. local debounce = {}
  582. for i = 1, #devs do
  583. debounce[i] = false
  584. end
  585. for i = 1, 500 do
  586. game:GetService("RunService").RenderStepped:Wait()
  587. spin = spin + 12
  588. devsine = devsine + 1
  589. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  590. for i = 1, #devs do
  591. for i,v in pairs(devs[i]:GetTouchingParts()) do
  592. if not v:IsDescendantOf(char) and debounce[i] == false then
  593. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  594. debounce[i] = true
  595. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 5
  596. coroutine.resume(coroutine.create(function()
  597. wait(0.4)
  598. debounce[i] = false
  599. end))
  600. end
  601. end
  602. end
  603. end
  604. for i = 1, #devs do
  605. if i == 1 then
  606. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  607. elseif i == 2 then
  608. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  609. elseif i == 3 then
  610. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  611. elseif i == 4 then
  612. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  613. end
  614. end
  615. end
  616. for i = 1, 15 do
  617. game:GetService("RunService").RenderStepped:Wait()
  618. for i = 1, #devs do
  619. for i,v in pairs(devs[i]:GetChildren()) do
  620. if v:IsA("Decal") then
  621. v.Transparency = v.Transparency + 1 / 15
  622. end
  623. end
  624. if i == 1 then
  625. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  626. elseif i == 2 then
  627. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  628. elseif i == 3 then
  629. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  630. elseif i == 4 then
  631. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  632. end
  633. end
  634. end
  635. model:Destroy()
  636. attack = false
  637. end
  638. if input.KeyCode == Enum.KeyCode.V then
  639. attack = true
  640. rooted = true
  641. local sound = Instance.new("Sound")
  642. sound.SoundId = "rbxassetid://2544975373"
  643. sound.Volume = 10
  644. sound.Parent = head
  645. sound:Play()
  646. repeat
  647. game:GetService("RunService").RenderStepped:Wait()
  648. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  649. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  650. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  651. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  652. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  653. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  654. until sound.Playing == false
  655. rooted = false
  656. hum.WalkSpeed = 20
  657. hum.JumpPower = 50
  658. for i = 1, 60 do
  659. local diamond = Instance.new("Part")
  660. diamond.Name = "Devilsknife"
  661. diamond.Transparency = 1
  662. diamond.Anchored = true
  663. diamond.CanCollide = false
  664. diamond.Size = Vector3.new(3, 0.05, 2)
  665. diamond.Parent = char
  666. local decal1 = Instance.new("Decal")
  667. decal1.Texture = "rbxassetid://2707737978"
  668. decal1.Face = Enum.NormalId.Top
  669. decal1.Transparency = 1
  670. decal1.Parent = diamond
  671. local decal2 = Instance.new("Decal")
  672. decal2.Texture = "rbxassetid://2707737978"
  673. decal2.Face = Enum.NormalId.Bottom
  674. decal2.Transparency = 1
  675. decal2.Parent = diamond
  676. diamond.Touched:Connect(function(hit)
  677. end)
  678. diamond.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, math.random(-100, 100) / 25)
  679. coroutine.resume(coroutine.create(function()
  680. local movespeed = 0
  681. for i = 1, 15 do
  682. game:GetService("RunService").RenderStepped:Wait()
  683. for i,v in pairs(diamond:GetChildren()) do
  684. if v:IsA("Decal") then
  685. v.Transparency = v.Transparency - 1 / 15
  686. end
  687. end
  688. end
  689. local debounce = false
  690. for i = 1, 90 do
  691. game:GetService("RunService").RenderStepped:Wait()
  692. movespeed = movespeed + 0.01
  693. diamond.CFrame = diamond.CFrame * CFrame.new(movespeed, 0, 0)
  694. for i,v in pairs(diamond:GetTouchingParts()) do
  695. if not v:IsDescendantOf(char) and debounce == false then
  696. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  697. debounce = true
  698. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  699. coroutine.resume(coroutine.create(function()
  700. wait(0.4)
  701. debounce = false
  702. end))
  703. end
  704. end
  705. end
  706. end
  707. for i = 1, 15 do
  708. game:GetService("RunService").RenderStepped:Wait()
  709. movespeed = movespeed + 0.01
  710. for i,v in pairs(diamond:GetChildren()) do
  711. if v:IsA("Decal") then
  712. v.Transparency = v.Transparency + 1 / 15
  713. end
  714. end
  715. diamond.CFrame = diamond.CFrame * CFrame.new(movespeed, 0, 0)
  716. end
  717. diamond:Destroy()
  718. end))
  719. wait(0.1)
  720. end
  721. attack = false
  722. end
  723. if input.KeyCode == Enum.KeyCode.B and hum.Health <= 30 then
  724. attack = true
  725. rooted = true
  726. local sound = Instance.new("Sound")
  727. sound.SoundId = "rbxassetid://2545011398"
  728. sound.Volume = 10
  729. sound.Parent = head
  730. sound:Play()
  731. repeat
  732. game:GetService("RunService").RenderStepped:Wait()
  733. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  734. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  735. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  736. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  737. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  738. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  739. until sound.Playing == false
  740. rooted = false
  741. hum.WalkSpeed = 20
  742. hum.JumpPower = 50
  743. local sound = Instance.new("Sound")
  744. sound.SoundId = "rbxassetid://2545211516"
  745. sound.Volume = 10
  746. sound.Parent = head
  747. sound:Play()
  748. repeat
  749. game:GetService("RunService").RenderStepped:Wait()
  750. until sound.Playing == false
  751. local ticking = 0.6
  752. for i = 1, 40 do
  753. local dev = Instance.new("Part")
  754. dev.Name = "Devilsknife"
  755. dev.Transparency = 1
  756. dev.Anchored = true
  757. dev.CanCollide = false
  758. dev.Size = Vector3.new(4, 0.05, 4.6)
  759. dev.Parent = char
  760. local decal1 = Instance.new("Decal")
  761. decal1.Texture = "rbxassetid://2704176861"
  762. decal1.Face = Enum.NormalId.Top
  763. decal1.Transparency = 1
  764. decal1.Parent = dev
  765. local decal2 = Instance.new("Decal")
  766. decal2.Texture = "rbxassetid://2704176861"
  767. decal2.Face = Enum.NormalId.Bottom
  768. decal2.Transparency = 1
  769. decal2.Parent = dev
  770. dev.Touched:Connect(function(hit)
  771. end)
  772. dev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(0, 0, math.pi / 2) + Vector3.new(0, 50, 0)
  773. local spin = 0
  774. local fallspeed = 0
  775. coroutine.resume(coroutine.create(function()
  776. local debounce = false
  777. for i = 1, 60 do
  778. game:GetService("RunService").RenderStepped:Wait()
  779. if i <= 15 then
  780. for i,v in pairs(dev:GetChildren()) do
  781. if v:IsA("Decal") then
  782. v.Transparency = v.Transparency - 1 / 15
  783. end
  784. end
  785. end
  786. for i,v in pairs(dev:GetTouchingParts()) do
  787. if not v:IsDescendantOf(char) and debounce == false then
  788. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  789. debounce = true
  790. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  791. coroutine.resume(coroutine.create(function()
  792. wait(0.4)
  793. debounce = false
  794. end))
  795. end
  796. end
  797. end
  798. spin = spin + 12
  799. fallspeed = fallspeed + 0.06
  800. dev.CFrame = dev.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(0, -fallspeed, 0)
  801. end
  802. dev:Destroy()
  803. end))
  804. wait(ticking)
  805. if ticking > 0.2 then
  806. ticking = ticking - 0.05
  807. end
  808. end
  809. local sound = Instance.new("Sound")
  810. sound.SoundId = "rbxassetid://2545018472"
  811. sound.Volume = 10
  812. sound.Parent = head
  813. sound:Play()
  814. repeat
  815. game:GetService("RunService").RenderStepped:Wait()
  816. until sound.Playing == false
  817. for i = 1, 10 do
  818. local dev = Instance.new("Part")
  819. dev.Name = "Devilsknife"
  820. dev.Transparency = 1
  821. dev.Anchored = true
  822. dev.CanCollide = false
  823. dev.Size = Vector3.new(4, 0.05, 4.6)
  824. dev.Parent = char
  825. local decal1 = Instance.new("Decal")
  826. decal1.Texture = "rbxassetid://2704176861"
  827. decal1.Face = Enum.NormalId.Top
  828. decal1.Transparency = 1
  829. decal1.Parent = dev
  830. local decal2 = Instance.new("Decal")
  831. decal2.Texture = "rbxassetid://2704176861"
  832. decal2.Face = Enum.NormalId.Bottom
  833. decal2.Transparency = 1
  834. decal2.Parent = dev
  835. dev.Touched:Connect(function(hit)
  836. end)
  837. dev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(0, 0, math.pi / 2) + Vector3.new(0, 50, 0)
  838. local spin = 0
  839. local fallspeed = 0
  840. coroutine.resume(coroutine.create(function()
  841. local debounce = false
  842. for i = 1, 60 do
  843. game:GetService("RunService").RenderStepped:Wait()
  844. if i <= 15 then
  845. for i,v in pairs(dev:GetChildren()) do
  846. if v:IsA("Decal") then
  847. v.Transparency = v.Transparency - 1 / 15
  848. end
  849. end
  850. end
  851. for i,v in pairs(dev:GetTouchingParts()) do
  852. if not v:IsDescendantOf(char) and debounce == false then
  853. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  854. debounce = true
  855. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  856. coroutine.resume(coroutine.create(function()
  857. wait(0.4)
  858. debounce = false
  859. end))
  860. end
  861. end
  862. end
  863. spin = spin + 12
  864. fallspeed = fallspeed + 0.06
  865. dev.CFrame = dev.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(0, -fallspeed, 0)
  866. end
  867. dev:Destroy()
  868. end))
  869. wait(ticking)
  870. if ticking > 0.2 then
  871. ticking = ticking - 0.05
  872. end
  873. end
  874. local giantdev = Instance.new("Part")
  875. giantdev.Name = "Devilsknife"
  876. giantdev.Transparency = 1
  877. giantdev.Anchored = true
  878. giantdev.CanCollide = false
  879. giantdev.Size = Vector3.new(60, 0.05, 62)
  880. giantdev.Parent = char
  881. local decal1 = Instance.new("Decal")
  882. decal1.Texture = "rbxassetid://2704176861"
  883. decal1.Face = Enum.NormalId.Top
  884. decal1.Transparency = 1
  885. decal1.Parent = giantdev
  886. local decal2 = Instance.new("Decal")
  887. decal2.Texture = "rbxassetid://2704176861"
  888. decal2.Face = Enum.NormalId.Bottom
  889. decal2.Transparency = 1
  890. decal2.Parent = giantdev
  891. giantdev.Touched:Connect(function(hit)
  892. end)
  893. giantdev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(math.rad(105), 0, math.pi / 2) + Vector3.new(0, 100, 0)
  894. for i = 1, 180 do
  895. game:GetService("RunService").RenderStepped:Wait()
  896. if i <= 15 then
  897. for i,v in pairs(giantdev:GetChildren()) do
  898. if v:IsA("Decal") then
  899. v.Transparency = v.Transparency - 1 / 15
  900. end
  901. end
  902. end
  903. giantdev.CFrame = giantdev.CFrame + Vector3.new(0, -0.7, 0, 0)
  904. end
  905. Effect(60, "Sphere", Vector3.new(30, 30, 30), Vector3.new(150, 150, 150), CFrame.new(giantdev.Position) + Vector3.new(0, -40, 0), BrickColor.new("Institutional white"), char)
  906. Effect(60, "KillSphere", Vector3.new(30, 30, 30), Vector3.new(150, 150, 150), CFrame.new(giantdev.Position) + Vector3.new(0, -40, 0), BrickColor.new("Institutional white"), char)
  907. for i = 1, 5 do
  908. Effect(60, "Wave", Vector3.new(90, 15, 90), Vector3.new(450, 75, 450), CFrame.new(giantdev.Position) + Vector3.new(0, 28, 0), BrickColor.new("Mid gray"), char)
  909. end
  910. giantdev:Destroy()
  911. wait(1)
  912. attack = false
  913. end
  914. end
  915. end
  916. end)
  917.  
  918. -----------------------------------------------------
  919. ---------------------Wrapping up---------------------
  920. -----------------------------------------------------
  921.  
  922. while game:GetService("RunService").RenderStepped:Wait() do
  923. sine = sine + 1
  924. for i,v in pairs(hum:GetPlayingAnimationTracks()) do
  925. v:Stop()
  926. end
  927. for i,v in pairs(char:GetChildren()) do
  928. if v:IsA("Accessory") then
  929. v:Destroy()
  930. end
  931. if v.Name == "Head" then
  932. for i,v in pairs(v:GetChildren()) do
  933. if v:IsA("Decal") then
  934. v.Texture = "rbxassetid://241553801"
  935. end
  936. end
  937. v.Color = Color3.new(180 / 255, 180 / 255, 228 / 255)
  938. end
  939. if v.Name == "Left Leg" or v.Name == "Right Leg" then
  940. v.Color = Color3.new(180 / 255, 180 / 255, 228 / 255)
  941. end
  942. if (v:IsA("Shirt") or v:IsA("Pants")) and v.Name ~= "Cloth" then
  943. v:Destroy()
  944. end
  945. if v:IsA("BodyColors") then
  946. v:Destroy()
  947. end
  948. end
  949. if music.Parent == tors then
  950. music.SoundId = song
  951. music.Volume = volume
  952. music.Name = "JevilTheme"
  953. music.Looped = true
  954. music.PlaybackSpeed = 1
  955. music.Playing = playing
  956. timepos = music.TimePosition
  957. else
  958. music = Instance.new("Sound")
  959. music.TimePosition = timepos
  960. music.SoundId = song
  961. music.Volume = volume
  962. music.Name = "JevilTheme"
  963. music.Looped = true
  964. music.PlaybackSpeed = 1
  965. music.Parent = tors
  966. music.Playing = playing
  967. end
  968. if rooted then
  969. hum.WalkSpeed = 0
  970. hum.JumpPower = 0
  971. end
  972. local torsvel = (tors.Velocity * Vector3.new(1, 0, 1)).Magnitude
  973. local hitfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  974. if attack == false then
  975. if JevilForm == false then
  976. if torsvel < 1 and hitfloor then
  977. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  978. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  979. RH.C0 = RH.C0:Lerp(RHnor * CFrame.new(0, -0.2 * math.sin(sine / 20), 0), 0.15)
  980. LH.C0 = LH.C0:Lerp(LHnor * CFrame.new(0, -0.2 * math.sin(sine / 20), 0), 0.15)
  981. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.15)
  982. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  983. end
  984. if torsvel > 1 and hitfloor then
  985. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.1, 0, math.sin(sine / 7)), 0.15)
  986. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.1, 0, math.sin(sine / 7)), 0.15)
  987. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.sin(sine / 7) / 1.5 - 0.25) * CFrame.new(-math.cos(sine / 7) / 2, -math.cos(sine / 7) / 2, 0), 0.15)
  988. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, -math.sin(sine / 7) / 1.5 + 0.25) * CFrame.new(-math.cos(sine / 7) / 2, math.cos(sine / 7) / 2, 0), 0.15)
  989. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.1, rootpart.RotVelocity.Y / 70, math.sin(sine / 7) / 5) * CFrame.new(0, 0, math.sin(sine / 3.5) / 10), 0.15)
  990. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(0, 0, -head.RotVelocity.Y / 15), 0.15)
  991. end
  992. if not hitfloor then
  993. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(math.clamp(tors.Velocity.Y / 200 - 0.3, -hum.JumpPower / 200 - 0.3, hum.JumpPower / 200 - 0.3), 0, 0), 0.15)
  994. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(math.clamp(tors.Velocity.Y / 200 - 0.3, -hum.JumpPower / 200 - 0.3, hum.JumpPower / 200 - 0.3), 0, 0), 0.15)
  995. RH.C0 = RH.C0:Lerp(RHnor + Vector3.new(0, 0.6, -0.4), 0.15)
  996. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, 0.3) + Vector3.new(0, 0.1, 0), 0.15)
  997. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-math.clamp(tors.Velocity.Y / 100, -hum.JumpPower / 100, hum.JumpPower / 100), 0, 0), 0.15)
  998. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  999. end
  1000. end
  1001. if JevilForm == true then
  1002. if torsvel < 1 and hum.Health > 30 then
  1003. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  1004. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  1005. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  1006. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  1007. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  1008. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1009. end
  1010. if torsvel < 1 and hum.Health <= 30 then
  1011. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.2 + math.cos(sine / 40) / 10, 0, 0.5) + Vector3.new(0, math.sin(sine / 40) / 10, 0), 0.15)
  1012. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.2 + math.cos(sine / 40) / 10, 0, -0.5) + Vector3.new(0, math.sin(sine / 40) / 10, 0), 0.15)
  1013. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, 0.5), 0.15)
  1014. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, -0.5), 0.15)
  1015. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0) + Vector3.new(0.1 * math.cos(sine / 40), 0.1 * math.sin(sine / 40), 0), 0.1)
  1016. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1017. end
  1018. if torsvel > 1 then
  1019. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0.4, (-math.pi / 2 + 0.7) + math.sin(sine / 20) / 10), 0.15)
  1020. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, -0.4, (math.pi / 2 - 0.7) - math.sin(sine / 20) / 10), 0.15)
  1021. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.pi / 2 + 0.7), 0.15)
  1022. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.pi / 2 - 0.7), 0.15)
  1023. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.7 - math.cos(sine / 20) / 10, rootpart.RotVelocity.Y / 30, 0) + Vector3.new(0, 0.2 * math.sin(sine / 20), 0), 0.15)
  1024. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(-0.7, 0, -head.RotVelocity.Y / 10), 0.15)
  1025. end
  1026. end
  1027. elseif rooted == false then
  1028. if JevilForm == false then
  1029. if torsvel < 1 and hitfloor then
  1030. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  1031. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  1032. end
  1033. if torsvel > 1 and hitfloor then
  1034. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.sin(sine / 7) / 1.5 - 0.25) * CFrame.new(-math.cos(sine / 7) / 2, -math.cos(sine / 7) / 2, 0), 0.15)
  1035. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, -math.sin(sine / 7) / 1.5 + 0.25) * CFrame.new(-math.cos(sine / 7) / 2, math.cos(sine / 7) / 2, 0), 0.15)
  1036. end
  1037. if not hitfloor then
  1038. RH.C0 = RH.C0:Lerp(RHnor + Vector3.new(0, 0.6, -0.4), 0.15)
  1039. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, 0.3) + Vector3.new(0, 0.1, 0), 0.15)
  1040. end
  1041. end
  1042. if JevilForm == true then
  1043. if torsvel < 1 and hum.Health > 30 then
  1044. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  1045. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  1046. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  1047. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  1048. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  1049. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1050. end
  1051. if torsvel < 1 and hum.Health <= 30 then
  1052. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.2 + math.cos(sine / 40) / 10, 0, 0.5) + Vector3.new(0, math.sin(sine / 40) / 10, 0), 0.15)
  1053. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.2 + math.cos(sine / 40) / 10, 0, -0.5) + Vector3.new(0, math.sin(sine / 40) / 10, 0), 0.15)
  1054. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, 0.5), 0.15)
  1055. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, -0.5), 0.15)
  1056. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0) + Vector3.new(0.1 * math.cos(sine / 40), 0.1 * math.sin(sine / 40), 0), 0.1)
  1057. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1058. end
  1059. if torsvel > 1 then
  1060. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0.4, (-math.pi / 2 + 0.7) + math.sin(sine / 20) / 10), 0.15)
  1061. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, -0.4, (math.pi / 2 - 0.7) - math.sin(sine / 20) / 10), 0.15)
  1062. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.pi / 2 + 0.7), 0.15)
  1063. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.pi / 2 - 0.7), 0.15)
  1064. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.7 - math.cos(sine / 20) / 10, rootpart.RotVelocity.Y / 30, 0) + Vector3.new(0, 0.2 * math.sin(sine / 20), 0), 0.15)
  1065. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(-0.7, 0, -head.RotVelocity.Y / 10), 0.15)
  1066. end
  1067. end
  1068. end
  1069. end
Add Comment
Please, Sign In to add comment