Advertisement
Guest User

guest

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