Advertisement
13242

Untitled

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