Guest_84210423435

Jevil

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