Advertisement
-----------------

Jevil

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