Advertisement
Josemmoya

mine not urs

Jan 3rd, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.07 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://2545298782"
  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").Josemmoya
  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(1,1,1)
  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://3037498939"
  262. volume = 1
  263. else
  264. volume = 1
  265. song = "rbxassetid://2750713957"
  266. end
  267. music.TimePosition = 0
  268. hum.HipHeight = 2
  269. playing = true
  270. JevilForm = true
  271. attack = false
  272. rooted = false
  273. hum.WalkSpeed = 20
  274. hum.JumpPower = 50
  275. end
  276. end
  277. if JevilForm == true then
  278. if input == Enum.KeyCode.Z then
  279. attack = true
  280. rooted = true
  281. local sound = Instance.new("Sound")
  282. sound.SoundId = "rbxassetid://2545008459"
  283. sound.Volume = 10
  284. sound.Parent = head
  285. sound:Play()
  286. repeat
  287. game:GetService("RunService").Stepped:Wait()
  288. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  289. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  290. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  291. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  292. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  293. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  294. until sound.Playing == false
  295. for i = 1, 10 do
  296. for i = 1, 15 do
  297. game:GetService("RunService").Stepped:Wait()
  298. for i,v in pairs(char:GetDescendants()) do
  299. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  300. v.Transparency = v.Transparency + 1 / 15
  301. end
  302. if v:IsA("Decal") then
  303. v.Transparency = v.Transparency + 1 / 15
  304. end
  305. end
  306. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  307. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  308. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  309. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  310. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.1)
  311. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  312. end
  313. local oldpos = rootpart.Position
  314. local dist = (rootpart.Position - mouse.Hit.Position).Magnitude
  315. if dist > 30 then
  316. dist = 30
  317. end
  318. 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)
  319. for i = 1, 15 do
  320. game:GetService("RunService").Stepped:Wait()
  321. for i,v in pairs(char:GetDescendants()) do
  322. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  323. v.Transparency = v.Transparency - 1 / 15
  324. end
  325. if v:IsA("Decal") then
  326. v.Transparency = v.Transparency - 1 / 15
  327. end
  328. end
  329. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  330. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4, 0, 0), 0.15)
  331. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  332. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  333. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.1)
  334. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  335. end
  336. for i,v in pairs(char:GetDescendants()) do
  337. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  338. v.Transparency = 0
  339. end
  340. if v:IsA("Decal") then
  341. v.Transparency = 0
  342. end
  343. end
  344. local sound = Instance.new("Sound")
  345. sound.SoundId = "rbxassetid://2545012765"
  346. sound.Volume = 10
  347. sound.Parent = head
  348. sound:Play()
  349. for amount = 1, 5 do
  350. local spade = Instance.new("Part")
  351. spade.Name = "Spade"
  352. spade.Anchored = true
  353. spade.CanCollide = false
  354. spade.Size = Vector3.new(1, 0.05, 1)
  355. if amount == 1 then
  356. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.pi / 2, 0)
  357. elseif amount == 2 then
  358. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(100), 0)
  359. elseif amount == 3 then
  360. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(80), 0)
  361. elseif amount == 4 then
  362. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(110), 0)
  363. elseif amount == 5 then
  364. spade.CFrame = CFrame.new(head.Position, mouse.Hit.Position) * CFrame.Angles(0, math.rad(70), 0)
  365. end
  366. spade.Parent = char
  367. local decal1 = Instance.new("Decal")
  368. decal1.Texture = "rbxassetid://2700856195"
  369. decal1.Face = Enum.NormalId.Top
  370. decal1.Parent = spade
  371. local decal2 = Instance.new("Decal")
  372. decal2.Texture = "rbxassetid://2700856195"
  373. decal2.Face = Enum.NormalId.Bottom
  374. decal2.Parent = spade
  375. local debounce = false
  376. spade.Touched:Connect(function(hit)
  377. end)
  378. spawn(function()
  379. for i = 1, 180 do
  380. game:GetService("RunService").Stepped:Wait()
  381. for i,v in pairs(spade:GetTouchingParts()) do
  382. if not v:IsDescendantOf(char) and debounce == false then
  383. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  384. debounce = true
  385. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 20
  386. coroutine.resume(coroutine.create(function()
  387. wait(0.4)
  388. debounce = false
  389. end))
  390. end
  391. end
  392. end
  393. spade.Transparency = 1
  394. spade.CFrame = spade.CFrame * CFrame.new(0.5, 0, 0)
  395. end
  396. for i = 1, 10 do
  397. game:GetService("RunService").Stepped:Wait()
  398. spade.CFrame = spade.CFrame * CFrame.new(0.5, 0, 0)
  399. decal1.Transparency = decal1.Transparency + 0.1
  400. decal2.Transparency = decal2.Transparency + 0.1
  401. end
  402. spade:Destroy()
  403. end)
  404. end
  405. for i = 1, 10 do
  406. game:GetService("RunService").Stepped:Wait()
  407. RS.C0 = RSnor * CFrame.Angles(-2.5, 0, 0) * CFrame.new(0, 0, -1) + Vector3.new(0, 0.7, 0)
  408. LS.C0 = LSnor * CFrame.Angles(-2.5, 0, 0) * CFrame.new(0, 0, -1) + Vector3.new(0, 0.7, 0)
  409. RH.C0 = RHnor * CFrame.Angles(-1, 0, 0)
  410. LH.C0 = LHnor * CFrame.Angles(-1, 0, 0)
  411. rootj.C0 = rootjnor
  412. neck.C0 = necknor
  413. end
  414. end
  415. attack = false
  416. rooted = false
  417. hum.WalkSpeed = 20
  418. hum.JumpPower = 50
  419. end
  420. if input == Enum.KeyCode.X then
  421. attack = true
  422. for i = 1, 4 do
  423. local model = Instance.new("Model")
  424. model.Name = "Spades"
  425. model.Parent = char
  426. local mainpart = Instance.new("Part")
  427. mainpart.Transparency = 1
  428. mainpart.CanCollide = false
  429. mainpart.Anchored = true
  430. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  431. mainpart.Parent = model
  432. model.PrimaryPart = mainpart
  433. local spades = {}
  434. for i = 1, 10 do
  435. local spade = Instance.new("Part")
  436. spade.Name = "Spade"
  437. spade.Transparency = 1
  438. spade.Anchored = true
  439. spade.CanCollide = false
  440. spade.Size = Vector3.new(2, 0.05, 2)
  441. spade.Parent = model
  442. local decal1 = Instance.new("Decal")
  443. decal1.Texture = "rbxassetid://2700856195"
  444. decal1.Face = Enum.NormalId.Top
  445. decal1.Transparency = 1
  446. decal1.Parent = spade
  447. local decal2 = Instance.new("Decal")
  448. decal2.Texture = "rbxassetid://2700856195"
  449. decal2.Face = Enum.NormalId.Bottom
  450. decal2.Transparency = 1
  451. decal2.Parent = spade
  452. local debounce = false
  453. spade.Touched:Connect(function(hit)
  454. end)
  455. table.insert(spades, spade)
  456. end
  457. for i = 1, #spades do
  458. spades[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-20, 0, 0)
  459. end
  460. for x = 20, 10, -0.5 do
  461. game:GetService("RunService").Stepped:Wait()
  462. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  463. for i = 1, #spades do
  464. for i,v in pairs(spades[i]:GetChildren()) do
  465. if v:IsA("Decal") then
  466. v.Transparency = v.Transparency - 0.05
  467. end
  468. end
  469. 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)
  470. end
  471. end
  472. for i = 1, 35 do
  473. game:GetService("RunService").Stepped:Wait()
  474. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  475. for i = 1, #spades do
  476. 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)
  477. end
  478. end
  479. coroutine.resume(coroutine.create(function()
  480. for i = 1, #spades do
  481. coroutine.resume(coroutine.create(function()
  482. for x = 10, 13, 0.3 do
  483. game:GetService("RunService").Stepped:Wait()
  484. 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)
  485. end
  486. for x = 1, 15 do
  487. game:GetService("RunService").Stepped:Wait()
  488. 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)
  489. end
  490. local debounce = false
  491. for x = 0, 0.5, 0.025 do
  492. game:GetService("RunService").Stepped:Wait()
  493. for i,v in pairs(spades[i]:GetTouchingParts()) do
  494. if not v:IsDescendantOf(char) and debounce == false then
  495. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  496. debounce = true
  497. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 20
  498. coroutine.resume(coroutine.create(function()
  499. wait(0.4)
  500. debounce = false
  501. end))
  502. end
  503. end
  504. end
  505. spades[i].CFrame = spades[i].CFrame * CFrame.new(x, 0, 0)
  506. end
  507. for x = 0.5, 1, 0.025 do
  508. game:GetService("RunService").Stepped:Wait()
  509. for i,v in pairs(spades[i]:GetChildren()) do
  510. if v:IsA("Decal") then
  511. v.Transparency = v.Transparency + 0.05
  512. end
  513. end
  514. for i,v in pairs(spades[i]:GetTouchingParts()) do
  515. if not v:IsDescendantOf(char) and debounce == false then
  516. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  517. debounce = true
  518. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 5
  519. coroutine.resume(coroutine.create(function()
  520. wait(0.4)
  521. debounce = false
  522. end))
  523. end
  524. end
  525. end
  526. spades[i].CFrame = spades[i].CFrame * CFrame.new(x, 0, 0)
  527. end
  528. spades[i]:Destroy()
  529. end))
  530. wait(0.05)
  531. end
  532. end))
  533. wait(1)
  534. coroutine.resume(coroutine.create(function()
  535. wait(1.4)
  536. model:Destroy()
  537. end))
  538. end
  539. attack = false
  540. end
  541. if input == Enum.KeyCode.C then
  542. attack = true
  543. rooted = true
  544. local sound = Instance.new("Sound")
  545. sound.SoundId = "rbxassetid://2545011398"
  546. sound.Volume = 10
  547. sound.Parent = head
  548. sound:Play()
  549. repeat
  550. game:GetService("RunService").Stepped:Wait()
  551. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  552. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  553. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  554. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  555. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  556. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  557. until sound.Playing == false
  558. rooted = false
  559. hum.WalkSpeed = 20
  560. hum.JumpPower = 50
  561. local model = Instance.new("Model")
  562. model.Name = "Devs"
  563. model.Parent = char
  564. local mainpart = Instance.new("Part")
  565. mainpart.Transparency = 1
  566. mainpart.CanCollide = false
  567. mainpart.Anchored = true
  568. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  569. mainpart.Parent = model
  570. model.PrimaryPart = mainpart
  571. local devs = {}
  572. local devsine = 0
  573. for i = 1, 4 do
  574. local dev = Instance.new("Part")
  575. dev.Name = "Devilsknife"
  576. dev.Transparency = 1
  577. dev.Anchored = true
  578. dev.CanCollide = false
  579. dev.Size = Vector3.new(4, 0.05, 4.6)
  580. dev.Parent = model
  581. local decal1 = Instance.new("Decal")
  582. decal1.Texture = "rbxassetid://4569553093"
  583. decal1.Face = Enum.NormalId.Top
  584. decal1.Transparency = 1
  585. decal1.Parent = dev
  586. local decal2 = Instance.new("Decal")
  587. decal2.Texture = "rbxassetid://4569553093"
  588. decal2.Face = Enum.NormalId.Bottom
  589. decal2.Transparency = 1
  590. decal2.Parent = dev
  591. dev.Touched:Connect(function(hit)
  592. end)
  593. table.insert(devs, dev)
  594. end
  595. local spin = 0
  596. for i = 1, 15 do
  597. game:GetService("RunService").Stepped:Wait()
  598. spin = spin + 12
  599. devsine = devsine + 1
  600. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  601. for i = 1, #devs do
  602. for i,v in pairs(devs[i]:GetChildren()) do
  603. if v:IsA("Decal") then
  604. v.Transparency = v.Transparency - 1 / 15
  605. end
  606. end
  607. if i == 1 then
  608. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  609. elseif i == 2 then
  610. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  611. elseif i == 3 then
  612. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(math.sin(sine / 40) * 4, 0, -math.sin(sine / 40) * 10)
  613. elseif i == 4 then
  614. devs[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(-math.sin(sine / 40) * 4, 0, math.sin(sine / 40) * 10)
  615. end
  616. end
  617. end
  618. local debounce = {}
  619. for i = 1, #devs do
  620. debounce[i] = false
  621. end
  622. for i = 1, 500 do
  623. game:GetService("RunService").Stepped:Wait()
  624. spin = spin + 12
  625. devsine = devsine + 1
  626. mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
  627. for i = 1, #devs do
  628. for i,v in pairs(devs[i]:GetTouchingParts()) do
  629. if not v:IsDescendantOf(char) and debounce[i] == false then
  630. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  631. debounce[i] = true
  632. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 5
  633. coroutine.resume(coroutine.create(function()
  634. wait(0.4)
  635. debounce[i] = false
  636. end))
  637. end
  638. end
  639. end
  640. end
  641. for i = 1, #devs do
  642. if i == 1 then
  643. 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)
  644. elseif i == 2 then
  645. 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)
  646. elseif i == 3 then
  647. 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)
  648. elseif i == 4 then
  649. 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)
  650. end
  651. end
  652. end
  653. for i = 1, 15 do
  654. game:GetService("RunService").Stepped:Wait()
  655. for i = 1, #devs do
  656. for i,v in pairs(devs[i]:GetChildren()) do
  657. if v:IsA("Decal") then
  658. v.Transparency = v.Transparency + 1 / 15
  659. end
  660. end
  661. if i == 1 then
  662. 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)
  663. elseif i == 2 then
  664. 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)
  665. elseif i == 3 then
  666. 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)
  667. elseif i == 4 then
  668. 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)
  669. end
  670. end
  671. end
  672. model:Destroy()
  673. attack = false
  674. end
  675. if input == Enum.KeyCode.V then
  676. attack = true
  677. rooted = true
  678. local sound = Instance.new("Sound")
  679. sound.SoundId = "rbxassetid://2544975373"
  680. sound.Volume = 10
  681. sound.Parent = head
  682. sound:Play()
  683. repeat
  684. game:GetService("RunService").Stepped:Wait()
  685. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  686. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  687. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  688. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  689. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  690. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  691. until sound.Playing == false
  692. rooted = false
  693. hum.WalkSpeed = 20
  694. hum.JumpPower = 50
  695. for i = 1, 60 do
  696. local diamond = Instance.new("Part")
  697. diamond.Name = "Devilsknife"
  698. diamond.Transparency = 1
  699. diamond.Anchored = true
  700. diamond.CanCollide = false
  701. diamond.Size = Vector3.new(3, 0.05, 2)
  702. diamond.Parent = char
  703. local decal1 = Instance.new("Decal")
  704. decal1.Texture = "rbxassetid://2707737978"
  705. decal1.Face = Enum.NormalId.Top
  706. decal1.Transparency = 1
  707. decal1.Parent = diamond
  708. local decal2 = Instance.new("Decal")
  709. decal2.Texture = "rbxassetid://2707737978"
  710. decal2.Face = Enum.NormalId.Bottom
  711. decal2.Transparency = 1
  712. decal2.Parent = diamond
  713. diamond.Touched:Connect(function(hit)
  714. end)
  715. diamond.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, math.random(-100, 100) / 25)
  716. coroutine.resume(coroutine.create(function()
  717. local movespeed = 0
  718. for i = 1, 15 do
  719. game:GetService("RunService").Stepped:Wait()
  720. for i,v in pairs(diamond:GetChildren()) do
  721. if v:IsA("Decal") then
  722. v.Transparency = v.Transparency - 1 / 15
  723. end
  724. end
  725. end
  726. local debounce = false
  727. for i = 1, 90 do
  728. game:GetService("RunService").Stepped:Wait()
  729. movespeed = movespeed + 0.01
  730. diamond.CFrame = diamond.CFrame * CFrame.new(movespeed, 0, 0)
  731. for i,v in pairs(diamond:GetTouchingParts()) do
  732. if not v:IsDescendantOf(char) and debounce == false then
  733. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  734. debounce = true
  735. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  736. coroutine.resume(coroutine.create(function()
  737. wait(0.4)
  738. debounce = false
  739. end))
  740. end
  741. end
  742. end
  743. end
  744. for i = 1, 15 do
  745. game:GetService("RunService").Stepped:Wait()
  746. movespeed = movespeed + 0.01
  747. for i,v in pairs(diamond:GetChildren()) do
  748. if v:IsA("Decal") then
  749. v.Transparency = v.Transparency + 1 / 15
  750. end
  751. end
  752. diamond.CFrame = diamond.CFrame * CFrame.new(movespeed, 0, 0)
  753. end
  754. diamond:Destroy()
  755. end))
  756. wait(0.1)
  757. end
  758. attack = false
  759. end
  760. if input == Enum.KeyCode.B and hum.Health <= 30 then
  761. attack = true
  762. rooted = true
  763. local sound = Instance.new("Sound")
  764. sound.SoundId = "rbxassetid://2545011398"
  765. sound.Volume = 10
  766. sound.Parent = head
  767. sound:Play()
  768. repeat
  769. game:GetService("RunService").Stepped:Wait()
  770. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  771. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  772. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  773. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  774. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  775. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  776. until sound.Playing == false
  777. rooted = false
  778. hum.WalkSpeed = 20
  779. hum.JumpPower = 50
  780. local sound = Instance.new("Sound")
  781. sound.SoundId = "rbxassetid://2545211516"
  782. sound.Volume = 10
  783. sound.Parent = head
  784. sound:Play()
  785. repeat
  786. game:GetService("RunService").Stepped:Wait()
  787. until sound.Playing == false
  788. local ticking = 0.6
  789. for i = 1, 40 do
  790. local dev = Instance.new("Part")
  791. dev.Name = "Devilsknife"
  792. dev.Transparency = 1
  793. dev.Anchored = true
  794. dev.CanCollide = false
  795. dev.Size = Vector3.new(4, 0.05, 4.6)
  796. dev.Parent = char
  797. local decal1 = Instance.new("Decal")
  798. decal1.Texture = "rbxassetid://4569553093"
  799. decal1.Face = Enum.NormalId.Top
  800. decal1.Transparency = 1
  801. decal1.Parent = dev
  802. local decal2 = Instance.new("Decal")
  803. decal2.Texture = "rbxassetid://4569553093"
  804. decal2.Face = Enum.NormalId.Bottom
  805. decal2.Transparency = 1
  806. decal2.Parent = dev
  807. dev.Touched:Connect(function(hit)
  808. end)
  809. dev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(0, 0, math.pi / 2) + Vector3.new(0, 50, 0)
  810. local spin = 0
  811. local fallspeed = 0
  812. coroutine.resume(coroutine.create(function()
  813. local debounce = false
  814. for i = 1, 60 do
  815. game:GetService("RunService").Stepped:Wait()
  816. if i <= 15 then
  817. for i,v in pairs(dev:GetChildren()) do
  818. if v:IsA("Decal") then
  819. v.Transparency = v.Transparency - 1 / 15
  820. end
  821. end
  822. end
  823. for i,v in pairs(dev:GetTouchingParts()) do
  824. if not v:IsDescendantOf(char) and debounce == false then
  825. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  826. debounce = true
  827. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  828. coroutine.resume(coroutine.create(function()
  829. wait(0.4)
  830. debounce = false
  831. end))
  832. end
  833. end
  834. end
  835. spin = spin + 12
  836. fallspeed = fallspeed + 0.06
  837. dev.CFrame = dev.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(0, -fallspeed, 0)
  838. end
  839. dev:Destroy()
  840. end))
  841. wait(ticking)
  842. if ticking > 0.2 then
  843. ticking = ticking - 0.05
  844. end
  845. end
  846. local sound = Instance.new("Sound")
  847. sound.SoundId = "rbxassetid://2545018472"
  848. sound.Volume = 10
  849. sound.Parent = head
  850. sound:Play()
  851. repeat
  852. game:GetService("RunService").Stepped:Wait()
  853. until sound.Playing == false
  854. for i = 1, 10 do
  855. local dev = Instance.new("Part")
  856. dev.Name = "Devilsknife"
  857. dev.Transparency = 1
  858. dev.Anchored = true
  859. dev.CanCollide = false
  860. dev.Size = Vector3.new(4, 0.05, 4.6)
  861. dev.Parent = char
  862. local decal1 = Instance.new("Decal")
  863. decal1.Texture = "rbxassetid://4569553093"
  864. decal1.Face = Enum.NormalId.Top
  865. decal1.Transparency = 1
  866. decal1.Parent = dev
  867. local decal2 = Instance.new("Decal")
  868. decal2.Texture = "rbxassetid://4569553093"
  869. decal2.Face = Enum.NormalId.Bottom
  870. decal2.Transparency = 1
  871. decal2.Parent = dev
  872. dev.Touched:Connect(function(hit)
  873. end)
  874. dev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(0, 0, math.pi / 2) + Vector3.new(0, 50, 0)
  875. local spin = 0
  876. local fallspeed = 0
  877. coroutine.resume(coroutine.create(function()
  878. local debounce = false
  879. for i = 1, 60 do
  880. game:GetService("RunService").Stepped:Wait()
  881. if i <= 15 then
  882. for i,v in pairs(dev:GetChildren()) do
  883. if v:IsA("Decal") then
  884. v.Transparency = v.Transparency - 1 / 15
  885. end
  886. end
  887. end
  888. for i,v in pairs(dev:GetTouchingParts()) do
  889. if not v:IsDescendantOf(char) and debounce == false then
  890. if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
  891. debounce = true
  892. v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  893. coroutine.resume(coroutine.create(function()
  894. wait(0.4)
  895. debounce = false
  896. end))
  897. end
  898. end
  899. end
  900. spin = spin + 12
  901. fallspeed = fallspeed + 0.06
  902. dev.CFrame = dev.CFrame * CFrame.Angles(0, math.rad(spin), 0) + Vector3.new(0, -fallspeed, 0)
  903. end
  904. dev:Destroy()
  905. end))
  906. wait(ticking)
  907. if ticking > 0.2 then
  908. ticking = ticking - 0.05
  909. end
  910. end
  911. local giantdev = Instance.new("Part")
  912. giantdev.Name = "Devilsknife"
  913. giantdev.Transparency = 1
  914. giantdev.Anchored = true
  915. giantdev.CanCollide = false
  916. giantdev.Size = Vector3.new(60, 0.05, 62)
  917. giantdev.Parent = char
  918. local decal1 = Instance.new("Decal")
  919. decal1.Texture = "rbxassetid://4569553093"
  920. decal1.Face = Enum.NormalId.Top
  921. decal1.Transparency = 1
  922. decal1.Parent = giantdev
  923. local decal2 = Instance.new("Decal")
  924. decal2.Texture = "rbxassetid://4569553093"
  925. decal2.Face = Enum.NormalId.Bottom
  926. decal2.Transparency = 1
  927. decal2.Parent = giantdev
  928. giantdev.Touched:Connect(function(hit)
  929. end)
  930. giantdev.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.Angles(math.rad(105), 0, math.pi / 2) + Vector3.new(0, 100, 0)
  931. for i = 1, 180 do
  932. game:GetService("RunService").Stepped:Wait()
  933. if i <= 15 then
  934. for i,v in pairs(giantdev:GetChildren()) do
  935. if v:IsA("Decal") then
  936. v.Transparency = v.Transparency - 1 / 15
  937. end
  938. end
  939. end
  940. giantdev.CFrame = giantdev.CFrame + Vector3.new(0, -0.7, 0, 0)
  941. end
  942. 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)
  943. 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)
  944. for i = 1, 5 do
  945. 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)
  946. end
  947. giantdev:Destroy()
  948. wait(1)
  949. attack = false
  950. end
  951. end
  952. end
  953. end
  954. end
  955. end)
  956.  
  957. -----------------------------------------------------
  958. ---------------------Wrapping up---------------------
  959. -----------------------------------------------------
  960.  
  961. while game:GetService("RunService").Stepped:Wait() do
  962. sine = sine + 1
  963. for i,v in pairs(char:GetChildren()) do
  964. if v.Name == "Head" then
  965. for i,v in pairs(v:GetChildren()) do
  966. if v:IsA("Decal") then
  967. v.Texture = "rbxassetid://3180605627"
  968. end
  969. end
  970. end
  971. end
  972. if music.Parent == tors then
  973. music.SoundId = song
  974. music.Volume = volume
  975. music.Name = "JevilTheme"
  976. music.Looped = true
  977. music.PlaybackSpeed = 1
  978. music.Playing = playing
  979. timepos = music.TimePosition
  980. else
  981. music = Instance.new("Sound")
  982. music.TimePosition = timepos
  983. music.SoundId = song
  984. music.Volume = volume
  985. music.Name = "JevilTheme"
  986. music.Looped = true
  987. music.PlaybackSpeed = 1
  988. music.Parent = tors
  989. music.Playing = playing
  990. end
  991. if rooted then
  992. hum.WalkSpeed = 0
  993. hum.JumpPower = 0
  994. end
  995. local torsvel = (tors.Velocity * Vector3.new(1, 0, 1)).Magnitude
  996. 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)
  997. if attack == false then
  998. if JevilForm == false then
  999. if torsvel < 1 and hitfloor then
  1000. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  1001. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  1002. RH.C0 = RH.C0:Lerp(RHnor * CFrame.new(0, -0.2 * math.sin(sine / 20), 0), 0.15)
  1003. LH.C0 = LH.C0:Lerp(LHnor * CFrame.new(0, -0.2 * math.sin(sine / 20), 0), 0.15)
  1004. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.15)
  1005. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1006. end
  1007. if torsvel > 1 and hitfloor then
  1008. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.1, 0, math.sin(sine / 7)), 0.15)
  1009. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.1, 0, math.sin(sine / 7)), 0.15)
  1010. 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)
  1011. 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)
  1012. 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)
  1013. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(0, 0, -head.RotVelocity.Y / 15), 0.15)
  1014. end
  1015. if not hitfloor then
  1016. 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)
  1017. 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)
  1018. RH.C0 = RH.C0:Lerp(RHnor + Vector3.new(0, 0.6, -0.4), 0.15)
  1019. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, 0.3) + Vector3.new(0, 0.1, 0), 0.15)
  1020. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-math.clamp(tors.Velocity.Y / 100, -hum.JumpPower / 100, hum.JumpPower / 100), 0, 0), 0.15)
  1021. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1022. end
  1023. end
  1024. if JevilForm == true then
  1025. if torsvel < 1 and hum.Health > 30 then
  1026. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  1027. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  1028. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  1029. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  1030. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  1031. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1032. end
  1033. if torsvel < 1 and hum.Health <= 30 then
  1034. 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)
  1035. 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)
  1036. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, 0.5), 0.15)
  1037. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, -0.5), 0.15)
  1038. 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)
  1039. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1040. end
  1041. if torsvel > 1 then
  1042. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0.4, (-math.pi / 2 + 0.7) + math.sin(sine / 20) / 10), 0.15)
  1043. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, -0.4, (math.pi / 2 - 0.7) - math.sin(sine / 20) / 10), 0.15)
  1044. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.pi / 2 + 0.7), 0.15)
  1045. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.pi / 2 - 0.7), 0.15)
  1046. 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)
  1047. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(-0.7, 0, -head.RotVelocity.Y / 10), 0.15)
  1048. end
  1049. end
  1050. elseif rooted == false then
  1051. if JevilForm == false then
  1052. if torsvel < 1 and hitfloor then
  1053. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  1054. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  1055. end
  1056. if torsvel > 1 and hitfloor then
  1057. 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)
  1058. 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)
  1059. end
  1060. if not hitfloor then
  1061. RH.C0 = RH.C0:Lerp(RHnor + Vector3.new(0, 0.6, -0.4), 0.15)
  1062. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, 0.3) + Vector3.new(0, 0.1, 0), 0.15)
  1063. end
  1064. end
  1065. if JevilForm == true then
  1066. if torsvel < 1 and hum.Health > 30 then
  1067. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, math.sin(sine / 20) / 8, 0), 0.15)
  1068. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.4 + math.cos(sine / 20) / 8, -math.sin(sine / 20) / 8, 0), 0.15)
  1069. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  1070. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2 + math.cos(sine / 20) / 8, 0, 0), 0.15)
  1071. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.new(0, 0, 0.2 * math.sin(sine / 20)), 0.1)
  1072. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1073. end
  1074. if torsvel < 1 and hum.Health <= 30 then
  1075. 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)
  1076. 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)
  1077. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, 0.5), 0.15)
  1078. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1 + math.cos(sine / 40) / 10, 0, -0.5), 0.15)
  1079. 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)
  1080. neck.C0 = neck.C0:Lerp(necknor, 0.15)
  1081. end
  1082. if torsvel > 1 then
  1083. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0.4, (-math.pi / 2 + 0.7) + math.sin(sine / 20) / 10), 0.15)
  1084. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, -0.4, (math.pi / 2 - 0.7) - math.sin(sine / 20) / 10), 0.15)
  1085. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -math.pi / 2 + 0.7), 0.15)
  1086. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.pi / 2 - 0.7), 0.15)
  1087. 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)
  1088. neck.C0 = neck.C0:Lerp(necknor * CFrame.Angles(-0.7, 0, -head.RotVelocity.Y / 10), 0.15)
  1089. end
  1090. end
  1091. end
  1092. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement