Advertisement
memez

{fe} celestial wheel

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