Advertisement
Basykung7845

Test

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