Advertisement
13242

Untitled

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