Advertisement
BlastingStone

Untitled

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