Advertisement
PasterXIV

Untitled

Sep 24th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 88.33 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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. --[[Fixed Celestial Wheel]]--
  8. wait(1/60)
  9. Player = game.Players.LocalPlayer
  10. Character = Player.Character
  11. PlayerGui = Player.PlayerGui
  12. Backpack = Player.Backpack
  13. Torso = Character.Torso
  14. Head = Character.Head
  15. Humanoid = Character.Humanoid
  16. LeftArm = Character["Left Arm"]
  17. LeftLeg = Character["Left Leg"]
  18. RightArm = Character["Right Arm"]
  19. RightLeg = Character["Right Leg"]
  20. Character = Player.Character
  21. PlayerGui = Player.PlayerGui
  22. Backpack = Player.Backpack
  23. Torso = Character.Torso
  24. Head = Character.Head
  25. Humanoid = Character.Humanoid
  26. LeftArm = Character["Left Arm"]
  27. LeftLeg = Character["Left Leg"]
  28. RightArm = Character["Right Arm"]
  29. RightLeg = Character["Right Leg"]
  30. LS = Torso["Left Shoulder"]
  31. LH = Torso["Left Hip"]
  32. RS = Torso["Right Shoulder"]
  33. RH = Torso["Right Hip"]
  34. Neck = Torso.Neck
  35. attacktype = 1
  36. vt = Vector3.new
  37. cf = CFrame.new
  38. euler = CFrame.fromEulerAnglesXYZ
  39. angles = CFrame.Angles
  40. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  41. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  42. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  43. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  44. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  45. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  46. RootPart = Character.HumanoidRootPart
  47. RootJoint = RootPart.RootJoint
  48. RootCF = euler(-1.57, 0, 3.14)
  49. attack = false
  50. equipped = true
  51. local Anim = "Idle"
  52. local Effects = {}
  53. cam = workspace.CurrentCamera
  54. ZTarget = nil
  55. RocketTarget = nil
  56. local RbxUtility = LoadLibrary("RbxUtility")
  57. local Create = RbxUtility.Create
  58. local m = Create("Model"){
  59. Parent = Character,
  60. Name = "WeaponModel",
  61. }
  62. mouse = Player:GetMouse()
  63. RSH, LSH = nil, nil
  64. LH = Torso["Left Hip"]
  65. RH = Torso["Right Hip"]
  66. RSH = Torso["Right Shoulder"]
  67. LSH = Torso["Left Shoulder"]
  68.  
  69. local glasses = Instance.new("Part",Head)
  70. glasses.CanCollide = false
  71. glasses.TopSurface = 10
  72. glasses.BottomSurface = 10
  73. glasses.Size = Vector3.new(1.4, 0.6, 1.4)
  74. local glassesmesh = Instance.new("SpecialMesh",glasses)
  75. glassesmesh.MeshId = "rbxassetid://121910245"
  76. glassesmesh.TextureId = "rbxassetid://182196075"
  77. glassesmesh.Scale = Vector3.new(0.7,0.7,0.7)
  78. local glassesweld = Instance.new("Weld",glasses)
  79. glassesweld.Part0 = Head
  80. glassesweld.Part1 = glasses
  81. glassesweld.C0 = CFrame.new(0,0.1,-0.05)
  82.  
  83. local hair = Instance.new("Part",Char)
  84. hair.Name = "Hair"
  85. hair.CanCollide = false
  86. hair.Size = Vector3.new(1.2, 1, 1.6)
  87. hair.BrickColor = BrickColor.new("Really black")
  88. local hairmesh = Instance.new("SpecialMesh",hair)
  89. hairmesh.MeshId = "rbxassetid://16627529"
  90. hairmesh.TextureId = "rbxassetid://16627494"
  91. hairmesh.Scale = Vector3.new(1.05,1.05,1.05)
  92. hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1)
  93. local hairweld = Instance.new("Weld",hair)
  94. hairweld.Part0 = Head
  95. hairweld.Part1 = hair
  96. hairweld.C0 = CFrame.new(0,0.5,0)
  97.  
  98. local hair = Instance.new("Part",Char)
  99. hair.Name = "Hair"
  100. hair.CanCollide = false
  101. hair.Size = Vector3.new(1.2, 1, 1.6)
  102. hair.BrickColor = BrickColor.new("Really black")
  103. local hairmesh = Instance.new("SpecialMesh",hair)
  104. hairmesh.MeshId = "rbxassetid://1029012"
  105. hairmesh.TextureId = "rbxassetid://1028814"
  106. hairmesh.Scale = Vector3.new(1.1,1.1,1.1)
  107. hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1)
  108. local hairweld = Instance.new("Weld",hair)
  109. hairweld.Part0 = Head
  110. hairweld.Part1 = hair
  111. hairweld.C0 = CFrame.new(0,0.5,0)
  112.  
  113. local hair = Instance.new("Part",Char)
  114. hair.Name = "Hair"
  115. hair.CanCollide = false
  116. hair.Size = Vector3.new(1.2, 1, 1.6)
  117. hair.BrickColor = BrickColor.new("Really black")
  118. local hairmesh = Instance.new("SpecialMesh",hair)
  119. hairmesh.MeshId = "rbxassetid://1577360"
  120. hairmesh.TextureId = "rbxassetid://1577349"
  121. hairmesh.Scale = Vector3.new(1,1.3,1)
  122. hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1)
  123. local hairweld = Instance.new("Weld",hair)
  124. hairweld.Part0 = Head
  125. hairweld.Part1 = hair
  126. hairweld.C0 = CFrame.new(0,0.5,0)
  127.  
  128. local hair = Instance.new("Part",Char)
  129. hair.Name = "Hair"
  130. hair.CanCollide = false
  131. hair.Size = Vector3.new(1.2, 1, 1.6)
  132. hair.BrickColor = BrickColor.new("Really black")
  133. local hairmesh = Instance.new("SpecialMesh",hair)
  134. hairmesh.MeshId = "rbxassetid://1051545"
  135. hairmesh.TextureId = "rbxassetid://1051546"
  136. hairmesh.Scale = Vector3.new(1,1.3,1)
  137. hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1)
  138. local hairweld = Instance.new("Weld",hair)
  139. hairweld.Part0 = Head
  140. hairweld.Part1 = hair
  141. hairweld.C0 = CFrame.new(0,0.5,0)
  142.  
  143. blackhand = Instance.new("Part",char)
  144. blackhand.Material = "Neon"
  145. blackhand.Transparency = 1
  146. blackhand.BrickColor = BrickColor.new("Really red")
  147. blackhand.Position = Vector3.new(999,999,999)
  148. blackhand.Size = Vector3.new(1.01,1.01,1.01)
  149. blackweld = Instance.new("Weld",blackhand)
  150. blackweld.Part0 = rarm
  151. blackweld.Part1 = blackhand
  152. blackweld.C0 = CFrame.new(0,-0.5,0)
  153.  
  154. local InfernusTheme = Instance.new("Sound",Character)
  155. InfernusTheme.Name = "WorldEaterTheme"
  156. InfernusTheme.Looped = true
  157. InfernusTheme.SoundId = "http://www.roblox.com/asset?id=152828706"
  158. InfernusTheme:Play()
  159.  
  160. RSH.Parent = nil
  161. LSH.Parent = nil
  162.  
  163. RW = Create("Weld"){
  164. Name = "Right Shoulder",
  165. Part0 = Torso ,
  166. C0 = cf(1.5, 0.5, 0),
  167. C1 = cf(0, 0.5, 0),
  168. Part1 = RightArm ,
  169. Parent = Torso ,
  170. }
  171.  
  172. LW = Create("Weld"){
  173. Name = "Left Shoulder",
  174. Part0 = Torso ,
  175. C0 = cf(-1.5, 0.5, 0),
  176. C1 = cf(0, 0.5, 0) ,
  177. Part1 = LeftArm ,
  178. Parent = Torso ,
  179. }
  180. ----------------------------------------------------
  181. cn,ca,bc,v3,r = CFrame.new,CFrame.Angles,BrickColor.new,Vector3.new,function(a)return (math.random()-.5)*2*(a or 1) end
  182. deg,nf,c3,ins,ma,pi,mr = math.deg,math.floor,Color3.new,Instance.new,math.abs,math.pi,math.rad
  183. local part = function(prnt,cfr,siz,col,anc,canc,tra,mat,typ)
  184. local p = ins(typ or "Part")
  185. p.FormFactor = "Custom"
  186. p.Material = mat
  187. p.Transparency = tra
  188. p.CanCollide = canc
  189. p.Anchored = anc
  190. p.BrickColor = bc(col)
  191. p.Size = siz
  192. p.CFrame = cfr
  193. p.Parent = prnt
  194. p.Locked = true
  195. p.TopSurface,p.BottomSurface = 0,0
  196. p:BreakJoints()
  197. return p
  198. end
  199. local mesh = function(typ,prnt,scal,mtyp,mid,mtx)
  200. local m = ins(typ or "SpecialMesh")
  201. if mtyp then m.MeshType = mtyp end
  202. if mid then m.MeshId = mid end
  203. if mtx then m.TextureId = mtx end
  204. if scal then m.Scale = scal end
  205. m.Parent = prnt
  206. return m
  207. end
  208. function cylinderOpen(cf,col,col2)
  209. local p = part(Character,cf,v3(0,1000,0),col,true,false,.1,"SmoothPlastic")
  210. local pm = mesh("CylinderMesh",p)
  211. local p2 = part(Character,cf,v3(0,1000,0),col2,true,false,.1,"SmoothPlastic")
  212. local p2m = mesh("CylinderMesh",p2)
  213. Spawn(function()
  214. for i=.1,1.1,.0125 do
  215. p.Transparency = i
  216. p2.Transparency = i
  217. pm.Scale = pm.Scale + v3(.8,0,.8)
  218. p2m.Scale = p2m.Scale + v3(.5,0,.5)
  219. wait()
  220. end
  221. p:Destroy()
  222. p2:Destroy()
  223. end)
  224. end
  225.  
  226. function expandDong()
  227. local nTarg = Torso
  228. local Orbi = Instance.new('Part')
  229. Orbi.Size = Vector3.new(3,3,3)
  230. Orbi.CanCollide = false
  231. Orbi.Locked = true
  232. Orbi.Shape = 'Ball'
  233. Orbi.Anchored = true
  234. Orbi.Transparency = .6
  235. Orbi.TopSurface,Orbi.BottomSurface = 0,0
  236. Orbi.Name = 'Expand Dong'
  237. Orbi.BrickColor = BrickColor.new('Really red')
  238.  
  239. local OrbiMesh = Instance.new('SpecialMesh',Orbi)
  240. OrbiMesh.Name = 'Dxpand Eong'
  241. OrbiMesh.Scale = Vector3.new(2, 2, 2)
  242. OrbiMesh.MeshType = 'Sphere'
  243. Orbi.Parent = Character
  244. ypcall(function()
  245. for i = 3,.35,-1 do
  246. OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
  247. Orbi.CFrame = nTarg.CFrame
  248. end
  249. for i = .6,1,.05 do
  250. wait(0.04)
  251. Orbi.Transparency = i
  252. end
  253. Orbi:Destroy()
  254. end)
  255. end
  256.  
  257.  
  258. function expandDong2()
  259. local nTarg = Torso
  260. local Orbi = Instance.new('Part')
  261. Orbi.Size = Vector3.new(3,3,3)
  262. Orbi.CanCollide = false
  263. Orbi.Locked = true
  264. Orbi.Shape = 'Ball'
  265. Orbi.Anchored = true
  266. Orbi.Transparency = .6
  267. Orbi.TopSurface,Orbi.BottomSurface = 0,0
  268. Orbi.Name = 'Expand Dong'
  269. Orbi.BrickColor = BrickColor.new('Really black')
  270.  
  271. local OrbiMesh = Instance.new('SpecialMesh',Orbi)
  272. OrbiMesh.Name = 'Dxpand Eong'
  273. OrbiMesh.Scale = Vector3.new(2.5, 2.5, 2.5)
  274. OrbiMesh.MeshType = 'Sphere'
  275. Orbi.Parent = Character
  276. ypcall(function()
  277. for i = 3,0,-1 do
  278. OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
  279. Orbi.CFrame = nTarg.CFrame
  280. end
  281. for i = .6,1,.05 do
  282. wait(0.04)
  283. Orbi.Transparency = i
  284. end
  285. Orbi:Destroy()
  286. end)
  287. end
  288. cylinderOpen(Torso.CFrame,"Really red","Really black")
  289. expandDong2()
  290. expandDong()
  291. ----------------------------------------------------
  292. z = Instance.new("Sound", Character)
  293. z.SoundId = "rbxassetid://"--Sao Crossing: 155183751 -- SAN HOLO DOnkeykong: 246056418 -- "Innocence" - Sword Art Online OP 2: 142357253 -- OnePunch Hero: 339250412 (Fav) -- Sethbling: 170902050
  294. z.Looped = true
  295. z.Pitch = .9
  296. z.Volume = .5
  297. wait(.1)
  298. z:Play()
  299. ----------------------------------------------------
  300.  
  301. local co1 = 0--how long it will take for skill to cooldown
  302. local co2 = 0
  303. local co3 = 0
  304. local co4 = 3
  305.  
  306. local cooldown1 = 16
  307. local cooldown2 = 12
  308. local cooldown3 = 9
  309. local cooldown4 = 15
  310.  
  311. local maxEnergy = 100
  312. local Energy = 100--Energy you start out with
  313. local skill1stam = 17--how much Energy is needed for a skill
  314. local skill2stam = 15
  315. local skill3stam = 20
  316. local skill4stam = 70
  317. local recovermana = 3--how much mana per second
  318.  
  319. local skillcolorscheme = BrickColor.new("Really red").Color
  320.  
  321. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  322. function makeframe(par, trans, pos, size, color)
  323. local frame = Instance.new('Frame', par)
  324. frame.BackgroundTransparency = trans
  325. frame.BorderSizePixel = 0
  326. frame.Position = pos
  327. frame.Size = size
  328. frame.BackgroundColor3 = color
  329. return frame
  330. end
  331. function makelabel(par, text)
  332. local label = Instance.new('TextLabel', par)
  333. label.BackgroundTransparency = 1
  334. label.Size = UDim2.new(1, 0, 1, 0)
  335. label.Position = UDim2.new(0, 0, 0, 0)
  336. label.TextColor3 = Color3.new(255, 255, 255)
  337. label.TextStrokeTransparency = 0
  338. label.FontSize = Enum.FontSize.Size32
  339. label.Font = Enum.Font.SourceSansBold
  340. label.BorderSizePixel = 0
  341. label.TextScaled = true
  342. label.Text = text
  343. end
  344. framesk1 = makeframe(scrn, .5, UDim2.new(.23, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  345. framesk2 = makeframe(scrn, .5, UDim2.new(.5, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  346. framesk3 = makeframe(scrn, .5, UDim2.new(.5, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  347. framesk4 = makeframe(scrn, .5, UDim2.new(.23, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  348. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  349. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  350. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  351. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  352. text1 = makelabel(framesk1, '[R] Energy Wave')
  353. text2 = makelabel(framesk2, '[F] Energy Cannon')
  354. text3 = makelabel(framesk3, "[E] Energy Rapid-Fire")
  355. text4 = makelabel(framesk4, '[Q] Energy Shots')
  356. Energybar = makeframe(scrn, .5, UDim2.new(.23, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
  357. Energycover = makeframe(Energybar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Really red").Color)
  358. Energytext = makelabel(Energybar, 'Energy')
  359. healthbar = makeframe(scrn, .5, UDim2.new(.5, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
  360. healthcover = makeframe(healthbar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Really red").Color)
  361. healthtext = makelabel(healthbar, 'Health')
  362.  
  363. local stats=Instance.new('Folder',Character)
  364. stats.Name='Stats'
  365. local block=Instance.new('BoolValue',stats)
  366. block.Name='Block'
  367. block.Value=false
  368. local stun=Instance.new('BoolValue',stats)
  369. stun.Name='Stun'
  370. stun.Value=false
  371. local defense=Instance.new('NumberValue',stats)
  372. defense.Name='Defence'
  373. defense.Value=1
  374. local speed=Instance.new('NumberValue',stats)
  375. speed.Name='Speed'
  376. speed.Value=1
  377. local damagea=Instance.new('NumberValue',stats)
  378. damagea.Name='Damage'
  379. damagea.Value=1
  380.  
  381. function NoOutline(Part)
  382. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  383. end
  384.  
  385. function nooutline(part)
  386. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  387. end
  388.  
  389. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  390. local fp = Create("Part"){
  391. formFactor = formfactor,
  392. Parent = parent,
  393. Reflectance = reflectance,
  394. Transparency = transparency,
  395. CanCollide = false,
  396. Locked = true,
  397. BrickColor = BrickColor.new(tostring(brickcolor)),
  398. Name = name,
  399. Size = size,
  400. Position = Character.Torso.Position,
  401. Material = material,
  402. }
  403. nooutline(fp)
  404. return fp
  405. end
  406.  
  407. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  408. local Msh = Create(Mesh){
  409. Parent = part,
  410. Offset = offset,
  411. Scale = scale,
  412. }
  413. if Mesh == "SpecialMesh" then
  414. Msh.MeshType = meshtype
  415. Msh.MeshId = meshid
  416. end
  417. return Msh
  418. end
  419.  
  420. function weld(parent, part0, part1, c0, c1)
  421. local Weld = Create("Weld"){
  422. Parent = parent,
  423. Part0 = part0,
  424. Part1 = part1,
  425. C0 = c0,
  426. C1 = c1,
  427. }
  428. return Weld
  429. end
  430.  
  431.  
  432. local function CFrameFromTopBack(at, top, back)
  433. local right = top:Cross(back)
  434. return CFrame.new(at.x, at.y, at.z,
  435. right.x, top.x, back.x,
  436. right.y, top.y, back.y,
  437. right.z, top.z, back.z)
  438. end
  439.  
  440. function Triangle(a, b, c)
  441. local edg1 = (c - a):Dot((b - a).unit)
  442. local edg2 = (a - b):Dot((c - b).unit)
  443. local edg3 = (b - c):Dot((a - c).unit)
  444. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  445. a, b, c = a, b, c
  446. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  447. a, b, c = b, c, a
  448. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  449. a, b, c = c, a, b
  450. else
  451. assert(false, "unreachable")
  452. end
  453.  
  454. local len1 = (c - a):Dot((b - a).unit)
  455. local len2 = (b - a).magnitude - len1
  456. local width = (a + (b - a).unit * len1 - c).magnitude
  457.  
  458. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  459.  
  460. local list = {}
  461.  
  462. local Color = BrickColor.new("Dark stone grey")
  463.  
  464. if len1 > 0.01 then
  465. local w1 = Create('WedgePart', m){
  466. Material = "SmoothPlastic",
  467. FormFactor = 'Custom',
  468. BrickColor = Color,
  469. Transparency = 0,
  470. Reflectance = 0,
  471. Material = "SmoothPlastic",
  472. CanCollide = false,
  473. Anchored = true,
  474. Parent = workspace,
  475. Transparency = 0.3,
  476. }
  477. game:GetService("Debris"):AddItem(w1, 5)
  478. NoOutline(w1)
  479. local sz = Vector3.new(0.2, width, len1)
  480. w1.Size = sz
  481. local sp = Create("SpecialMesh"){
  482. Parent = w1,
  483. MeshType = "Wedge",
  484. Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
  485. }
  486. w1:BreakJoints()
  487. table.insert(Effects, {
  488. w1,
  489. "Disappear",
  490. .03
  491. })
  492. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  493. table.insert(list, w1)
  494. end
  495. if len2 > 0.01 then
  496. local w2 = Create('WedgePart', m){
  497. Material = "SmoothPlastic",
  498. FormFactor = 'Custom',
  499. BrickColor = Color,
  500. Transparency = 0,
  501. Reflectance = 0,
  502. Material = "SmoothPlastic",
  503. CanCollide = false,
  504. Anchored = true,
  505. Parent = workspace,
  506. Transparency = 0.3,
  507. }
  508. game:GetService("Debris"):AddItem(w2, 5)
  509. NoOutline(w2)
  510. local sz = Vector3.new(0.2, width, len2)
  511. w2.Size = sz
  512. local sp = Create("SpecialMesh"){
  513. Parent = w2,
  514. MeshType = "Wedge",
  515. Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
  516. }
  517. w2:BreakJoints()
  518. table.insert(Effects, {
  519. w2,
  520. "Disappear",
  521. .03
  522. })
  523. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  524. table.insert(list, w2)
  525. end
  526. return unpack(list)
  527. end
  528.  
  529. function so(id, par, vol, pit)
  530. coroutine.resume(coroutine.create(function()
  531. local sou = Instance.new("Sound", par or workspace)
  532. sou.Volume = vol
  533. sou.Pitch = pit or 1
  534. sou.SoundId = Sounds[id].Id or id
  535. swait()
  536. sou:play()
  537. swait(6)
  538. sou:Remove()
  539. end))
  540. end
  541.  
  542. function clerp(a, b, t)
  543. return a:lerp(b, t)
  544. end
  545.  
  546. --[[Credits to SazErenos for his Artificial ]]--
  547.  
  548. ArtificialHB = Instance.new("BindableEvent", script)
  549. ArtificialHB.Name = "Heartbeat"
  550.  
  551. script:WaitForChild("Heartbeat")
  552.  
  553. frame = 1 / 60
  554. tf = 0
  555. allowframeloss = false
  556. tossremainder = false
  557. lastframe = tick()
  558. script.Heartbeat:Fire()
  559.  
  560. game:GetService("RunService").Heartbeat:connect(function(s, p)
  561. tf = tf + s
  562. if tf >= frame then
  563. if allowframeloss then
  564. script.Heartbeat:Fire()
  565. lastframe = tick()
  566. else
  567. for i = 1, math.floor(tf / frame) do
  568. script.Heartbeat:Fire()
  569. end
  570. lastframe = tick()
  571. end
  572. if tossremainder then
  573. tf = 0
  574. else
  575. tf = tf - frame * math.floor(tf / frame)
  576. end
  577. end
  578. end)
  579.  
  580. function swait(num)
  581. if num == 0 or num == nil then
  582. ArtificialHB.Event:wait()
  583. else
  584. for i = 0, num do
  585. ArtificialHB.Event:wait()
  586. end
  587. end
  588. end
  589.  
  590. function rayCast(Pos, Dir, Max, Ignore)
  591. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  592. end
  593.  
  594. Asset = "http://www.roblox.com/asset/?id="
  595.  
  596. Sounds = {
  597. Hit1 = {
  598. Id = Asset..(199149137)
  599. },
  600. Hit2 = {
  601. Id = Asset..(199149186)
  602. },
  603. Hit3 = {
  604. Id = Asset..(199149221)
  605. },
  606. Hit4 = {
  607. Id = Asset..(199149235)
  608. },
  609. Slash1 = {
  610. Id = Asset..(161006195)
  611. },
  612. Slash2 = {
  613. Id = Asset..(161006212)
  614. },
  615. Fire = {
  616. Id = Asset..(168413145)
  617. },
  618. Beam = {
  619. Id = Asset..(278596476)
  620. },
  621. Appear = {
  622. Id = Asset..(200633077)
  623. },
  624. Disappear = {
  625. Id = Asset..(200633029)
  626. },
  627. }
  628.  
  629. ContentProvider = game:GetService("ContentProvider")
  630. for _, v in pairs(Sounds) do
  631. ContentProvider:Preload(v.Id)
  632. end
  633.  
  634.  
  635.  
  636. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  637. if hit.Parent == nil then
  638. return
  639. end
  640. local h = hit.Parent:FindFirstChild("Humanoid")
  641. for _, v in pairs(hit.Parent:children()) do
  642. if v:IsA("Humanoid") then
  643. h = v
  644. end
  645. end
  646. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  647. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  648. if hit.Parent.DebounceHit.Value == true then
  649. return
  650. end
  651. end
  652. if h.MaxHealth >= math.huge then
  653. hit:BreakJoints()
  654. end
  655. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  656. return
  657. end]]
  658. -- hs(hit,1.2)
  659. local c = Create("ObjectValue"){
  660. Name = "creator",
  661. Value = game:service("Players").LocalPlayer,
  662. Parent = h,
  663. }
  664. game:GetService("Debris"):AddItem(c, .5)
  665. if HitSound ~= nil and HitPitch ~= nil then
  666. so(HitSound, hit, 1, HitPitch)
  667. end
  668. local Damage = math.random(minim, maxim)
  669. -- h:TakeDamage(Damage)
  670. local blocked = false
  671. local block = hit.Parent:findFirstChild("Block")
  672. if block ~= nil then
  673. if block.className == "IntValue" then
  674. if block.Value > 0 then
  675. blocked = true
  676. block.Value = block.Value - 1
  677. print(block.Value)
  678. end
  679. end
  680. end
  681. if blocked == false then
  682. -- h:TakeDamage(Damage)
  683. h.Health = h.Health - Damage
  684. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  685. else
  686. h.Health = h.Health - (Damage / 2)
  687. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  688. end
  689. if Type == "Knockdown" then
  690. local hum = hit.Parent.Humanoid
  691. hum.PlatformStand = true
  692. coroutine.resume(coroutine.create(function(HHumanoid)
  693. swait(1)
  694. HHumanoid.PlatformStand = false
  695. end), hum)
  696. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  697. local bodvol = Create("BodyVelocity"){
  698. velocity = angle * knockback,
  699. P = 5000,
  700. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  701. Parent = hit,
  702. }
  703. local rl = Create("BodyAngularVelocity"){
  704. P = 3000,
  705. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  706. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  707. Parent = hit,
  708. }
  709. game:GetService("Debris"):AddItem(bodvol, .5)
  710. game:GetService("Debris"):AddItem(rl, .5)
  711. elseif Type == "Normal" then
  712. local vp = Create("BodyVelocity"){
  713. P = 500,
  714. maxForce = Vector3.new(math.huge, 0, math.huge),
  715. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  716. }
  717. if knockback > 0 then
  718. vp.Parent = hit.Parent.Torso
  719. end
  720. game:GetService("Debris"):AddItem(vp, .5)
  721. elseif Type == "Up" then
  722. local bodyVelocity = Create("BodyVelocity"){
  723. velocity = vt(0, 20, 0),
  724. P = 5000,
  725. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  726. Parent = hit,
  727. }
  728. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  729. elseif Type == "Snare" then
  730. local bp = Create("BodyPosition"){
  731. P = 2000,
  732. D = 100,
  733. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  734. position = hit.Parent.Torso.Position,
  735. Parent = hit.Parent.Torso,
  736. }
  737. game:GetService("Debris"):AddItem(bp, 1)
  738. elseif Type == "Freeze" then
  739. local BodPos = Create("BodyPosition"){
  740. P = 50000,
  741. D = 1000,
  742. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  743. position = hit.Parent.Torso.Position,
  744. Parent = hit.Parent.Torso,
  745. }
  746. local BodGy = Create("BodyGyro") {
  747. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  748. P = 20e+003,
  749. Parent = hit.Parent.Torso,
  750. cframe = hit.Parent.Torso.CFrame,
  751. }
  752. hit.Parent.Torso.Anchored = true
  753. coroutine.resume(coroutine.create(function(Part)
  754. swait(1.5)
  755. Part.Anchored = false
  756. end), hit.Parent.Torso)
  757. game:GetService("Debris"):AddItem(BodPos, 3)
  758. game:GetService("Debris"):AddItem(BodGy, 3)
  759. end
  760. local debounce = Create("BoolValue"){
  761. Name = "DebounceHit",
  762. Parent = hit.Parent,
  763. Value = true,
  764. }
  765. game:GetService("Debris"):AddItem(debounce, Delay)
  766. c = Instance.new("ObjectValue")
  767. c.Name = "creator"
  768. c.Value = Player
  769. c.Parent = h
  770. game:GetService("Debris"):AddItem(c, .5)
  771. end
  772. end
  773.  
  774. function ShowDamage(Pos, Text, Time, Color)
  775. local Rate = (1 / 30)
  776. local Pos = (Pos or Vector3.new(0, 0, 0))
  777. local Text = (Text or "")
  778. local Time = (Time or 2)
  779. local Color = (Color or Color3.new(1, 0, 0))
  780. local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  781. EffectPart.Anchored = true
  782. local BillboardGui = Create("BillboardGui"){
  783. Size = UDim2.new(3, 0, 3, 0),
  784. Adornee = EffectPart,
  785. Parent = EffectPart,
  786. }
  787. local TextLabel = Create("TextLabel"){
  788. BackgroundTransparency = 1,
  789. Size = UDim2.new(1, 0, 1, 0),
  790. Text = Text,
  791. TextColor3 = Color,
  792. TextScaled = true,
  793. Font = Enum.Font.ArialBold,
  794. Parent = BillboardGui,
  795. }
  796. game.Debris:AddItem(EffectPart, (Time + 0.1))
  797. EffectPart.Parent = game:GetService("Workspace")
  798. delay(0, function()
  799. local Frames = (Time / Rate)
  800. for Frame = 1, Frames do
  801. wait(Rate)
  802. local Percent = (Frame / Frames)
  803. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  804. TextLabel.TextTransparency = Percent
  805. end
  806. if EffectPart and EffectPart.Parent then
  807. EffectPart:Destroy()
  808. end
  809. end)
  810. end
  811.  
  812. Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really red", "Handle", Vector3.new(2.20000005, 0.200000003, 2.20000005))
  813. Handleweld = weld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0396080017, -4.09992504, 0.0598115921, 1, -7.6153174e-011, -2.01268858e-006, 8.22890089e-011, 1, 3.084431e-006, 2.01269063e-006, -3.084431e-006, 1))
  814. mesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.660000086, 1))
  815. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(2.44000006, 0.600000003, 1.44000006))
  816. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.14984131e-005, 1.62124634e-005, -1.04904175e-005, 1, 1.23146328e-011, 1.07286201e-006, -1.13079598e-011, 1, -1.07284109e-006, -1.07285791e-006, 1.07284109e-006, 1))
  817. mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  818. Layer2Handle = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Layer2Handle", Vector3.new(0.480000019, 0.200000003, 12.480001062))
  819. Layer2Handleweld = weld(m, Handle, Layer2Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000301361084, 2.28881836e-005, -0.000202178955, 1, 2.70082467e-007, -1.75730406e-006, -2.70091959e-007, 1, -8.66388018e-006, 1.7573052e-006, 8.66388655e-006, 1))
  820. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really red", "Part", Vector3.new(0.480000019, 2.200000003, 2.720000625))
  821. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.14984131e-005, -9.53674316e-007, -2.8800478, 0.999997914, -1.93837602e-011, -1.48245363e-008, 3.90257063e-011, 1, -7.13953341e-011, 1.48336312e-008, 8.91304808e-011, 0.999997914))
  822. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  823. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really red", "Part", Vector3.new(0.480000019, 2.200000003, 2.720000625))
  824. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.19616699e-005, -3.24249268e-005, 2.87992668, 0.999985158, 2.87014509e-012, -1.48093022e-008, 5.66184322e-011, 1, -5.45696821e-012, 1.48470463e-008, 8.04902811e-011, 0.999985158))
  825. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  826. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.480000019, 0.200000003, 12.04000092))
  827. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.33514404e-005, -9.53674316e-007, -0.0001039505, 0.999987781, -7.77617137e-011, -1.49125299e-008, 1.16872789e-010, 1, -1.96905603e-010, 1.493936e-008, 2.51930032e-010, 0.999987781))
  828. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  829. mesh("BlockMesh", Layer2Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  830. Layer3Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Really red", "Layer3Handle", Vector3.new(0.720000029, 0.720000029, 0.200000003))
  831. Layer3Handleweld = weld(m, Handle, Layer3Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000802993774, -0.000151634216, 3.05175781e-005, 0.999999404, 4.16033836e-005, 1.96785777e-006, 1.96798396e-006, -2.12107511e-006, -0.999999404, -4.16014955e-005, 1, -2.12118243e-006))
  832. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  833. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-007, -0.840223312, 7.5397892, 4.89614176e-005, 5.0135186e-006, 0.999999762, -0.999999046, 1.22189522e-005, 4.8959475e-005, -1.22783813e-005, -0.999998689, 5.01443719e-006))
  834. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  835. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  836. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000864028931, -6.00814819e-005, -7.59964466, -0.999999404, 9.70068322e-006, 3.31623378e-005, 3.31642768e-005, 4.86649742e-006, 1, 9.70056226e-006, 0.999999404, -4.86679755e-006))
  837. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  838. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  839. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.76565552e-005, -0.840137482, 7.54048443, -3.42451713e-005, -5.10578684e-006, -0.99999994, -0.999998927, -1.21146441e-005, 3.4243305e-005, -1.2144611e-005, 0.999998927, -5.10543578e-006))
  840. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  841. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  842. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000713348389, -0.76565552e-005, -7.6005826, -0.999993503, -9.68569748e-006, 5.00400529e-005, -5.00420938e-005, -4.89724516e-006, -0.999999881, 9.62627109e-006, -0.999993503, 4.89690592e-006))
  843. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  844. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  845. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, -0.838525772, 7.54048347, 3.57801182e-005, 5.10578639e-006, 0.99999994, 0.999999046, 1.0341405e-005, -3.57782446e-005, -1.03266702e-005, 0.999998927, -5.10551126e-006))
  846. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  847. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  848. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459e-006, -0.84022522, 7.53960228, -3.45465851e-005, -1.12046393e-006, -1, 5.82638359e-006, -0.999999225, 1.12023974e-006, -0.999999225, -5.82638404e-006, 3.45446933e-005))
  849. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  850. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  851. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.86102295e-006, -0.839550018, 7.53951263, 3.41143859e-005, 1.04596313e-006, 1, -6.24368704e-006, 0.999999225, -1.04572723e-006, -0.999999225, -6.24369022e-006, 3.41124942e-005))
  852. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  853. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  854. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000238418579, -9.53674316e-006, -7.59959984, 6.28840098e-006, -0.999999225, 1.09042128e-006, -3.40994848e-005, -1.09065854e-006, -1, 0.999999225, 6.2884028e-006, -3.4097593e-005))
  855. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  856. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.19999998807907, "Really red", "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
  857. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 3.81469727e-006, 0.999998808, 7.0078163e-011, 1.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
  858. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6.58200026, 6.58200002, 2.9532001))
  859. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  860. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.00543213e-005, -0.838380814, 7.53930187, -4.74264707e-005, -5.02687499e-006, -0.999999762, 0.999999046, -1.03116026e-005, -4.74245317e-005, -1.0311428e-005, -0.999998808, 5.02768307e-006))
  861. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  862. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(0.480000019, 7.480000019, 0.200000003))
  863. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.999998808, 7.0078163e-011, 5.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
  864. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6.60000014, 6.60000014, 6.60000014))
  865. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  866. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-006, -0.839694977, 7.53992653, -3.91442991e-005, -8.80631774e-007, -0.999993026, 2.27987925e-006, 0.999991357, -8.80696462e-007, 0.999997556, -2.29477519e-006, -3.92767397e-005))
  867. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  868. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  869. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000235557556, -2.38418579e-005, -7.60028458, 1.50501114e-006, -0.999997199, 8.35720812e-007, 3.47488422e-005, 8.35786693e-007, 1, -0.999997199, -1.50502308e-006, 3.47468304e-005))
  870. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  871. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  872. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, -0.840080261, 7.54010582, 3.91591857e-005, 8.0613512e-007, 0.999993026, -2.25008012e-006, -0.999991, 8.06197477e-007, 0.999997556, -2.29477519e-006, -3.92916445e-005))
  873. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  874. HitboxA = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxA", Vector3.new(0.200000003, 2.48000002, 0.840000391))
  875. HitboxAweld = weld(m, Layer3Handle, HitboxA, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.67572021e-006, -0.039557457, 7.53951645, 3.44422551e-005, 1.04596529e-006, 1, -5.90090622e-006, 0.999999225, -1.04573905e-006, -0.999999225, -5.90090895e-006, 3.44403634e-005))
  876. HitboxB = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxB", Vector3.new(0.200000003, 2.48000026, 0.840000391))
  877. HitboxBweld = weld(m, Layer3Handle, HitboxB, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-007, -0.0402240753, 7.5397892, 4.89614176e-005, 5.0135186e-006, 0.999999762, -0.999999046, 1.22189522e-005, 4.8959475e-005, -1.22783813e-005, -0.999998689, 5.01443719e-006))
  878. HitboxC = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxC", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  879. HitboxCweld = weld(m, Layer3Handle, HitboxC, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.76565552e-005, 0.0598621368, 7.54048443, -3.42451713e-005, -5.10578684e-006, -0.99999994, -0.999998927, -1.21146441e-005, 3.4243305e-005, -1.2144611e-005, 0.999998927, -5.10543578e-006))
  880. mesh("SpecialMesh", HitboxC, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  881. HitboxD = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxD", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  882. HitboxDweld = weld(m, Layer3Handle, HitboxD, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, 0.0599050522, 7.54010582, 3.91591857e-005, 8.0613512e-007, 0.999993026, -2.25008012e-006, -0.999991, 8.06197477e-007, 0.999997556, -2.29477519e-006, -3.92916445e-005))
  883. mesh("SpecialMesh", HitboxD, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  884. mesh("SpecialMesh", Layer3Handle, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6, 6, -1.21799994))
  885.  
  886. local Lite = Create("PointLight"){
  887. Parent = Handle,
  888. Color = BrickColor.new("Really red").Color,
  889. Shadows = true,
  890. Range = 20,
  891. Brightness = 0.5,
  892. }
  893.  
  894. local Spin = Create("Sound"){
  895. Parent = Handle,
  896. SoundId = "rbxassetid://143301643",
  897. Volume = 1,
  898. Pitch = 1,
  899. Looped = true,
  900. }
  901.  
  902. local Spin2 = Create("Sound"){
  903. Parent = Handle,
  904. SoundId = "rbxassetid://149560784",
  905. Volume = .7,
  906. Pitch = .8,
  907. Looped = true,
  908. }
  909.  
  910. Spin:Play()
  911.  
  912. Spin2:Play()
  913.  
  914. local PE1 = Create("ParticleEmitter"){
  915. Parent = Layer3Handle,
  916. Color = ColorSequence.new(BrickColor.new("Really red").Color),
  917. Transparency = NumberSequence.new(.5),
  918. Size = NumberSequence.new(0.2),
  919. Texture = "rbxassetid://320043786",
  920. Lifetime = NumberRange.new(1),
  921. Rate = 200,
  922. VelocitySpread = 180,
  923. Rotation = NumberRange.new(-360, 360),
  924. RotSpeed = NumberRange.new(-180, 180),
  925. Rotation = NumberRange.new(100),
  926. Speed = NumberRange.new(10),
  927. LightEmission = 1000,
  928. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}),
  929. }
  930.  
  931. local PE2 = Create("ParticleEmitter"){
  932. Parent = Handle,
  933. Color = ColorSequence.new(BrickColor.new("Really red").Color),
  934. Transparency = NumberSequence.new(.5),
  935. Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2, 0), NumberSequenceKeypoint.new(1, 2, 0)}),
  936. Texture = "rbxassetid://31727915",
  937. Lifetime = NumberRange.new(1),
  938. Rate = 1000,
  939. VelocitySpread = 30,
  940. Rotation = NumberRange.new(-360, 360),
  941. RotSpeed = NumberRange.new(-180, 180),
  942. Rotation = NumberRange.new(100),
  943. Speed = NumberRange.new(10),
  944. LightEmission = 1000,
  945. EmissionDirection = "Bottom",
  946. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}),
  947. Enabled = false,
  948. }
  949.  
  950.  
  951. breakpart=function(part)
  952.  
  953. away1 = part.Size.x/4
  954.  
  955. away2 = part.Size.z/4
  956.  
  957. away3 = part.Size.y/4
  958.  
  959. if part.Size.x<=4 and part.Size.z<=4 and part.Size.y<=4 then
  960. part:Destroy(); return
  961. end
  962.  
  963. if part.Name~="Base" or part.Name~="Baseplate" then
  964. zx,zy,zz=part.Size.x,part.Size.y,part.Size.z
  965. local part1,part2,part3,part4,part5,part6,part7,part8 = part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone()
  966. part1.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  967. part2.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  968. part3.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  969. part4.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  970. part5.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  971. part6.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  972. part7.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  973. part8.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  974. pare1=part.Parent
  975. --pare2=part.Parent.Parent
  976. part1.Parent=pare1
  977. part2.Parent=pare1
  978. part3.Parent=pare1
  979. part4.Parent=pare1
  980. --part5.Parent=pare1
  981. --part6.Parent=pare1
  982. --part7.Parent=pare1
  983. --part8.Parent=pare1
  984. part1.CFrame=part.CFrame*CFrame.new(-away1,0,-away2)
  985. part2.CFrame=part.CFrame*CFrame.new(away1,0,-away2)
  986. part3.CFrame=part.CFrame*CFrame.new(away1,0,away2)
  987. part4.CFrame=part.CFrame*CFrame.new(-away1,0,away2)
  988. --part5.CFrame=part.CFrame*CFrame.new(-away1,-away3,-away2)
  989. --part6.CFrame=part.CFrame*CFrame.new(away1,-away3,-away2)
  990. --part7.CFrame=part.CFrame*CFrame.new(away1,-away3,away2)
  991. --part8.CFrame=part.CFrame*CFrame.new(-away1,-away3,away2)
  992. part.Anchored = false
  993. part:Destroy()
  994. else
  995. zx,zy,zz=part.Size.x,part.Size.y,part.Size.z
  996. local part1,part2,part3,part4,part5,part6,part7,part8 = part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone()
  997. part1.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  998. part2.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  999. part3.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  1000. part4.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  1001. part5.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  1002. part6.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  1003. part7.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  1004. part8.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  1005. pare1=part.Parent
  1006. --pare2=part.Parent.Parent
  1007. part1.Parent=pare1
  1008. part2.Parent=pare1
  1009. part3.Parent=pare1
  1010. part4.Parent=pare1
  1011. part5.Parent=pare1
  1012. part6.Parent=pare1
  1013. part7.Parent=pare1
  1014. part8.Parent=pare1
  1015. part1.CFrame=part.CFrame*CFrame.new(-away1,away3,-away2)
  1016. part2.CFrame=part.CFrame*CFrame.new(away1,away3,-away2)
  1017. part3.CFrame=part.CFrame*CFrame.new(away1,away3,away2)
  1018. part4.CFrame=part.CFrame*CFrame.new(-away1,away3,away2)
  1019. part5.CFrame=part.CFrame*CFrame.new(-away1,-away3,-away2)
  1020. part6.CFrame=part.CFrame*CFrame.new(away1,-away3,-away2)
  1021. part7.CFrame=part.CFrame*CFrame.new(away1,-away3,away2)
  1022. part8.CFrame=part.CFrame*CFrame.new(-away1,-away3,away2)
  1023. part1.Anchored = false
  1024. part2.Anchored = false
  1025. part3.Anchored = false
  1026. part4.Anchored = false
  1027. part5.Anchored = false
  1028. part6.Anchored = false
  1029. part7.Anchored = false
  1030. part8.Anchored = false
  1031. part:Destroy()
  1032. wait(5)
  1033. for i = 1,3 do
  1034. wait(.2)
  1035. part1.Transparency = i
  1036. part2.Transparency = i
  1037. part3.Transparency = i
  1038. part5.Transparency = i
  1039. part6.Transparency = i
  1040. part7.Transparency = i
  1041. part8.Transparency = i
  1042. end
  1043. end
  1044. end
  1045.  
  1046. function Reappear()
  1047. for _, i in pairs(m:children()) do
  1048. if i.Name == "Layer3Handle" then
  1049. Part.Transparency = 1
  1050. coroutine.resume(coroutine.create(function(Part)
  1051. for i = 0, 1, 0.1 do
  1052. swait()
  1053. Part.Transparency = i
  1054. end
  1055. Part.Transparency = 0.5
  1056. end), i)
  1057. end
  1058. end
  1059. end
  1060.  
  1061. function Disappear()
  1062. for _, i in pairs(m:children()) do
  1063. if i.Name == "Layer3Handle" then
  1064. Part.Transparency = .5
  1065. coroutine.resume(coroutine.create(function(Part)
  1066. for i = 0, 1, 0.1 do
  1067. swait()
  1068. Part.Transparency = i
  1069. end
  1070. Part.Transparency = 1
  1071. end), i)
  1072. end
  1073. end
  1074. end
  1075.  
  1076. function attackone()
  1077. attack = true
  1078. local con1 = HitboxA.Touched:connect(function(hit)
  1079. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  1080. breakpart(hit)
  1081. end)
  1082. local con2 = HitboxB.Touched:connect(function(hit)
  1083. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  1084. breakpart(hit)
  1085. end)
  1086. local con3 = HitboxC.Touched:connect(function(hit)
  1087. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  1088. breakpart(hit)
  1089. end)
  1090. local con4 = HitboxD.Touched:connect(function(hit)
  1091. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  1092. breakpart(hit)
  1093. end)
  1094.  
  1095. --[[HitboxA.Touched:connect(function(hit)
  1096. if hit.Name == 'Base' then else
  1097. for i = 1,100 do
  1098. breakpart(hit)
  1099. end
  1100. end
  1101. end)
  1102. HitboxB.Touched:connect(function(hit)
  1103. if hit.Name == 'Base' then else
  1104. for i = 1,100 do
  1105. breakpart(hit)
  1106. end
  1107. end
  1108. end)
  1109. HitboxC.Touched:connect(function(hit)
  1110. if hit.Name == 'Base' then else
  1111. for i = 1,100 do
  1112. breakpart(hit)
  1113. end
  1114. end
  1115. end)
  1116. HitboxD.Touched:connect(function(hit)
  1117. if hit.Name == 'Base' then else
  1118. for i = 1,100 do
  1119. breakpart(hit)
  1120. end
  1121. end
  1122. end)]]
  1123.  
  1124.  
  1125. Reappear()
  1126. for i = 0, 1, 0.1 do
  1127. swait()
  1128. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1129. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(50)), .3)
  1130. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
  1131. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1132. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(120), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1133. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1134. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(5, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1135. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1136. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1137. end
  1138. so("Slash1", Handle, 1, 1)
  1139. for i = 0, 1, 0.1 do
  1140. swait()
  1141. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .5)
  1142. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), .5)
  1143. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.5)
  1144. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  1145. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1146. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1147. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-2, -4, -8) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1148. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1149. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1150. end
  1151. Disappear()
  1152. con1:disconnect()
  1153. con2:disconnect()
  1154. con3:disconnect()
  1155. con4:disconnect()
  1156. attack = false
  1157. end
  1158.  
  1159.  
  1160. function attacktwo()
  1161. attack = true
  1162. local con1 = HitboxA.Touched:connect(function(hit)
  1163. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  1164. breakpart(hit)
  1165. end)
  1166. local con2 = HitboxB.Touched:connect(function(hit)
  1167. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  1168. breakpart(hit)
  1169. end)
  1170. local con3 = HitboxC.Touched:connect(function(hit)
  1171. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  1172. breakpart(hit)
  1173. end)
  1174. local con4 = HitboxD.Touched:connect(function(hit)
  1175. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  1176. breakpart(hit)
  1177. end)
  1178.  
  1179. --[[HitboxA.Touched:connect(function(hit)
  1180. if hit.Name == 'Base' then else
  1181. for i = 1,100 do
  1182. breakpart(hit)
  1183. end
  1184. end
  1185. end)
  1186. HitboxB.Touched:connect(function(hit)
  1187. if hit.Name == 'Base' then else
  1188. for i = 1,100 do
  1189. breakpart(hit)
  1190. end
  1191. end
  1192. end)
  1193. HitboxC.Touched:connect(function(hit)
  1194. if hit.Name == 'Base' then else
  1195. for i = 1,100 do
  1196. breakpart(hit)
  1197. end
  1198. end
  1199. end)
  1200. HitboxD.Touched:connect(function(hit)
  1201. if hit.Name == 'Base' then else
  1202. for i = 1,100 do
  1203. breakpart(hit)
  1204. end
  1205. end
  1206. end)]]
  1207.  
  1208. Reappear()
  1209. for i = 0, 1, 0.1 do
  1210. swait()
  1211. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1212. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1213. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.5) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1214. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1215. RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1216. LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-85), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1217. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1218. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1219. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1220. end
  1221. so("Slash2", Handle, 1, 1.2)
  1222. for i = 0, 1, 0.1 do
  1223. swait()
  1224. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1225. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  1226. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5)
  1227. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5)
  1228. RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1229. LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-85), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1230. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -8) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  1231. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1232. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1233. end
  1234. Disappear()
  1235. con1:disconnect()
  1236. con2:disconnect()
  1237. con3:disconnect()
  1238. con4:disconnect()
  1239. attack = false
  1240. end
  1241.  
  1242. function attackthree()
  1243. attack = true
  1244. local con1 = HitboxA.Touched:connect(function(hit)
  1245. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  1246. breakpart(hit)
  1247. end)
  1248. local con2 = HitboxB.Touched:connect(function(hit)
  1249. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  1250. breakpart(hit)
  1251. end)
  1252. local con3 = HitboxC.Touched:connect(function(hit)
  1253. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  1254. breakpart(hit)
  1255. end)
  1256. local con4 = HitboxD.Touched:connect(function(hit)
  1257. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  1258. breakpart(hit)
  1259. end)
  1260.  
  1261. --[[HitboxA.Touched:connect(function(hit)
  1262. if hit.Name == 'Base' then else
  1263. for i = 1,100 do
  1264. breakpart(hit)
  1265. end
  1266. end
  1267. end)
  1268. HitboxB.Touched:connect(function(hit)
  1269. if hit.Name == 'Base' then else
  1270. for i = 1,100 do
  1271. breakpart(hit)
  1272. end
  1273. end
  1274. end)
  1275. HitboxC.Touched:connect(function(hit)
  1276. if hit.Name == 'Base' then else
  1277. for i = 1,100 do
  1278. breakpart(hit)
  1279. end
  1280. end
  1281. end)
  1282. HitboxD.Touched:connect(function(hit)
  1283. if hit.Name == 'Base' then else
  1284. for i = 1,100 do
  1285. breakpart(hit)
  1286. end
  1287. end
  1288. end)]]
  1289.  
  1290.  
  1291. Reappear()
  1292. for i = 0, 1, 0.1 do
  1293. swait()
  1294. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1295. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1296. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, -.5) * angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3)
  1297. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1298. RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1299. LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-140), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1300. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-10, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1301. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1302. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1303. end
  1304. so("Slash1", Handle, 1, 1.2)
  1305. for i = 0, 1, 0.1 do
  1306. swait()
  1307. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .5)
  1308. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(50)), .5)
  1309. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.5)
  1310. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  1311. RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(140), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1312. LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1313. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -5, -10) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1314. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1315. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1316. end
  1317. Disappear()
  1318. con1:disconnect()
  1319. con2:disconnect()
  1320. con3:disconnect()
  1321. con4:disconnect()
  1322. attack = false
  1323. end
  1324.  
  1325. local hovering = false
  1326.  
  1327. local Hover = false
  1328.  
  1329. local Animator = Humanoid.Animator
  1330.  
  1331. function OnHover()
  1332. so("Appear",Handle,1,1)
  1333. attack = true
  1334. Animator.Parent = nil
  1335. Character.Animate.Disabled = true
  1336. Hover = true
  1337. Humanoid.JumpPower = 0
  1338. Reappear()
  1339. attack = false
  1340. end
  1341.  
  1342. function OffHover()
  1343. so("Disappear",Handle,1,1)
  1344. attack = true
  1345. Animator.Parent = Humanoid
  1346. Character.Animate.Disabled = false
  1347. Hover = false
  1348. Humanoid.JumpPower = 50
  1349. Disappear()
  1350. attack = false
  1351. end
  1352.  
  1353. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  1354. for _,c in pairs(workspace:children()) do
  1355. local hum=c:findFirstChild("Humanoid")
  1356. if hum~=nil then
  1357. local head=c:findFirstChild("Torso")
  1358. if head~=nil then
  1359. local targ=head.Position-Part.Position
  1360. local mag=targ.magnitude
  1361. if mag<=magni and c.Name~=Player.Name then
  1362. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,"Hit1",1)
  1363. end
  1364. end
  1365. end
  1366. end
  1367. end
  1368.  
  1369. function CylinderEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1370. local prt=part(3,Character,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1371. prt.Anchored=true
  1372. prt.CFrame=cframe
  1373. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1374. game:GetService("Debris"):AddItem(prt,5)
  1375. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1376. end
  1377.  
  1378. RocketTarget = RootPart
  1379. function ShootCannon(asd)
  1380. local MainPos=asd.Position
  1381. local MainPos2=mouse.Hit.p
  1382. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  1383. num=30
  1384. coroutine.resume(coroutine.create(function()
  1385. repeat
  1386. wait()
  1387. local hit,pos = rayCast(MainPos,MouseLook.lookVector,10,RocketTarget.Parent)
  1388. local mag=(MainPos-pos).magnitude
  1389. CylinderEffect(BrickColor.new("Really red"),CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1.5,0,1.5,0.1)
  1390. MainPos=MainPos+(MouseLook.lookVector*10)
  1391. num=num-1
  1392. if hit~=nil then
  1393. num=0
  1394. local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Really red"),"Reference",vt())
  1395. ref.Anchored=true
  1396. ref.CFrame=cf(pos)
  1397. MagniDamage(ref,hit,5,30,50,1,"Normal")
  1398. game:GetService("Debris"):AddItem(ref,5)
  1399. end
  1400. until num<=0
  1401. end))
  1402. end
  1403.  
  1404. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1405. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1406. prt.Anchored = true
  1407. prt.CFrame = cframe
  1408. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1409. coroutine.resume(coroutine.create(function()
  1410. for i = 0, 1, 0.05 do
  1411. wait()
  1412. prt.Transparency = i
  1413. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1414. end
  1415. prt.Parent = nil
  1416. end))
  1417. end
  1418.  
  1419. function BlockEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1420. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  1421. prt.Anchored=true
  1422. prt.CFrame=cframe
  1423. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1424. game:GetService("Debris"):AddItem(prt,5)
  1425. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1426. end
  1427.  
  1428. function FireProjectiles()
  1429. attack = true
  1430. so("Appear",Handle,1,1)
  1431. Reappear()
  1432. for i = 0,1,0.1 do
  1433. swait()
  1434. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1435. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30), math.rad(0), math.rad(0)), .3)
  1436. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1437. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
  1438. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1439. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1440. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1441. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1442. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1443. end
  1444. Humanoid.WalkSpeed = 0
  1445. for i = 1,8 do
  1446. ShootCannon(Handle)
  1447. BlockEffect(BrickColor.new("Really red"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1448. so("Beam",Handle,1,1.5)
  1449. for i = 0,1,0.1 do
  1450. swait()
  1451. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1452. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1453. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(30)), 0.5)
  1454. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-30)), 0.5)
  1455. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1456. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1457. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
  1458. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1459. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1460. end
  1461. end
  1462. Disappear()
  1463. so("Disappear",Handle,1,1)
  1464. Humanoid.WalkSpeed = 16
  1465. attack = false
  1466. end
  1467.  
  1468. function EnergyBurst()
  1469. attack = true
  1470. so("Appear",Handle,1,1)
  1471. for i = 0,1,0.1 do
  1472. swait()
  1473. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1474. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1475. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1476. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1477. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(130), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1478. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1479. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(10, -4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1480. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1481. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1482. end
  1483. Reappear()
  1484. so("Slash1", Handle, 1, 1.2)
  1485. for i = 1,2 do
  1486. for i = 0,1,0.1 do
  1487. swait()
  1488. BlockEffect(BrickColor.new("Really red"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1489. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  1490. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  1491. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1492. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), 0.3)
  1493. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1494. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1495. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(15, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1496. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1497. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1498. end
  1499. end
  1500. Disappear()
  1501. so("Disappear",Handle,1,1)
  1502. so("Fire", Handle, 1, 1.2)
  1503. so("Fire", Handle, 1, .8)
  1504. MagniDamage(Handle,Handle,30,30,50,1,"Knockdown")
  1505. BlastEffect(BrickColor.new("Really red"), Handle.CFrame, .1, .1, .1, 1, 1, 1)
  1506. for i = 1,5 do
  1507. BlockEffect(BrickColor.new("Really red"),Handle.CFrame,1,1,1,5,5,5,0.05)
  1508. end
  1509. attack = false
  1510. end
  1511.  
  1512. function WaveEffect(Part,cframe1,cframe2,Damage,Size)
  1513. coroutine.resume(coroutine.create(function()
  1514. local wave=part(1,workspace,"Neon",0,0,BrickColor.new("Deep orange"),"Effect",vt(3,3,10))
  1515. wave.Anchored=true
  1516. wave.CFrame=Part.CFrame*cframe1
  1517. so("Beam",wave,1,1.3)
  1518. MagniDamage(wave,wave,10,10,30,1,"Normal")
  1519. local Msh = Create("SpecialMesh"){
  1520. Parent = wave,
  1521. MeshType = "Sphere"
  1522. }
  1523. BlockEffect(BrickColor.new("Really red"),wave.CFrame,1,1,1,3,3,3,0.05)
  1524. local PE1 = Create("ParticleEmitter"){
  1525. Parent = wave,
  1526. Color = ColorSequence.new(BrickColor.new("Really red").Color),
  1527. Transparency = NumberSequence.new(.5),
  1528. Size = NumberSequence.new(1),
  1529. Texture = "rbxassetid://249270319",
  1530. Lifetime = NumberRange.new(1),
  1531. Rate = 50,
  1532. VelocitySpread = 180,
  1533. Rotation = NumberRange.new(0),
  1534. Speed = NumberRange.new(5),
  1535. LightEmission = 1000,
  1536. }
  1537. for i=0,1,0.2 do
  1538. wait()
  1539. local dir = wave.CFrame.lookVector*-1
  1540. local pos = rayCast(wave.Position,dir,5,Character)
  1541. wave.CFrame=wave.CFrame*cframe2
  1542. Effects[#Effects+1]={wave,"Cylinder",0.01,.03,.03,.03}
  1543. end
  1544. end))
  1545. end
  1546.  
  1547. function Wave()
  1548. attack = true
  1549. Reappear()
  1550. so("Appear",Handle,1,.8)
  1551. for i = 1,3 do
  1552. for i = 0, 1, 0.1 do
  1553. swait()
  1554. BlockEffect(BrickColor.new("Really red"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1555. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1556. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1557. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1558. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1559. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1560. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1561. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  1562. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1563. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1564. end
  1565. end
  1566. so("Slash2",Handle,1,.4)
  1567. local inc=-10
  1568. for i=1,8 do
  1569. WaveEffect(Torso,CFrame.new(0,-5,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5)
  1570. inc=inc-7
  1571. end
  1572. for i = 1,2 do
  1573. for i = 0, 1, 0.1 do
  1574. swait()
  1575. BlockEffect(BrickColor.new("Really red"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1576. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  1577. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
  1578. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.5) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.5)
  1579. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-50)), 0.5)
  1580. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(10)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1581. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-10)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1582. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -10) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  1583. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1584. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1585. end
  1586. end
  1587. Disappear()
  1588. so("Disappear",Handle,1,.8)
  1589. attack = false
  1590. end
  1591.  
  1592. function LaserBarrage(Prt,Parent)
  1593. attack=true
  1594. --so("BeamLockon",Prt,1,1)
  1595. local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Really red"),"Effect",vt(5,5,5))
  1596. efprt.Anchored=true
  1597. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1598. local spread=vt(0,0,0)
  1599. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1600. game:GetService("Debris"):AddItem(Part,22)
  1601. local TheHit=mouse.Hit.p
  1602. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  1603. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  1604. so("Elec",Prt,0.2,1)
  1605. local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1606. tefprt.CFrame=cf(pos)
  1607. BlastEffect(BrickColor.new("Really red"),cf(pos),5,5,5,5,3,5,0.07)
  1608. MagicCircle(BrickColor.new("Really red"),cf(pos),5,5,5,5,3,5,0.04)
  1609. BlastEffect(BrickColor.new("Really red"),cf(pos),5,5,5,5,3,5,0.07)
  1610. so("Elec",tefprt,0.3,1)
  1611. game:GetService("Debris"):AddItem(tefprt,22)
  1612. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  1613. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1614. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1615. MagniDamage(efprt,efprt,math.huge,math.huge,math.huge,math.huge,1)
  1616. end
  1617. end
  1618. local mag=(Prt.Position-pos).magnitude
  1619. MagicCylinder(BrickColor.new("Really red"),Part.CFrame,1,mag*5,1,5,5,5,0.25)
  1620. Part.Parent=nil
  1621. end),efprt,efmsh,spread)
  1622. end
  1623.  
  1624. function SuperLaser()
  1625. attack = true
  1626. so("Appear",Handle,1,0.5)
  1627. Humanoid.WalkSpeed = 5
  1628. Reappear()
  1629. for i = 0,1,0.01 do
  1630. swait()
  1631. BlockEffect(BrickColor.new("Really red"),Handle.CFrame,0,0,0,.2,.2,.2,0.25)
  1632.  
  1633. local c = game.Players.LocalPlayer.Character
  1634. local radius = 10
  1635. local pos = Handle.CFrame
  1636. local clrz = {'Really black','Really red'};
  1637. for HAAA = 1, 10 do
  1638. for i = 1,1 do
  1639. local clr = clrz[math.random(1,#clrz)]
  1640. pos = Handle.CFrame
  1641. local p = Instance.new('Part',c)
  1642. local mafc,mafa = math.random(-100000,100000), math.random(-360000,360000)
  1643. p.CanCollide = false
  1644. p.FormFactor = 3
  1645. p.Size = Vector3.new(1,1,1)
  1646. local m = Instance.new('SpecialMesh',p)
  1647. m.MeshType = 'Brick'
  1648. spawn(function()
  1649. for i = 0,50 do
  1650. local int,int2 = .02,.02
  1651. m.Scale = m.Scale - Vector3.new(int,int,int)
  1652. p.Transparency = p.Transparency + int2
  1653. game:service'RunService'.RenderStepped:wait()
  1654. end
  1655. pcall(function()
  1656. p:Destroy()
  1657. end)
  1658. end)
  1659. p.BrickColor = BrickColor.new(clr)
  1660. p.Material = 'Neon'
  1661. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1662. local bp = Instance.new('BodyPosition',p)
  1663. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  1664. bp.D = 1000
  1665. bp.P = 10000
  1666. bp.Position = pos.p
  1667. game.Debris:AddItem(p,10)
  1668. end
  1669. end
  1670. wait(.1)
  1671. BlastEffect(BrickColor.new("Really red"),Handle.CFrame,0,0,0,.2,.2,.2,0.01)
  1672. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1673. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
  1674. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(50)), 0.5)
  1675. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-50)), 0.5)
  1676. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1677. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1678. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
  1679. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1680. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1681. end
  1682. Humanoid.WalkSpeed = 0
  1683. LaserBarrage(Handle,Character)
  1684. so("Beam",Handle,1,0.8)
  1685. for i = 0,1,0.05 do
  1686. swait()
  1687. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1688. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1689. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.2)
  1690. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.2)
  1691. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1692. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1693. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.2)
  1694. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.2)
  1695. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.2)
  1696. end
  1697. Disappear()
  1698. so("Disappear",Handle,1,.7)
  1699. Humanoid.WalkSpeed = 16
  1700. attack = false
  1701. end
  1702.  
  1703. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1704. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1705. prt.Anchored=true
  1706. prt.CFrame=cframe
  1707. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1708. game:GetService("Debris"):AddItem(prt,2)
  1709. coroutine.resume(coroutine.create(function(Part,Mesh)
  1710. for i=0,1,delay do
  1711. swait()
  1712. Part.CFrame=Part.CFrame
  1713. Part.Transparency=i
  1714. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1715. end
  1716. Part.Parent=nil
  1717. end),prt,msh)
  1718. end
  1719.  
  1720. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1721. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1722. prt.Anchored=true
  1723. prt.CFrame=cframe
  1724. prt.CanCollide = false
  1725. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1726. game:GetService("Debris"):AddItem(prt,2)
  1727. coroutine.resume(coroutine.create(function(Part,Mesh)
  1728. for i=0,1,delay do
  1729. swait()
  1730. Part.CFrame=Part.CFrame
  1731. Part.Transparency=i
  1732. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1733. end
  1734. Part.Parent=nil
  1735. end),prt,msh)
  1736. end
  1737.  
  1738. mouse.Button1Down:connect(function()
  1739. if attack == false and Hover == false and attacktype == 1 then
  1740. attacktype = 2
  1741. attackone()
  1742. elseif attack == false and Hover == false and attacktype == 2 then
  1743. attacktype = 3
  1744. attacktwo()
  1745. elseif attack == false and Hover == false and attacktype == 3 then
  1746. attacktype = 1
  1747. attackthree()
  1748. end
  1749. end)
  1750.  
  1751.  
  1752. function subtractEnergy(k)
  1753. if Energy>=k then
  1754. Energy=Energy-k
  1755. end
  1756. end
  1757.  
  1758. mouse.KeyDown:connect(function(k)
  1759. k = k:lower()
  1760. if attack == false and k == ' ' and Anim == "Jump" and Hover == false then
  1761. hovering = true
  1762. OnHover()
  1763. Humanoid.WalkSpeed = 30
  1764. PE2.Enabled = true
  1765. elseif attack == false and k == ' ' and Hover == true then
  1766. hovering = false
  1767. OffHover()
  1768. Humanoid.WalkSpeed = 16
  1769. PE2.Enabled = false
  1770. PE1.EmissionDirection = "Top"
  1771. elseif attack == false and k == 'q' and Hover == false and cooldown1 >= co1 and Energy>=skill1stam then
  1772. subtractEnergy(skill1stam)
  1773. cooldown1=0
  1774. FireProjectiles()
  1775. elseif attack == false and k == 'e' and Hover == false and cooldown2 >= co2 and Energy>=skill2stam then
  1776. subtractEnergy(skill2stam)
  1777. cooldown2=0
  1778. EnergyBurst()
  1779. elseif attack == false and k == 'r' and Hover == false and cooldown3 >= co3 and Energy>=skill3stam then
  1780. subtractEnergy(skill3stam)
  1781. cooldown3=0
  1782. Wave()
  1783. elseif attack == false and k == 'f' and Hover == false and cooldown4 >= co4 and Energy>=skill4stam then
  1784. subtractEnergy(skill4stam)
  1785. cooldown4=0
  1786. SuperLaser()
  1787. end
  1788. end)
  1789.  
  1790. function updateskills()
  1791. if cooldown1 <= co1 then
  1792. cooldown1 = cooldown1 + 1 / 30
  1793. end
  1794. if cooldown2 <= co2 then
  1795. cooldown2 = cooldown2 + 1 / 30
  1796. end
  1797. if cooldown3 <= co3 then
  1798. cooldown3 = cooldown3 + 1 / 30
  1799. end
  1800. if cooldown4 <= co4 then
  1801. cooldown4 = cooldown4 + 1 / 30
  1802. end
  1803. if Energy<=skill1stam then
  1804. bar4.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1805. else
  1806. bar4.BackgroundColor3=skillcolorscheme
  1807. end
  1808. if Energy<=skill2stam then
  1809. bar3.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1810. else
  1811. bar3.BackgroundColor3=skillcolorscheme
  1812. end
  1813. if Energy<=skill3stam then
  1814. bar1.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1815. else
  1816. bar1.BackgroundColor3=skillcolorscheme
  1817. end
  1818. if Energy<=skill4stam then
  1819. bar2.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1820. else
  1821. bar2.BackgroundColor3=skillcolorscheme
  1822. end
  1823. if Energy <= maxEnergy then
  1824. Energy = Energy + recovermana / 30
  1825. end
  1826. end
  1827.  
  1828. local sine = 0
  1829. local change = 1
  1830. local val = 0
  1831. local idle = 0
  1832. local donum = 0
  1833. local donum2 = 0
  1834.  
  1835. while true do
  1836. swait()
  1837. updateskills()
  1838. healthcover:TweenSize(UDim2.new(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  1839. Energycover:TweenSize(UDim2.new(1 * (Energy / maxEnergy), 0, 1, 0), 'Out', 'Quad', .5)
  1840. bar4:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  1841. bar3:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  1842. bar1:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  1843. bar2:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  1844. sine = sine + change
  1845. torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1846. velderp = RootPart.Velocity.y
  1847. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1848. if equipped == true or equipped == false then
  1849. if attack == false then
  1850. idle = idle + 1
  1851. else
  1852. idle = 0
  1853. end
  1854. if idle >= 500 then
  1855. if attack == false then
  1856. end
  1857. end
  1858. if donum2 >= .5 then
  1859. handidle = true
  1860. elseif donum2 <= 0 then
  1861. handidle = false
  1862. end
  1863. if handidle == false then
  1864. donum2 = donum2 + 0.003
  1865. else
  1866. donum2 = donum2 - 0.003
  1867. end
  1868. donum = donum + 0.003
  1869. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1870. Anim = "Jump"
  1871. if attack == false then
  1872. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1873. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1874. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1875. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1876. RH.C0 = clerp(RH.C0, cf(1, -.8, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1877. LH.C0 = clerp(LH.C0, cf(-1, -1, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1878. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1879. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1880. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1881. end
  1882. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1883. Anim = "Fall"
  1884. if attack == false then
  1885. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1886. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1887. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1888. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1889. RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1890. LH.C0 = clerp(LH.C0, cf(-1, -.9, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1891. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1892. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1893. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1894. elseif attack == false and Hover == true then
  1895. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1896. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1897. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1898. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1899. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1900. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
  1901. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1902. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1903. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1904. end
  1905. elseif torvel < 1 and hitfloor ~= nil then
  1906. Anim = "Idle"
  1907. change = 1
  1908. if attack == false and Hover == false then
  1909. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1910. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3)
  1911. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(-70)), 0.3)
  1912. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3)
  1913. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1914. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1915. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1916. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1917. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1918. elseif attack == false and Hover == true then
  1919. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1920. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1921. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1922. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1923. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1924. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
  1925. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1926. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1927. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1928. end
  1929. elseif torvel > 2 and hitfloor ~= nil then
  1930. Anim = "Walk"
  1931. if attack == false and Hover == false then
  1932. change = 1
  1933. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1934. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1935. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
  1936. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
  1937. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
  1938. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
  1939. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(20), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1940. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1941. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1942. elseif attack == false and Hover == true then
  1943. change = 1
  1944. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1945. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-15-3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1946. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1947. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1948. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1949. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1950. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1951. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .008, math.rad(0)), 0.3)
  1952. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .009, math.rad(0)), 0.3)
  1953. end
  1954. end
  1955. end
  1956. if #Effects > 0 then
  1957. for e = 1, #Effects do
  1958. if Effects[e] ~= nil then
  1959. local Thing = Effects[e]
  1960. if Thing ~= nil then
  1961. local Part = Thing[1]
  1962. local Mode = Thing[2]
  1963. local Delay = Thing[3]
  1964. local IncX = Thing[4]
  1965. local IncY = Thing[5]
  1966. local IncZ = Thing[6]
  1967. if Thing[1].Transparency <= 1 then
  1968. if Thing[2] == "Block1" then
  1969. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1970. Mesh = Thing[1].Mesh
  1971. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1972. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1973. elseif Thing[2] == "Cylinder" then
  1974. Mesh = Thing[1].Mesh
  1975. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1976. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1977. elseif Thing[2] == "Blood" then
  1978. Mesh = Thing[7]
  1979. Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
  1980. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1981. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1982. elseif Thing[2] == "Elec" then
  1983. Mesh = Thing[1].Mesh
  1984. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1985. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1986. elseif Thing[2] == "Disappear" then
  1987. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1988. end
  1989. else
  1990. Part.Parent = nil
  1991. table.remove(Effects, e)
  1992. end
  1993. end
  1994. end
  1995. end
  1996. end
  1997. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement