Silver_cole

for macka asd

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