Advertisement
Flamingo123

Roblox script jevil

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