SHARE
TWEET

Test

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