GodOfDuckz

J-NOOB [WIP]

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