Advertisement
Guest User

Beast

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