Advertisement
XskillyX

j e v i l FE

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