Advertisement
ct201158

man88

Jul 19th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 135.96 KB | None | 0 0
  1. //made with starsmiler by oofer
  2. wait'0.5'
  3. local RealPlayer = script.Parent.Parent
  4. local FakeMouse = script.FakeMouse:Clone();
  5. FakeMouse.Parent = RealPlayer.Character;
  6. //made with starsmiler by oofer
  7. script.FakeMouse:Destroy()
  8. do
  9. local GUID = {}
  10. do
  11. GUID.IDs = {};
  12. function GUID:new(len)
  13. local id;
  14. if(not len)then
  15. id = (tostring(function() end))
  16. id = id:gsub("function: ","")
  17. else
  18. local function genID(len)
  19. local newID = ""
  20. for i = 1,len do
  21. newID = newID..string.char(math.random(48,90))
  22. end
  23. return newID
  24. end
  25. repeat id = genID(len) until not GUID.IDs[id]
  26. local oid = id;
  27. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  28. GUID.IDs[oid]=true;
  29. end
  30. return id
  31. end
  32. end
  33.  
  34. local AHB = Instance.new("BindableEvent")
  35.  
  36. local FPS = 30
  37. //made with starsmiler by oofer
  38. local TimeFrame = 0
  39.  
  40. local LastFrame = tick()
  41. local Frame = 1/FPS
  42.  
  43. game:service'RunService'.Heartbeat:connect(function(s,p)
  44. TimeFrame = TimeFrame + s
  45. if(TimeFrame >= Frame)then
  46. for i = 1,math.floor(TimeFrame/Frame) do
  47. AHB:Fire()
  48. end
  49. LastFrame=tick()
  50. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  51. end
  52. end)
  53.  
  54.  
  55. function swait(dur)
  56. if(dur == 0 or typeof(dur) ~= 'number')then
  57. AHB.Event:wait()
  58. else
  59. for i = 1, dur*FPS do
  60. AHB.Event:wait()
  61. end
  62. end
  63. end
  64.  
  65. local oPlayer = RealPlayer
  66. local Player = oPlayer
  67.  
  68. local loudnesses={}
  69. script.Parent = Player.Character
  70. local CoAS = {Actions={}}
  71. local Event = Instance.new("RemoteEvent")
  72. Event.Name = "UserInputEvent"
  73. Event.Parent = Player.Character
  74. local Func = Instance.new("RemoteFunction")
  75. Func.Name = "GetClientProperty"
  76. //made with starsmiler by oofer
  77. Func.Parent = Player.Character
  78. local fakeEvent = function()
  79. local t = {_fakeEvent=true,Waited={},Connected={}}
  80. t.Connect = function(self,f)
  81. local ft={}
  82. ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
  83. ft.Disconnect=ft.disconnect
  84.  
  85. ft.Func=function(...)
  86. for id,_ in next, t.Waited do
  87. t.Waited[id] = true
  88. end
  89. return f(...)
  90. end;
  91.  
  92. table.insert(self.Connected,ft)
  93. return ft;
  94. end
  95. t.connect = t.Connect
  96. t.Wait = function()
  97. local guid = GUID:new(25)
  98. local waitingId = guid:Get()
  99. t.Waited[waitingId]=false
  100. repeat swait() until t.Waited[waitingId]==true
  101. t.Waited[waitingId]=nil;
  102. guid:Trash()
  103. end
  104. t.wait = t.Wait
  105. return t
  106. end
  107. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  108. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  109. local Run = {RenderStepped=fakeEvent()}
  110. //made with starsmiler by oofer
  111. function CoAS:BindAction(name,fun,touch,...)
  112. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  113. end
  114. function CoAS:UnbindAction(name)
  115. CoAS.Actions[name] = nil
  116. end
  117. local function te(self,ev,...)
  118. local t = self[ev]
  119. if t and t._fakeEvent and t.Connected then
  120. for i,v in next, t.Connected do
  121. if(v.Func and not v.Disconnected)then
  122. v.Func(...)
  123. else
  124. t.Connected[i]=nil
  125. end
  126. end
  127. end
  128. end
  129. m.TrigEvent = te
  130. UsIS.TrigEvent = te
  131. Run.TrigEvent = te
  132. Event.OnServerEvent:Connect(function(plr,io)
  133. if plr~=Player then return end
  134. --[[table.foreach(io,print)
  135. print'---']]
  136. if io.Mouse then
  137. m.Target = io.Target
  138. m.Hit = io.Hit
  139. elseif io.KeyEvent then
  140. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  141. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  142. if io.UserInputState == Enum.UserInputState.Begin then
  143. m:TrigEvent("Button1Down")
  144. else
  145. //made with starsmiler by oofer
  146. m:TrigEvent("Button1Up")
  147. end
  148. end
  149. if(not io.KeyEvent and not io.Mouse)then
  150.  
  151. for n,t in pairs(CoAS.Actions) do
  152. for _,k in pairs(t.Keys) do
  153. if k==io.KeyCode then
  154. t.Function(t.Name,io.UserInputState,io)
  155. end
  156. end
  157. end
  158. if io.UserInputState == Enum.UserInputState.Begin then
  159. UsIS:TrigEvent("InputBegan",io,false)
  160. else
  161. UsIS:TrigEvent("InputEnded",io,false)
  162. end
  163. end
  164. end)
  165.  
  166. Func.OnServerInvoke = function(plr,inst,play)
  167. if plr~=Player then return end
  168. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  169. loudnesses[inst]=play
  170. end
  171. end
  172.  
  173. function GetClientProperty(inst,prop)
  174. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  175. return loudnesses[inst]
  176. elseif(prop == 'PlaybackLoudness')then
  177. return Func:InvokeClient(Player,'RegSound',inst)
  178. end
  179. return Func:InvokeClient(Player,inst,prop)
  180. end
  181. local oldGame = game;
  182. local oldPlayer = Player;
  183. local fakePlayer = newproxy(true)
  184. getmetatable(fakePlayer).__index = function(s,i)
  185. if(i == 'GetMouse')then
  186. return function() return m; end
  187. end
  188. return Player[i]
  189. end
  190. getmetatable(fakePlayer).__newindex = function(s,i,v)
  191. Player[i]=v
  192. end
  193. getmetatable(fakePlayer).__call=function(self,...)
  194. if(self == fakePlayer)then self = Player end
  195. local wh = {...}
  196. local name = table.remove(wh,1)
  197. for i,v in next, wh do
  198. wh[i]=v
  199. end
  200. if(name == 'GetMouse')then
  201. return m;
  202. end
  203. return self(name,unpack(wh))
  204. end
  205. getmetatable(fakePlayer).__namecall=function(self,...)
  206. if(self == fakePlayer)then self = Player end
  207. local tuple={...}
  208. local name = table.remove(tuple,#tuple)
  209.  
  210. if(name == 'GetMouse')then
  211. return m;
  212. else
  213. return self[name](self,unpack(tuple))
  214. end
  215. end
  216. local oll = LoadLibrary;
  217. function LoadLibrary(libtard)
  218. local libtarddestroyed=oll(libtard)
  219. if(libtard=='RbxUtility')then
  220. local library={Create=function(obj)
  221. local inst = Instance.new(obj)
  222. return function(props)
  223. for prop,valu in next, props do
  224. inst[prop]=valu
  225. end
  226. return inst
  227. end
  228. end}
  229. setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
  230.  
  231. return library
  232. else
  233. return libtarddestroyed
  234. end
  235. end
  236. local function GetService(s,i)
  237. local service = s:GetService(i)
  238. if(i == 'Players')then
  239. local oldService = service;
  240. local fakeService = newproxy(true)
  241. getmetatable(fakeService).__index = function(s,i)
  242. if(s == fakeService)then s=oldService end
  243. if(i == 'LocalPlayer' or i == 'localPlayer')then
  244. return fakePlayer
  245. elseif(i == 'oPlayer')then
  246. return oPlayer
  247. else
  248. return s[i]
  249. end
  250. end
  251. getmetatable(fakeService).__newindex = function(s,i,v)
  252. if(s == fakeService)then s=oldService end
  253. s[i]=v
  254. end
  255. getmetatable(fakeService).__call=function(self,...)
  256. if(self == fakeService)then self = oldService end
  257. local wh = {...}
  258. local name = table.remove(wh,1)
  259. for i,v in next, wh do
  260. wh[i]=v
  261. end
  262. return self(name,unpack(wh))
  263. end
  264. getmetatable(fakeService).__namecall=function(self,...)
  265. if(self == fakeService)then self = oldService end
  266. local tuple={...}
  267. local name = table.remove(tuple,#tuple)
  268.  
  269. return self[name](self,unpack(tuple))
  270. end
  271. getmetatable(fakeService).__metatable = 'gay'
  272. return fakeService
  273. elseif(i == 'RunService')then
  274. local oldService = service;
  275. local fakeService = newproxy(true)
  276. getmetatable(fakeService).__index = function(s,i)
  277. if(s == fakeService)then s=oldService end
  278. return Run[i] or s[i]
  279. end
  280. getmetatable(fakeService).__newindex = function(s,i,v)
  281. if(s == fakeService)then s=oldService end
  282. s[i]=v
  283. end
  284. getmetatable(fakeService).__call=function(self,...)
  285. if(self == fakeService)then self = oldService end
  286. local wh = {...}
  287. local name = table.remove(wh,1)
  288. for i,v in next, wh do
  289. wh[i]=v
  290. end
  291. return self(name,unpack(wh))
  292. end
  293. getmetatable(fakeService).__namecall=function(self,...)
  294. if(self == fakeService)then self = oldService end
  295. local tuple={...}
  296. local name = table.remove(tuple,#tuple)
  297.  
  298. return self[name](self,unpack(tuple))
  299. end
  300. getmetatable(fakeService).__metatable = 'gay'
  301. return fakeService
  302. elseif(i == 'UserInputService')then
  303. return UsIS
  304. elseif(i == 'ContextActionService')then
  305. return CoAS;
  306. else
  307. return service
  308. end
  309. end
  310.  
  311. local new = Instance.new;
  312. Instance = {}
  313. Instance.new = function(inst,obje)
  314. local lp = GetService(oldGame,'Players').localPlayer
  315. local instance = new(inst)
  316. if(inst=='ObjectValue')then
  317. local fake = newproxy(true)
  318. getmetatable(fake).__index=function(self,index)
  319. if(self==fake)then self=instance end
  320. return self[index]
  321. end
  322. getmetatable(fake).__newindex=function(self,index,value)
  323. if(self==fake)then self=instance end
  324. if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then
  325. self[index]=oPlayer
  326. else
  327. self[index]=value
  328. end
  329. end
  330. getmetatable(fake).__call=function(self,...)
  331. if(self == fake)then self = instance end
  332. local wh = {...}
  333. local name = table.remove(wh,1)
  334. for i,v in next, wh do
  335. if(v == fake)then v = instance end
  336. wh[i]=v
  337. end
  338. return self(name,unpack(wh))
  339. end
  340. getmetatable(fake). __namecall=function(self,...)
  341. if(self == fake)then self = instance end
  342. local tuple={...}
  343. local name = table.remove(tuple,#tuple)
  344. return self[name](self,unpack(tuple))
  345. end
  346. return fake
  347. else
  348. instance.Parent = obje
  349. return instance;
  350. end
  351.  
  352. end
  353. local serviceFunctions={
  354. service=true,
  355. GetService=true,file:
  356. }
  357. local fakeGame = newproxy(true)
  358. getmetatable(fakeGame).__index = function(s,i)
  359. if(s == fakeGame)then s=oldGame end
  360. local serv = GetService(oldGame,i)
  361. if serviceFunctions[i] then
  362. return GetService
  363. elseif(serv)then
  364. return serv
  365. else
  366. return s[i]
  367. end
  368. end
  369. getmetatable(fakeGame).__newindex = function(s,i,v)
  370. if(s == fakeGame)then s=oldGame end
  371. s[i]=v
  372. end
  373. getmetatable(fakeGame).__call=function(self,...)
  374. if(self == fakeGame)then self = oldGame end
  375. local wh = {...}
  376. local name = table.remove(wh,1)
  377. for i,v in next, wh do
  378. if(v == fakeGame)then v = oldGame end
  379. wh[i]=v
  380. end
  381. if serviceFunctions[name] then
  382. return GetService(self,unpack(wh))
  383. else
  384. return self(name,unpack(wh))
  385. end
  386. end
  387. getmetatable(fakeGame). __namecall=function(self,...)
  388. if(self == fakeGame)then self = oldGame end
  389. local tuple={...}
  390. local name = table.remove(tuple,#tuple)
  391.  
  392. local funcToCall=self[name]
  393.  
  394. if serviceFunctions[name] then
  395. return GetService(self,unpack(tuple))
  396. else
  397. return self[name](self,unpack(tuple))
  398. end
  399. end
  400. getmetatable(fakeGame).__metatable = 'gay'
  401.  
  402. coroutine.wrap(function()
  403. while true do
  404. Run:TrigEvent('RenderStepped')
  405. swait()
  406. end
  407. end)()
  408. game=fakeGame
  409. UserInputService,ContextActionService = UsIS,CoAS
  410. end
  411.  
  412. OwO=require(script.coolstuff)
  413. Mouse,mouse,UserInputService,ToolFunction,GuiWire,RenderStepped,Player=OwO,OwO,OwO,OwO,OwO,OwO.RenderStepped,OwO.LocalPlayer
  414. --My Converter oh yeah yeah
  415. local player = Player
  416. --[[ Leaked by CLarramore ]]--
  417. -- Ever since 3/10/2016 this script started to get popular in oxcool1's SB
  418. -- I am now spreading this on
  419. -- You can now make ur edits with this
  420. -- ENTIRELY OPEN SOURCED!!!! YAY!
  421.  
  422. -- NightOwlAce dont kill me
  423. Player=game:GetService("Players").LocalPlayer
  424. Character=Player.Character
  425. PlayerGui=Player.PlayerGui
  426. Backpack=Player.Backpack
  427. Torso=Character.Torso
  428. Head=Character.Head
  429. Humanoid=Character.Humanoid
  430. m=Instance.new('Model',Character)
  431. LeftArm=Character["Left Arm"]
  432. LeftLeg=Character["Left Leg"]
  433. RightArm=Character["Right Arm"]
  434. RightLeg=Character["Right Leg"]
  435. LS=Torso["Left Shoulder"]
  436. LH=Torso["Left Hip"]
  437. RS=Torso["Right Shoulder"]
  438. RH=Torso["Right Hip"]
  439. Face = Head.face
  440. Neck=Torso.Neck
  441. it=Instance.new
  442. attacktype=1
  443. vt=Vector3.new
  444. cf=CFrame.new
  445. euler=CFrame.fromEulerAnglesXYZ
  446. angles=CFrame.Angles
  447. cloaked=false
  448. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  449. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  450. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  451. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  452. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  453. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  454. RootPart=Character.HumanoidRootPart
  455. RootJoint=RootPart.RootJoint
  456. RootCF=euler(-1.57,0,3.14)
  457. attack = false
  458. attackdebounce = false
  459. deb=false
  460. equipped=true
  461. hand=false
  462. MMouse=nil
  463. combo=0
  464. mana=0
  465. trispeed=1
  466. pathtrans=.7
  467. attackmode='none'
  468. local idle=0
  469. local Anim="Idle"
  470. local Effects={}
  471. local gun=false
  472. local shoot=false
  473. player=nil
  474. cloak=false
  475. lightcolor='Bright blue'
  476.  
  477. local Color1=Torso.BrickColor
  478.  
  479. local fengui=it("GuiMain")
  480. fengui.Parent=Player.PlayerGui
  481. fengui.Name="WeaponGUI"
  482. local fenframe=it("Frame")
  483. fenframe.Parent=fengui
  484. fenframe.BackgroundColor3=Color3.new(255,255,255)
  485. fenframe.BackgroundTransparency=1
  486. fenframe.BorderColor3=Color3.new(17,17,17)
  487. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  488. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  489. local fenbarmana1=it("TextLabel")
  490. fenbarmana1.Parent=fenframe
  491. fenbarmana1.Text=" "
  492. fenbarmana1.BackgroundTransparency=0
  493. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  494. fenbarmana1.SizeConstraint="RelativeXY"
  495. fenbarmana1.TextXAlignment="Center"
  496. fenbarmana1.TextYAlignment="Center"
  497. fenbarmana1.Position=UDim2.new(0,0,0,0)
  498. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  499. local fenbarmana2=it("TextLabel")
  500. fenbarmana2.Parent=fenframe
  501. fenbarmana2.Text=" "
  502. fenbarmana2.BackgroundTransparency=0
  503. fenbarmana2.BackgroundColor3=Torso.Color
  504. fenbarmana2.SizeConstraint="RelativeXY"
  505. fenbarmana2.TextXAlignment="Center"
  506. fenbarmana2.TextYAlignment="Center"
  507. fenbarmana2.Position=UDim2.new(0,0,0,0)
  508. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  509. local fenbarmana3=it("TextLabel")
  510. fenbarmana3.Parent=fenframe
  511. fenbarmana3.Text=" "
  512. fenbarmana3.BackgroundTransparency=0
  513. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  514. fenbarmana3.SizeConstraint="RelativeXY"
  515. fenbarmana3.TextXAlignment="Center"
  516. fenbarmana3.TextYAlignment="Center"
  517. fenbarmana3.Position=UDim2.new(0,0,0,0)
  518. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  519. local fenbarmana4=it("TextLabel")
  520. fenbarmana4.Parent=fenframe
  521. fenbarmana4.Text="Energy("..mana..")"
  522. fenbarmana4.BackgroundTransparency=1
  523. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  524. fenbarmana4.SizeConstraint="RelativeXY"
  525. fenbarmana4.TextXAlignment="Center"
  526. fenbarmana4.TextYAlignment="Center"
  527. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  528. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  529. fenbarmana4.FontSize="Size9"
  530. fenbarmana4.TextStrokeTransparency=0
  531. fenbarmana4.TextColor=BrickColor.new("White")
  532.  
  533. mouse=Player:GetMouse()
  534. --save shoulders
  535. RSH, LSH=nil, nil
  536. --welds
  537. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  538. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  539. LH=Torso["Left Hip"]
  540. RH=Torso["Right Hip"]
  541. TorsoColor=Torso.BrickColor
  542. function NoOutline(Part)
  543. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  544. end
  545. player=Player
  546. ch=Character
  547. RSH=ch.Torso["Right Shoulder"]
  548. LSH=ch.Torso["Left Shoulder"]
  549. --
  550. RSH.Parent=nil
  551. LSH.Parent=nil
  552. --
  553. RW.Name="Right Shoulder"
  554. RW.Part0=ch.Torso
  555. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  556. RW.C1=cf(0, 0.5, 0)
  557. RW.Part1=ch["Right Arm"]
  558. RW.Parent=ch.Torso
  559. --
  560. LW.Name="Left Shoulder"
  561. LW.Part0=ch.Torso
  562. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  563. LW.C1=cf(0, 0.5, 0)
  564. LW.Part1=ch["Left Arm"]
  565. LW.Parent=ch.Torso
  566.  
  567. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  568. local fp=it("Part")
  569. fp.formFactor=formfactor
  570. fp.Parent=parent
  571. fp.Reflectance=reflectance
  572. fp.Transparency=transparency
  573. fp.CanCollide=false
  574. fp.Locked=true
  575. fp.BrickColor=brickcolor
  576. fp.Name=name
  577. fp.Size=size
  578. fp.Position=Torso.Position
  579. NoOutline(fp)
  580. fp.Material="Neon"
  581. fp:BreakJoints()
  582. return fp
  583. end
  584.  
  585. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  586. local mesh=it(Mesh)
  587. mesh.Parent=part
  588. if Mesh=="SpecialMesh" then
  589. mesh.MeshType=meshtype
  590. if meshid~="nil" then
  591. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  592. end
  593. end
  594. mesh.Offset=offset
  595. mesh.Scale=scale
  596. return mesh
  597. end
  598.  
  599. function weld(parent,part0,part1,c0)
  600. local weld=it("Weld")
  601. weld.Parent=parent
  602. weld.Part0=part0
  603. weld.Part1=part1
  604. weld.C0=c0
  605. return weld
  606. end
  607.  
  608. local Color1=Torso.BrickColor
  609.  
  610. local bodvel=Instance.new("BodyVelocity")
  611. local bg=Instance.new("BodyGyro")
  612.  
  613. function swait(num)
  614. if num==0 or num==nil then
  615. game:service'RunService'.Stepped:wait(0)
  616. else
  617. for i=0,num do
  618. game:service'RunService'.Stepped:wait(0)
  619. end
  620. end
  621. end
  622.  
  623.  
  624. so = function(id,par,vol,pit)
  625. coroutine.resume(coroutine.create(function()
  626. local sou = Instance.new("Sound",par or workspace)
  627. sou.Volume=vol
  628. sou.Pitch=pit or 1
  629. sou.SoundId=id
  630. swait()
  631. sou:play()
  632. game:GetService("Debris"):AddItem(sou,6)
  633. end))
  634. end
  635.  
  636. function clerp(a,b,t)
  637. local qa = {QuaternionFromCFrame(a)}
  638. local qb = {QuaternionFromCFrame(b)}
  639. local ax, ay, az = a.x, a.y, a.z
  640. local bx, by, bz = b.x, b.y, b.z
  641. local _t = 1-t
  642. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  643. end
  644.  
  645. function QuaternionFromCFrame(cf)
  646. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  647. local trace = m00 + m11 + m22
  648. if trace > 0 then
  649. local s = math.sqrt(1 + trace)
  650. local recip = 0.5/s
  651. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  652. else
  653. local i = 0
  654. if m11 > m00 then
  655. i = 1
  656. end
  657. if m22 > (i == 0 and m00 or m11) then
  658. i = 2
  659. end
  660. if i == 0 then
  661. local s = math.sqrt(m00-m11-m22+1)
  662. local recip = 0.5/s
  663. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  664. elseif i == 1 then
  665. local s = math.sqrt(m11-m22-m00+1)
  666. local recip = 0.5/s
  667. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  668. elseif i == 2 then
  669. local s = math.sqrt(m22-m00-m11+1)
  670. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  671. end
  672. end
  673. end
  674.  
  675. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  676. local xs, ys, zs = x + x, y + y, z + z
  677. local wx, wy, wz = w*xs, w*ys, w*zs
  678. local xx = x*xs
  679. local xy = x*ys
  680. local xz = x*zs
  681. local yy = y*ys
  682. local yz = y*zs
  683. local zz = z*zs
  684. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  685. end
  686.  
  687. function QuaternionSlerp(a, b, t)
  688. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  689. local startInterp, finishInterp;
  690. if cosTheta >= 0.0001 then
  691. if (1 - cosTheta) > 0.0001 then
  692. local theta = math.acos(cosTheta)
  693. local invSinTheta = 1/math.sin(theta)
  694. startInterp = math.sin((1-t)*theta)*invSinTheta
  695. finishInterp = math.sin(t*theta)*invSinTheta
  696. else
  697. startInterp = 1-t
  698. finishInterp = t
  699. end
  700. else
  701. if (1+cosTheta) > 0.0001 then
  702. local theta = math.acos(-cosTheta)
  703. local invSinTheta = 1/math.sin(theta)
  704. startInterp = math.sin((t-1)*theta)*invSinTheta
  705. finishInterp = math.sin(t*theta)*invSinTheta
  706. else
  707. startInterp = t-1
  708. finishInterp = t
  709. end
  710. end
  711. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  712. end
  713.  
  714. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  715. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  716. end
  717.  
  718. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  719. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  720. prt.Anchored=true
  721. prt.CFrame=cframe
  722. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  723. --http://www.roblox.com/asset/?id=4770560
  724. game:GetService("Debris"):AddItem(prt,2)
  725. CF=prt.CFrame
  726. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  727. for i=0,1,0.2 do
  728. wait()
  729. Part.CFrame=CF*cf(0,0,-0.4)
  730. end
  731. for i=0,1,delay do
  732. wait()
  733. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  734. Mesh.Scale=Mesh.Scale
  735. end
  736. for i=0,1,0.1 do
  737. wait()
  738. Part.Transparency=i
  739. end
  740. Part.Parent=nil
  741. end),prt,msh,CF)
  742. end
  743.  
  744. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  745. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  746. prt.Anchored=true
  747. prt.CFrame=cframe
  748. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  749. game:GetService("Debris"):AddItem(prt,5)
  750. coroutine.resume(coroutine.create(function(Part,Mesh)
  751. for i=0,1,delay do
  752. wait()
  753. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  754. Part.Transparency=i
  755. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  756. end
  757. Part.Parent=nil
  758. end),prt,msh)
  759. end
  760.  
  761. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  762. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  763. prt.Anchored=false
  764. prt.CFrame=cframe
  765. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  766. local wld=weld(prt,prt,Parent,cframe)
  767. game:GetService("Debris"):AddItem(prt,5)
  768. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  769. for i=0,1,delay do
  770. wait()
  771. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  772. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  773. Part.Transparency=i
  774. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  775. end
  776. Part.Parent=nil
  777. end),prt,msh,wld)
  778. end
  779.  
  780. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  781. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  782. prt.Anchored=false
  783. prt.CFrame=cframe
  784. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  785. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  786. game:GetService("Debris"):AddItem(prt,5)
  787. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  788. for i=0,1,delay do
  789. wait()
  790. Weld.C0=euler(i*20,0,0)
  791. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  792. Part.Transparency=i
  793. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  794. end
  795. Part.Parent=nil
  796. end),prt,msh,wld)
  797. end
  798.  
  799. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  800. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  801. prt.Anchored=true
  802. prt.CFrame=cframe
  803. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  804. game:GetService("Debris"):AddItem(prt,2)
  805. coroutine.resume(coroutine.create(function(Part,Mesh)
  806. for i=0,1,delay do
  807. wait()
  808. Part.CFrame=Part.CFrame
  809. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  810. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  811. prt2.Anchored=true
  812. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  813. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  814. game:GetService("Debris"):AddItem(prt2,2)
  815. coroutine.resume(coroutine.create(function(Part,Mesh)
  816. for i=0,1,0.1 do
  817. wait()
  818. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  819. end
  820. Part.Parent=nil
  821. end),prt2,msh2)
  822. end
  823. for i=0,1,delay*2 do
  824. wait()
  825. Part.CFrame=Part.CFrame
  826. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  827. end
  828. Part.Parent=nil
  829. end),prt,msh)
  830. end
  831.  
  832. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  833. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  834. prt.Anchored=true
  835. prt.CFrame=cframe
  836. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  837. game:GetService("Debris"):AddItem(prt,2)
  838. coroutine.resume(coroutine.create(function(Part,Mesh)
  839. for i=0,1,delay do
  840. wait()
  841. Part.CFrame=Part.CFrame
  842. Part.Transparency=i
  843. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  844. end
  845. Part.Parent=nil
  846. end),prt,msh)
  847. end
  848.  
  849. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  850. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  851. prt.Anchored=true
  852. prt.CFrame=cframe*euler(x2,y2,z2)
  853. --"http://www.roblox.com/asset/?id=168892465"
  854. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  855. game:GetService("Debris"):AddItem(prt,2)
  856. coroutine.resume(coroutine.create(function(Part,Mesh)
  857. for i=0,1,0.03 do
  858. wait()
  859. Part.CFrame=Part.CFrame
  860. Part.Transparency=i
  861. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  862. end
  863. Part.Parent=nil
  864. end),prt,msh)
  865. end
  866.  
  867. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  868. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  869. prt.Anchored=true
  870. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  871. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  872. game:GetService("Debris"):AddItem(prt,2)
  873. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  874. CF=Part.CFrame
  875. Numbb=0
  876. randnumb=math.random()/10
  877. rand1=math.random()/10
  878. for i=0,1,rand1 do
  879. wait()
  880. CF=CF*cf(0,math.random()/2,0)
  881. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  882. Part.CFrame=CF*euler(Numbb,0,0)
  883. Part.Transparency=i
  884. Numbb=Numbb+randnumb
  885. end
  886. Part.Parent=nil
  887. end),prt,CF,Numbb,randnumb)
  888. end
  889.  
  890. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  891. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  892. prt.Anchored=true
  893. prt.CFrame=cframe
  894. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  895. game:GetService("Debris"):AddItem(prt,5)
  896. coroutine.resume(coroutine.create(function(Part,Mesh)
  897. for i=0,1,delay do
  898. wait()
  899. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  900. Part.Transparency=i
  901. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  902. end
  903. Part.Parent=nil
  904. end),prt,msh)
  905. end
  906.  
  907. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  908. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  909. prt.Anchored=true
  910. prt.CFrame=cframe
  911. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  912. game:GetService("Debris"):AddItem(prt,2)
  913. coroutine.resume(coroutine.create(function(Part,Mesh)
  914. for i=0,1,delay do
  915. wait()
  916. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  917. Part.Transparency=i
  918. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  919. end
  920. Part.Parent=nil
  921. end),prt,msh)
  922. end
  923.  
  924. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  925. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  926. prt.Anchored=true
  927. prt.CFrame=cframe*cf(x,y,z)
  928. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  929. game:GetService("Debris"):AddItem(prt,5)
  930. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  931. local num=math.random()
  932. local num2=math.random(-3,2)+math.random()
  933. local numm=0
  934. for i=0,1,delay*2 do
  935. swait()
  936. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  937. Part.Transparency=i
  938. numm=numm+0.01
  939. end
  940. Part.Parent=nil
  941. Mesh.Parent=nil
  942. end),prt,msh,x,y,z)
  943. end
  944.  
  945. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  946. if hit.Parent==nil then
  947. return
  948. end
  949. h=hit.Parent:FindFirstChild("Humanoid")
  950. for _,v in pairs(hit.Parent:children()) do
  951. if v:IsA("Humanoid") then
  952. h=v
  953. end
  954. end
  955. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  956. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  957. end
  958. if hit.Parent.className=="Hat" then
  959. hit=hit.Parent.Parent:findFirstChild("Head")
  960. end
  961. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  962. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  963. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  964. return
  965. end]]
  966. -- hs(hit,1.2)
  967. c=Instance.new("ObjectValue")
  968. c.Name="creator"
  969. c.Value=game:service("Players").LocalPlayer
  970. c.Parent=h
  971. game:GetService("Debris"):AddItem(c,.5)
  972. Damage=math.random(minim,maxim)
  973. -- h:TakeDamage(Damage)
  974. blocked=false
  975. block=hit.Parent:findFirstChild("Block")
  976. if block~=nil then
  977. print(block.className)
  978. if block.className=="NumberValue" then
  979. if block.Value>0 then
  980. blocked=true
  981. if decreaseblock==nil then
  982. block.Value=block.Value-1
  983. end
  984. end
  985. end
  986. if block.className=="IntValue" then
  987. if block.Value>0 then
  988. blocked=true
  989. if decreaseblock~=nil then
  990. block.Value=block.Value-1
  991. end
  992. end
  993. end
  994. end
  995. if blocked==false then
  996. -- h:TakeDamage(Damage)
  997. h.Health=h.Health-Damage
  998. showDamage(hit.Parent,Damage,.5,TorsoColor)
  999. else
  1000. h.Health=h.Health-(Damage/2)
  1001. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1002. end
  1003. if Type=="Knockdown" then
  1004. hum=hit.Parent.Humanoid
  1005. hum.PlatformStand=true
  1006. coroutine.resume(coroutine.create(function(HHumanoid)
  1007. swait(1)
  1008. HHumanoid.PlatformStand=false
  1009. end),hum)
  1010. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1011. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1012. local bodvol=Instance.new("BodyVelocity")
  1013. bodvol.velocity=angle*knockback
  1014. bodvol.P=5000
  1015. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1016. bodvol.Parent=hit
  1017. rl=Instance.new("BodyAngularVelocity")
  1018. rl.P=3000
  1019. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1020. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1021. rl.Parent=hit
  1022. game:GetService("Debris"):AddItem(bodvol,.5)
  1023. game:GetService("Debris"):AddItem(rl,.5)
  1024. elseif Type=="Normal" then
  1025. vp=Instance.new("BodyVelocity")
  1026. vp.P=500
  1027. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1028. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1029. if KnockbackType==1 then
  1030. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1031. elseif KnockbackType==2 then
  1032. vp.velocity=Property.CFrame.lookVector*knockback
  1033. end
  1034. if knockback>0 then
  1035. vp.Parent=hit.Parent.Torso
  1036. end
  1037. game:GetService("Debris"):AddItem(vp,.5)
  1038. elseif Type=="Up" then
  1039. local bodyVelocity=Instance.new("BodyVelocity")
  1040. bodyVelocity.velocity=vt(0,10,0)
  1041. bodyVelocity.P=1000
  1042. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  1043. bodyVelocity.Parent=hit
  1044. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1045. rl=Instance.new("BodyAngularVelocity")
  1046. rl.P=3000
  1047. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1048. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1049. rl.Parent=hit
  1050. game:GetService("Debris"):AddItem(rl,.5)
  1051. elseif Type=="Snare" then
  1052. bp=Instance.new("BodyPosition")
  1053. bp.P=2000
  1054. bp.D=100
  1055. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1056. bp.position=hit.Parent.Torso.Position
  1057. bp.Parent=hit.Parent.Torso
  1058. game:GetService("Debris"):AddItem(bp,1)
  1059. elseif Type=="Target" then
  1060. if Targetting==false then
  1061. ZTarget=hit.Parent.Torso
  1062. coroutine.resume(coroutine.create(function(Part)
  1063. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1064. swait(5)
  1065. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1066. end),ZTarget)
  1067. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1068. targetgui=Instance.new("BillboardGui")
  1069. targetgui.Parent=ZTarget
  1070. targetgui.Size=UDim2.new(10,100,10,100)
  1071. targ=Instance.new("ImageLabel")
  1072. targ.Parent=targetgui
  1073. targ.BackgroundTransparency=1
  1074. targ.Image="rbxassetid://4834067"
  1075. targ.Size=UDim2.new(1,0,1,0)
  1076. cam.CameraType="Scriptable"
  1077. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1078. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1079. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1080. Targetting=true
  1081. RocketTarget=ZTarget
  1082. for i=1,Property do
  1083. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1084. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1085. swait()
  1086. end
  1087. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1088. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1089. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1090. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1091. end
  1092. Targetting=false
  1093. RocketTarget=nil
  1094. targetgui.Parent=nil
  1095. cam.CameraType="Custom"
  1096. end
  1097. end
  1098. debounce=Instance.new("BoolValue")
  1099. debounce.Name="DebounceHit"
  1100. debounce.Parent=hit.Parent
  1101. debounce.Value=true
  1102. game:GetService("Debris"):AddItem(debounce,Delay)
  1103. c=Instance.new("ObjectValue")
  1104. c.Name="creator"
  1105. c.Value=Player
  1106. c.Parent=h
  1107. game:GetService("Debris"):AddItem(c,.5)
  1108. CRIT=false
  1109. hitDeb=true
  1110. AttackPos=6
  1111. end
  1112. end
  1113.  
  1114. showDamage=function(Char,Dealt,du,Color)
  1115. m=Instance.new("Model")
  1116. m.Name=tostring(Dealt)
  1117. h=Instance.new("Humanoid")
  1118. h.Health=0
  1119. h.MaxHealth=0
  1120. h.Parent=m
  1121. c=Instance.new("Part")
  1122. c.Transparency=0
  1123. c.BrickColor=TorsoColor
  1124. c.Name="Head"
  1125. c.TopSurface=0
  1126. c.BottomSurface=0
  1127. c.formFactor="Plate"
  1128. c.Size=Vector3.new(1,.4,1)
  1129. ms=Instance.new("CylinderMesh")
  1130. ms.Scale=Vector3.new(.8,.8,.8)
  1131. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  1132. if CRIT==true then
  1133. ms.Scale=Vector3.new(1,1.25,1)
  1134. end
  1135. ms.Parent=c
  1136. c.Reflectance=0
  1137. Instance.new("BodyGyro").Parent=c
  1138. c.Parent=m
  1139. if Char:findFirstChild("Head")~=nil then
  1140. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1141. elseif Char.Parent:findFirstChild("Head")~=nil then
  1142. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1143. end
  1144. f=Instance.new("BodyPosition")
  1145. f.P=2000
  1146. f.D=100
  1147. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1148. f.position=c.Position+Vector3.new(0,3,0)
  1149. f.Parent=c
  1150. game:GetService("Debris"):AddItem(m,.5+du)
  1151. c.CanCollide=false
  1152. m.Parent=workspace
  1153. c.CanCollide=false
  1154. end
  1155.  
  1156. Player=game:GetService('Players').LocalPlayer
  1157. Character=Player.Character
  1158. Mouse=Player:GetMouse()
  1159. m=Instance.new('Model',Character)
  1160.  
  1161.  
  1162. local function weldBetween(a, b)
  1163. local weldd = Instance.new("ManualWeld")
  1164. weldd.Part0 = a
  1165. weldd.Part1 = b
  1166. weldd.C0 = CFrame.new()
  1167. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1168. weldd.Parent = a
  1169. return weldd
  1170. end
  1171.  
  1172. it=Instance.new
  1173.  
  1174. function nooutline(part)
  1175. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1176. end
  1177.  
  1178. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1179. local fp=it("Part")
  1180. fp.formFactor=formfactor
  1181. fp.Parent=parent
  1182. fp.Reflectance=reflectance
  1183. fp.Transparency=transparency
  1184. fp.CanCollide=false
  1185. fp.Locked=true
  1186. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1187. fp.Name=name
  1188. fp.Size=size
  1189. fp.Position=Character.Torso.Position
  1190. nooutline(fp)
  1191. fp.Material=material
  1192. fp:BreakJoints()
  1193. return fp
  1194. end
  1195.  
  1196. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1197. local mesh=it(Mesh)
  1198. mesh.Parent=part
  1199. if Mesh=="SpecialMesh" then
  1200. mesh.MeshType=meshtype
  1201. mesh.MeshId=meshid
  1202. end
  1203. mesh.Offset=offset
  1204. mesh.Scale=scale
  1205. return mesh
  1206. end
  1207.  
  1208. function weld(parent,part0,part1,c0,c1)
  1209. local weld=it("Weld")
  1210. weld.Parent=parent
  1211. weld.Part0=part0
  1212. weld.Part1=part1
  1213. weld.C0=c0
  1214. weld.C1=c1
  1215. return weld
  1216. end
  1217.  
  1218. local modelzorz=Instance.new("Model")
  1219. modelzorz.Parent=Character
  1220. modelzorz.Name="Claw1"
  1221.  
  1222. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1))
  1223. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  1224. mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1225. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1226. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906))
  1227. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1228. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862))
  1229. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1230. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1231. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996))
  1232. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1233. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459))
  1234. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1235. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592))
  1236. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1237. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537))
  1238. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1239. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266))
  1240. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1241. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906))
  1242. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1243. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265))
  1244. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1245. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829))
  1246. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1247. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562))
  1248. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1249. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1250. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682))
  1251. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1252. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805))
  1253. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1254. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  1255. Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086))
  1256. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  1257. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1258. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474))
  1259. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1260. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1261. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891))
  1262. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1263.  
  1264. local modelzorz2=Instance.new("Model")
  1265. modelzorz2.Parent=Character
  1266. modelzorz2.Name="Claw2"
  1267.  
  1268. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1))
  1269. Handle2weld=weld(m,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559))
  1270. mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1271. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1272. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183))
  1273. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1274. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009))
  1275. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1276. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139))
  1277. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1278. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765))
  1279. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1280. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1281. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858))
  1282. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1283. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1284. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958))
  1285. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1286. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964))
  1287. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1288. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1289. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885))
  1290. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1291. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137))
  1292. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1293. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1294. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696))
  1295. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  1296. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073))
  1297. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  1298. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1299. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183))
  1300. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1301. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377))
  1302. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1303. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329))
  1304. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  1305. Gear2weld=weld(m,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636))
  1306. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  1307. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  1308. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.82676554, 0.256523609, 4.598104, -1.1920929e-006, 0.258818835, -0.965925872, -1.00000012, 1.46776438e-006, 1.63912773e-006, 1.83098018e-006, 0.965925872, 0.258818835))
  1309.  
  1310. local modelzorz3=Instance.new("Model")
  1311. modelzorz3.Parent=Character
  1312. modelzorz3.Name="Eye"
  1313.  
  1314. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1315. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  1316. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1))
  1317. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1318. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1319. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 0.950000048, 1.16999996))
  1320. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1321. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1322. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 3, 0.863999963))
  1323. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(3.79999995, 4, 1.39999998))
  1324. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  1325. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039))
  1326. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(3.79999995, 4, 1.39999998))
  1327. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  1328. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039))
  1329. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1330. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752))
  1331. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1332. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1333. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1334. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702))
  1335. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1336. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537))
  1337. local moosick = it("Sound",Character)
  1338. moosick.SoundId = "rbxassetid://142653441"
  1339. --142653441, 175067863
  1340. moosick.Looped = true
  1341. moosick.Pitch = 1
  1342. moosick.Volume = 0
  1343. moosick:Play()
  1344.  
  1345. anim = Character:findFirstChild("Animate")
  1346. if anim then
  1347. anim:Destroy()
  1348. end
  1349.  
  1350. local particleemitter = Instance.new("ParticleEmitter", Handle)
  1351. particleemitter.VelocitySpread = 180
  1352. particleemitter.Lifetime = NumberRange.new(0.1)
  1353. particleemitter.Speed = NumberRange.new(2)
  1354. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  1355. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1356. particleemitter.Rate = 100
  1357. particleemitter.Rotation = NumberRange.new(-45, 45)
  1358. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1359. particleemitter.LightEmission = 0
  1360. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  1361.  
  1362. local particleemitter = Instance.new("ParticleEmitter", Handle2)
  1363. particleemitter.VelocitySpread = 180
  1364. particleemitter.Lifetime = NumberRange.new(0.1)
  1365. particleemitter.Speed = NumberRange.new(2)
  1366. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  1367. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1368. particleemitter.Rate = 100
  1369. particleemitter.Rotation = NumberRange.new(-45, 45)
  1370. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1371. particleemitter.LightEmission = 0
  1372. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  1373.  
  1374. local particleemitter = Instance.new("ParticleEmitter", handle)
  1375. particleemitter.VelocitySpread = 180
  1376. particleemitter.Lifetime = NumberRange.new(0.1)
  1377. particleemitter.Speed = NumberRange.new(2)
  1378. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)})
  1379. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1380. particleemitter.Rate = 100
  1381. particleemitter.Rotation = NumberRange.new(-45, 45)
  1382. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1383. particleemitter.LightEmission = 0.8
  1384. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  1385.  
  1386. local light = Instance.new("PointLight", Character.Torso)
  1387. light.Color = Color3.new(255,255,255)
  1388. light.Brightness = 5
  1389. light.Range = 15
  1390.  
  1391. particleemitter.Enabled = true
  1392.  
  1393. local Footsteps = it("Sound",Character.Torso)
  1394. Footsteps.SoundId = "rbxassetid://142665235"
  1395. Footsteps.Looped = true
  1396. Footsteps.Pitch = 0.8
  1397. Footsteps.Volume = 0.3
  1398.  
  1399. local Footsteps2 = it("Sound",Character.Torso)
  1400. Footsteps2.SoundId = "rbxassetid://142665235"
  1401. Footsteps2.Looped = true
  1402. Footsteps2.Pitch = 1
  1403. Footsteps2.Volume = 0.4
  1404.  
  1405. local cam = game.Workspace.CurrentCamera
  1406.  
  1407. --cam.CameraSubject = Character
  1408.  
  1409. for i,v in pairs(Head:children()) do
  1410. if v:IsA("Sound") then
  1411. v:Destroy()
  1412. end
  1413. end
  1414.  
  1415. mouse.Button1Down:connect(function()
  1416. if attack==false and attacktype==1 then
  1417. attacktype=2
  1418. attackone()
  1419. elseif attack==false and attacktype==2 then
  1420. attacktype=3
  1421. attacktwo()
  1422. elseif attack==false and attacktype==3 then
  1423. attacktype=4
  1424. attackthree()
  1425. elseif attack==false and attacktype==4 then
  1426. attacktype=1
  1427. attackfour()
  1428. end
  1429. end)
  1430.  
  1431. mouse.KeyDown:connect(function(k)
  1432. k=k:lower()
  1433. if k=='e' then
  1434. if attack==false and mana>=20 then
  1435. Push()
  1436. end
  1437. elseif k=='g' then
  1438. if attack==false and mana>=50 then
  1439. Twirl()
  1440. end
  1441. elseif k=='v' then
  1442. if attack==false and mana>=25 then
  1443. MagicJump()
  1444. end
  1445. elseif k=='q' then
  1446. if attack==false then
  1447. idle=1000
  1448. end
  1449. elseif k=='h' then
  1450. if attack==false then
  1451. mana=100
  1452. end
  1453. elseif k=='y' then
  1454. if attack==false and mana>=100 then
  1455. Shred()
  1456. end
  1457. elseif k=='f' then
  1458. if attack==false and mana>=40 then
  1459. Spin()
  1460. end
  1461. elseif k=='r' then
  1462. if attack==false and mana>=20 then
  1463. Clap()
  1464. end
  1465. elseif k=='t' then
  1466. if attack==false then
  1467. Hai()
  1468. end
  1469. elseif k=='0' then
  1470. if attack==false then
  1471. Humanoid.WalkSpeed=(56)
  1472. end
  1473. elseif k=='j' then
  1474. if attack==false then
  1475. Humanoid.Health = 100
  1476. print("Congrats, you commited suicide.")
  1477. end
  1478. end
  1479. end)
  1480.  
  1481. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1482. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1483. prt.Anchored=true
  1484. prt.CFrame=cframe
  1485. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1486. game:GetService("Debris"):AddItem(prt,2)
  1487. coroutine.resume(coroutine.create(function(Part,Mesh)
  1488. for i=0,1,delay do
  1489. wait()
  1490. Part.CFrame=Part.CFrame
  1491. Part.Transparency=i
  1492. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1493. end
  1494. Part.Parent=nil
  1495. end),prt,msh)
  1496. end
  1497.  
  1498. TrailDeb = false
  1499.  
  1500. function equipanim()
  1501. attack=true
  1502. Humanoid.WalkSpeed = 0
  1503. if TrailDeb == false then
  1504. TrailDeb = true
  1505. end
  1506.  
  1507.  
  1508. coroutine.wrap(function()
  1509. local Old = handle.CFrame.p
  1510. while wait()do
  1511. if not TrailDeb then break end
  1512. local New = handle.CFrame.p
  1513. local Mag =(Old -New).magnitude
  1514. local Dis =(Old +New)/2
  1515. local Trail = Instance.new("Part",Character)
  1516. Trail.Material = "Neon"
  1517. Trail.Anchored = true
  1518. Trail.CanCollide = false
  1519. Trail.BrickColor = TorsoColor
  1520. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1521. Trail.TopSurface = 0
  1522. Trail.BottomSurface = 0
  1523. Trail.formFactor = "Custom"
  1524. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1525. local ms = Instance.new("BlockMesh",Trail)
  1526. ms.Scale = Vector3.new(1,1,1)
  1527. local TM = Instance.new("CylinderMesh",Trail)
  1528. TM.Scale = Vector3.new(1,1,1)
  1529. Old = New
  1530. coroutine.wrap(function()
  1531. for i = 1,0,-0.1 do
  1532. wait()
  1533. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1534. end
  1535. Trail:remove()
  1536. end)()
  1537. coroutine.wrap(function()
  1538. for i = 1,10 do
  1539. wait()
  1540. Trail.Transparency = Trail.Transparency +0.1
  1541. end end)()end end)()
  1542. coroutine.wrap(function()
  1543. local Old = Handle.CFrame.p
  1544. while wait()do
  1545. if not TrailDeb then break end
  1546. local New = Handle.CFrame.p
  1547. local Mag =(Old -New).magnitude
  1548. local Dis =(Old +New)/2
  1549. local Trail = Instance.new("Part",Character)
  1550. Trail.Material = "Neon"
  1551. Trail.Anchored = true
  1552. Trail.CanCollide = false
  1553. Trail.BrickColor = TorsoColor
  1554. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1555. Trail.TopSurface = 0
  1556. Trail.BottomSurface = 0
  1557. Trail.formFactor = "Custom"
  1558. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1559. local ms = Instance.new("BlockMesh",Trail)
  1560. ms.Scale = Vector3.new(1,1,1)
  1561. local TM = Instance.new("CylinderMesh",Trail)
  1562. TM.Scale = Vector3.new(1,1,1)
  1563. Old = New
  1564. coroutine.wrap(function()
  1565. for i = 1,0,-0.1 do
  1566. wait()
  1567. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1568. end
  1569. Trail:remove()
  1570. end)()
  1571. coroutine.wrap(function()
  1572. for i = 1,10 do
  1573. wait()
  1574. Trail.Transparency = Trail.Transparency +0.1
  1575. end end)()end end)()
  1576. coroutine.wrap(function()
  1577. local Old = Handle2.CFrame.p
  1578. while wait()do
  1579. if not TrailDeb then break end
  1580. local New = Handle2.CFrame.p
  1581. local Mag =(Old -New).magnitude
  1582. local Dis =(Old +New)/2
  1583. local Trail = Instance.new("Part",Character)
  1584. Trail.Material = "Neon"
  1585. Trail.Anchored = true
  1586. Trail.CanCollide = false
  1587. Trail.BrickColor = TorsoColor
  1588. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1589. Trail.TopSurface = 0
  1590. Trail.BottomSurface = 0
  1591. Trail.formFactor = "Custom"
  1592. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1593. local ms = Instance.new("BlockMesh",Trail)
  1594. ms.Scale = Vector3.new(1,1,1)
  1595. local TM = Instance.new("CylinderMesh",Trail)
  1596. TM.Scale = Vector3.new(1,1,1)
  1597. Old = New
  1598. coroutine.wrap(function()
  1599. for i = 1,0,-0.1 do
  1600. wait()
  1601. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1602. end
  1603. Trail:remove()
  1604. end)()
  1605. coroutine.wrap(function()
  1606. for i = 1,10 do
  1607. wait()
  1608. Trail.Transparency = Trail.Transparency +0.1
  1609. end end)()end end)()
  1610. so("http://www.roblox.com/asset/?id=200632370",Torso,1,0.5)
  1611. for i=0,1,0.005 do
  1612. swait()
  1613. moosick.Volume = 0+1*i
  1614. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2)
  1615. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  1616. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1617. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1618. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1619. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  1620. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  1621. end
  1622. for i=0,1,0.005 do
  1623. swait()
  1624. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2)
  1625. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  1626. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1627. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1628. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1629. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  1630. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  1631. end
  1632. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  1633. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  1634. for i=0,1,0.005 do
  1635. swait()
  1636. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1)
  1637. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1)
  1638. handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  1639. Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1)
  1640. Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1)
  1641. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  1642. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  1643. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  1644. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  1645. end
  1646. for i=0,1,0.04 do
  1647. swait()
  1648. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  1649. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1650. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1651. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1652. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  1653. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  1654. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1655. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  1656. end
  1657. --dmgstop()
  1658. attack=false
  1659. Humanoid.WalkSpeed = 12
  1660. if TrailDeb == true then
  1661. TrailDeb = false
  1662. end
  1663. end
  1664.  
  1665. function attackone()
  1666. attack=true
  1667. if TrailDeb == false then
  1668. TrailDeb = true
  1669. end
  1670.  
  1671.  
  1672. coroutine.wrap(function()
  1673. local Old = Handle.CFrame.p
  1674. while wait()do
  1675. if not TrailDeb then break end
  1676. local New = Handle.CFrame.p
  1677. local Mag =(Old -New).magnitude
  1678. local Dis =(Old +New)/2
  1679. local Trail = Instance.new("Part",Character)
  1680. Trail.Material = "Neon"
  1681. Trail.Anchored = true
  1682. Trail.CanCollide = false
  1683. Trail.BrickColor = TorsoColor
  1684. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1685. Trail.TopSurface = 0
  1686. Trail.BottomSurface = 0
  1687. Trail.formFactor = "Custom"
  1688. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1689. local ms = Instance.new("BlockMesh",Trail)
  1690. ms.Scale = Vector3.new(1,1,1)
  1691. local TM = Instance.new("CylinderMesh",Trail)
  1692. TM.Scale = Vector3.new(1,1,1)
  1693. Old = New
  1694. coroutine.wrap(function()
  1695. for i = 1,0,-0.1 do
  1696. wait()
  1697. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1698. end
  1699. Trail:remove()
  1700. end)()
  1701. coroutine.wrap(function()
  1702. for i = 1,10 do
  1703. wait()
  1704. Trail.Transparency = Trail.Transparency +0.1
  1705. end end)()end end)()
  1706. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1707. for i=0,1,0.08 do
  1708. swait()
  1709. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  1710. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  1711. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1712. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1713. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1714. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1715. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1716. end
  1717. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  1718. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  1719. for i=0,1,0.1 do
  1720. swait()
  1721. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  1722. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1723. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1724. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  1725. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1726. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  1727. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1728. end
  1729. --dmgstop()
  1730. attack=false
  1731. con1:disconnect()
  1732. if TrailDeb == true then
  1733. TrailDeb = false
  1734. end
  1735. end
  1736.  
  1737. function attacktwo()
  1738. attack=true
  1739. if TrailDeb == false then
  1740. TrailDeb = true
  1741. end
  1742.  
  1743.  
  1744. coroutine.wrap(function()
  1745. local Old = Handle2.CFrame.p
  1746. while wait()do
  1747. if not TrailDeb then break end
  1748. local New = Handle2.CFrame.p
  1749. local Mag =(Old -New).magnitude
  1750. local Dis =(Old +New)/2
  1751. local Trail = Instance.new("Part",Character)
  1752. Trail.Material = "Neon"
  1753. Trail.Anchored = true
  1754. Trail.CanCollide = false
  1755. Trail.BrickColor = TorsoColor
  1756. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1757. Trail.TopSurface = 0
  1758. Trail.BottomSurface = 0
  1759. Trail.formFactor = "Custom"
  1760. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1761. local ms = Instance.new("BlockMesh",Trail)
  1762. ms.Scale = Vector3.new(1,1,1)
  1763. local TM = Instance.new("CylinderMesh",Trail)
  1764. TM.Scale = Vector3.new(1,1,1)
  1765. Old = New
  1766. coroutine.wrap(function()
  1767. for i = 1,0,-0.1 do
  1768. wait()
  1769. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1770. end
  1771. Trail:remove()
  1772. end)()
  1773. coroutine.wrap(function()
  1774. for i = 1,10 do
  1775. wait()
  1776. Trail.Transparency = Trail.Transparency +0.1
  1777. end end)()end end)()
  1778. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1779. for i=0,1,0.08 do
  1780. swait()
  1781. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1782. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1783. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1784. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  1785. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1786. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  1787. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1788. end
  1789. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  1790. so("http://www.roblox.com/asset/?id=159972627",Torso,1,1)
  1791. for i=0,1,0.1 do
  1792. swait()
  1793. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1794. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1795. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1796. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  1797. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1798. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  1799. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1800. end
  1801. --dmgstop()
  1802. attack=false
  1803. con1:disconnect()
  1804. if TrailDeb == true then
  1805. TrailDeb = false
  1806. end
  1807. end
  1808.  
  1809. function attackthree()
  1810. attack=true
  1811. if TrailDeb == false then
  1812. TrailDeb = true
  1813. end
  1814.  
  1815.  
  1816. coroutine.wrap(function()
  1817. local Old = Handle.CFrame.p
  1818. while wait()do
  1819. if not TrailDeb then break end
  1820. local New = Handle.CFrame.p
  1821. local Mag =(Old -New).magnitude
  1822. local Dis =(Old +New)/2
  1823. local Trail = Instance.new("Part",Character)
  1824. Trail.Material = "Neon"
  1825. Trail.Anchored = true
  1826. Trail.CanCollide = false
  1827. Trail.BrickColor = TorsoColor
  1828. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1829. Trail.TopSurface = 0
  1830. Trail.BottomSurface = 0
  1831. Trail.formFactor = "Custom"
  1832. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1833. local ms = Instance.new("BlockMesh",Trail)
  1834. ms.Scale = Vector3.new(1,1,1)
  1835. local TM = Instance.new("CylinderMesh",Trail)
  1836. TM.Scale = Vector3.new(1,1,1)
  1837. Old = New
  1838. coroutine.wrap(function()
  1839. for i = 1,0,-0.1 do
  1840. wait()
  1841. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1842. end
  1843. Trail:remove()
  1844. end)()
  1845. coroutine.wrap(function()
  1846. for i = 1,10 do
  1847. wait()
  1848. Trail.Transparency = Trail.Transparency +0.1
  1849. end end)()end end)()
  1850. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Up",RootPart,.2,1) end)
  1851. for i=0,1,0.08 do
  1852. swait()
  1853. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1854. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1855. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1856. Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
  1857. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1858. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
  1859. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1860. end
  1861. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  1862. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  1863. for i=0,1,0.05 do
  1864. swait()
  1865. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1866. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1867. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1868. Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
  1869. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1870. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
  1871. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1872. end
  1873. --dmgstop()
  1874. attack=false
  1875. con1:disconnect()
  1876. if TrailDeb == true then
  1877. TrailDeb = false
  1878. end
  1879. end
  1880.  
  1881. function attackfour()
  1882. attack=true
  1883. if TrailDeb == false then
  1884. TrailDeb = true
  1885. end
  1886.  
  1887.  
  1888. coroutine.wrap(function()
  1889. local Old = Handle2.CFrame.p
  1890. while wait()do
  1891. if not TrailDeb then break end
  1892. local New = Handle2.CFrame.p
  1893. local Mag =(Old -New).magnitude
  1894. local Dis =(Old +New)/2
  1895. local Trail = Instance.new("Part",Character)
  1896. Trail.Material = "Neon"
  1897. Trail.Anchored = true
  1898. Trail.CanCollide = false
  1899. Trail.BrickColor = TorsoColor
  1900. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1901. Trail.TopSurface = 0
  1902. Trail.BottomSurface = 0
  1903. Trail.formFactor = "Custom"
  1904. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1905. local ms = Instance.new("BlockMesh",Trail)
  1906. ms.Scale = Vector3.new(1,1,1)
  1907. local TM = Instance.new("CylinderMesh",Trail)
  1908. TM.Scale = Vector3.new(1,1,1)
  1909. Old = New
  1910. coroutine.wrap(function()
  1911. for i = 1,0,-0.1 do
  1912. wait()
  1913. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1914. end
  1915. Trail:remove()
  1916. end)()
  1917. coroutine.wrap(function()
  1918. for i = 1,10 do
  1919. wait()
  1920. Trail.Transparency = Trail.Transparency +0.1
  1921. end end)()end end)()
  1922. coroutine.wrap(function()
  1923. local Old = Handle.CFrame.p
  1924. while wait()do
  1925. if not TrailDeb then break end
  1926. local New = Handle.CFrame.p
  1927. local Mag =(Old -New).magnitude
  1928. local Dis =(Old +New)/2
  1929. local Trail = Instance.new("Part",Character)
  1930. Trail.Material = "Neon"
  1931. Trail.Anchored = true
  1932. Trail.CanCollide = false
  1933. Trail.BrickColor = TorsoColor
  1934. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1935. Trail.TopSurface = 0
  1936. Trail.BottomSurface = 0
  1937. Trail.formFactor = "Custom"
  1938. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1939. local ms = Instance.new("BlockMesh",Trail)
  1940. ms.Scale = Vector3.new(1,1,1)
  1941. local TM = Instance.new("CylinderMesh",Trail)
  1942. TM.Scale = Vector3.new(1,1,1)
  1943. Old = New
  1944. coroutine.wrap(function()
  1945. for i = 1,0,-0.1 do
  1946. wait()
  1947. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1948. end
  1949. Trail:remove()
  1950. end)()
  1951. coroutine.wrap(function()
  1952. for i = 1,10 do
  1953. wait()
  1954. Trail.Transparency = Trail.Transparency +0.1
  1955. end end)()end end)()
  1956. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1957. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1958. for i=0,1,0.08 do
  1959. swait()
  1960. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  1961. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1962. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1963. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1964. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  1965. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  1966. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1967. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  1968. end
  1969. if anim then
  1970. anim.Disabled=true
  1971. end
  1972. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7)
  1973. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  1974. for i=0,1,0.04 do
  1975. swait()
  1976. Torso.Velocity=RootPart.CFrame.lookVector*50
  1977. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
  1978. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1979. Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1980. Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1981. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1982. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1983. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1984. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1985. end
  1986. --dmgstop()
  1987. attack=false
  1988. con1:disconnect()
  1989. con2:disconnect()
  1990. if anim then
  1991. anim.Disabled=false
  1992. end
  1993. if TrailDeb == true then
  1994. TrailDeb = false
  1995. end
  1996. end
  1997.  
  1998. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1999. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2000. prt.Anchored = true
  2001. prt.CFrame = cframe
  2002. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2003. coroutine.resume(coroutine.create(function()
  2004. for i = 0, 1, 0.05 do
  2005. wait()
  2006. prt.Transparency = i
  2007. msh.Scale = msh.Scale + vt(x2, y2, z2)
  2008. end
  2009. prt.Parent = nil
  2010. end))
  2011. end
  2012.  
  2013. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  2014. for _, c in pairs(workspace:children()) do
  2015. local hum = c:findFirstChild("Humanoid")
  2016. if hum ~= nil then
  2017. local head = c:findFirstChild("Torso")
  2018. if head ~= nil then
  2019. local targ = head.Position - Part.Position
  2020. local mag = targ.magnitude
  2021. if mag <= magni and c.Name ~= Player.Name then
  2022. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  2023. end
  2024. end
  2025. end
  2026. end
  2027. end
  2028.  
  2029. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2030. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2031. prt.Anchored = true
  2032. prt.CFrame = cframe
  2033. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2034. game:GetService("Debris"):AddItem(prt, 2)
  2035. coroutine.resume(coroutine.create(function(Part, Mesh)
  2036. for i = 0, 1, delay do
  2037. swait()
  2038. Part.CFrame = Part.CFrame
  2039. Part.Transparency = i
  2040. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2041. end
  2042. Part.Parent = nil
  2043. end), prt, msh)
  2044. end
  2045.  
  2046. function MagicJump()
  2047. if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then
  2048. attack=true
  2049. mana=mana-25
  2050. --[[ Humanoid.WalkSpeed = 0
  2051. for i=0,1,0.01 do
  2052. swait()
  2053. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1)
  2054. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1)
  2055. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  2056. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1)
  2057. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1)
  2058. RH.C0=clerp(RH.C0,cf(0.5,-1.25,0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(15),math.rad(-60),math.rad(-15)),.1)
  2059. LH.C0=clerp(LH.C0,cf(-1,0.1,-0.8)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(40),math.rad(0),math.rad(-30)),.1)
  2060. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1)
  2061. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1)
  2062. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1)
  2063. end]]--
  2064. Humanoid.Jump = true
  2065. Torso.Velocity = vt(0, 150, 0)
  2066. Humanoid.WalkSpeed = 64
  2067. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  2068. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  2069. for i=0,1,0.05 do
  2070. swait()
  2071. Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3)
  2072. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2073. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3)
  2074. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  2075. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  2076. RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  2077. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  2078. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2079. Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2)
  2080. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2)
  2081. end
  2082. for i=0,1,0.02 do
  2083. swait()
  2084. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  2085. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2086. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  2087. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  2088. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2089. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  2090. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2091. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  2092. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  2093. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2094. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  2095. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  2096. end
  2097. Humanoid.WalkSpeed = 0
  2098. swait(8)
  2099. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  2100. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  2101. local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2102. if hit~=nil then
  2103. swait(2)
  2104. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  2105. ref.Anchored=true
  2106. ref.CFrame=cf(pos)
  2107. game:GetService("Debris"):AddItem(ref,3)
  2108. for i=1,10 do
  2109. local Col=BrickColor.new("Really black")
  2110. local groundpart=part(3,Character,"SmoothPlastic",0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2111. groundpart.Anchored=true
  2112. groundpart.CanCollide=false
  2113. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2114. local Col2=TorsoColor
  2115. local groundpart2=part(3,Character,"SmoothPlastic",0,0,Col2,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2116. groundpart2.Anchored=true
  2117. groundpart2.CanCollide=false
  2118. groundpart2.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2119. game:GetService("Debris"):AddItem(groundpart,5)
  2120. game:GetService("Debris"):AddItem(groundpart2,5)
  2121. end
  2122. BlastEffect(TorsoColor,cf(pos),1,1,1,1.4,1.4,1.4)
  2123. BlastEffect(BrickColor.new("Really black"),cf(pos),.9,.9,.9,1.2,1.2,1.2)
  2124. MagicCircle(BrickColor.new("Really black"),cf(pos),5,5,5,5,5,5,0.05)
  2125. MagicCircle(TorsoColor,cf(pos),6,6,6,6,6,6,0.05)
  2126. for i=0,1,0.06 do
  2127. swait()
  2128. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2129. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2130. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  2131. RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  2132. LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3)
  2133. RH.C0=clerp(RH.C0,cf(1, -.5, -.5)*angles(math.rad(50),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  2134. LH.C0=clerp(LH.C0,cf(-1, -1, -.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  2135. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2136. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  2137. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  2138. end
  2139. end
  2140. swait(20)
  2141. Humanoid.WalkSpeed = 12
  2142. --dmgstop()
  2143. attack=false
  2144. end
  2145. end
  2146.  
  2147. function Spin()
  2148. attack=true
  2149. mana=mana-40
  2150. if TrailDeb == false then
  2151. TrailDeb = true
  2152. end
  2153.  
  2154. coroutine.wrap(function()
  2155. local Old = Handle2.CFrame.p
  2156. while wait()do
  2157. if not TrailDeb then break end
  2158. local New = Handle2.CFrame.p
  2159. local Mag =(Old -New).magnitude
  2160. local Dis =(Old +New)/2
  2161. local Trail = Instance.new("Part",Character)
  2162. Trail.Material = "Neon"
  2163. Trail.Anchored = true
  2164. Trail.CanCollide = false
  2165. Trail.BrickColor = TorsoColor
  2166. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2167. Trail.TopSurface = 0
  2168. Trail.BottomSurface = 0
  2169. Trail.formFactor = "Custom"
  2170. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2171. local ms = Instance.new("BlockMesh",Trail)
  2172. ms.Scale = Vector3.new(1,1,1)
  2173. local TM = Instance.new("CylinderMesh",Trail)
  2174. TM.Scale = Vector3.new(1,1,1)
  2175. Old = New
  2176. coroutine.wrap(function()
  2177. for i = 1,0,-0.1 do
  2178. wait()
  2179. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2180. end
  2181. Trail:remove()
  2182. end)()
  2183. coroutine.wrap(function()
  2184. for i = 1,10 do
  2185. wait()
  2186. Trail.Transparency = Trail.Transparency +0.1
  2187. end end)()end end)()
  2188. coroutine.wrap(function()
  2189. local Old = Handle.CFrame.p
  2190. while wait()do
  2191. if not TrailDeb then break end
  2192. local New = Handle.CFrame.p
  2193. local Mag =(Old -New).magnitude
  2194. local Dis =(Old +New)/2
  2195. local Trail = Instance.new("Part",Character)
  2196. Trail.Material = "Neon"
  2197. Trail.Anchored = true
  2198. Trail.CanCollide = false
  2199. Trail.BrickColor = TorsoColor
  2200. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2201. Trail.TopSurface = 0
  2202. Trail.BottomSurface = 0
  2203. Trail.formFactor = "Custom"
  2204. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2205. local ms = Instance.new("BlockMesh",Trail)
  2206. ms.Scale = Vector3.new(1,1,1)
  2207. local TM = Instance.new("CylinderMesh",Trail)
  2208. TM.Scale = Vector3.new(1,1,1)
  2209. Old = New
  2210. coroutine.wrap(function()
  2211. for i = 1,0,-0.1 do
  2212. wait()
  2213. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2214. end
  2215. Trail:remove()
  2216. end)()
  2217. coroutine.wrap(function()
  2218. for i = 1,10 do
  2219. wait()
  2220. Trail.Transparency = Trail.Transparency +0.1
  2221. end end)()end end)()
  2222. Footsteps:Stop()
  2223. Footsteps2:Stop()
  2224. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2225. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2226. so("http://www.roblox.com/asset/?id=159882497",Torso,1,1)
  2227. for i=0,1,0.1 do
  2228. swait()
  2229. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2230. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2231. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2232. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2233. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2234. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2235. end
  2236. if anim then
  2237. anim.Disabled=true
  2238. end
  2239. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  2240. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  2241. for i=0,1,0.05 do
  2242. swait()
  2243. Torso.Velocity=RootPart.CFrame.lookVector*100
  2244. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  2245. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2246. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2247. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2248. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2249. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2250. end
  2251. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  2252. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  2253. for i=0,1,0.05 do
  2254. swait()
  2255. Torso.Velocity=RootPart.CFrame.lookVector*100
  2256. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  2257. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2258. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2259. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2260. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2261. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2262. end
  2263. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  2264. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  2265. for i=0,1,0.05 do
  2266. swait()
  2267. Torso.Velocity=RootPart.CFrame.lookVector*100
  2268. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  2269. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2270. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2271. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2272. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2273. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2274. end
  2275. --dmgstop()
  2276. Humanoid.WalkSpeed=12
  2277. attack=false
  2278. con1:disconnect()
  2279. con2:disconnect()
  2280. if anim then
  2281. anim.Disabled=false
  2282. end
  2283. if TrailDeb == true then
  2284. TrailDeb = false
  2285. end
  2286. end
  2287.  
  2288. function Twirl()
  2289. mana=mana-50
  2290. attack=true
  2291. if TrailDeb == false then
  2292. TrailDeb = true
  2293. end
  2294.  
  2295.  
  2296. coroutine.wrap(function()
  2297. local Old = Handle2.CFrame.p
  2298. while wait()do
  2299. if not TrailDeb then break end
  2300. local New = Handle2.CFrame.p
  2301. local Mag =(Old -New).magnitude
  2302. local Dis =(Old +New)/2
  2303. local Trail = Instance.new("Part",Character)
  2304. Trail.Material = "Neon"
  2305. Trail.Anchored = true
  2306. Trail.CanCollide = false
  2307. Trail.BrickColor = TorsoColor
  2308. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2309. Trail.TopSurface = 0
  2310. Trail.BottomSurface = 0
  2311. Trail.formFactor = "Custom"
  2312. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2313. local ms = Instance.new("BlockMesh",Trail)
  2314. ms.Scale = Vector3.new(1,1,1)
  2315. local TM = Instance.new("CylinderMesh",Trail)
  2316. TM.Scale = Vector3.new(1,1,1)
  2317. Old = New
  2318. coroutine.wrap(function()
  2319. for i = 1,0,-0.1 do
  2320. wait()
  2321. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2322. end
  2323. Trail:remove()
  2324. end)()
  2325. coroutine.wrap(function()
  2326. for i = 1,10 do
  2327. wait()
  2328. Trail.Transparency = Trail.Transparency +0.1
  2329. end end)()end end)()
  2330. coroutine.wrap(function()
  2331. local Old = Handle.CFrame.p
  2332. while wait()do
  2333. if not TrailDeb then break end
  2334. local New = Handle.CFrame.p
  2335. local Mag =(Old -New).magnitude
  2336. local Dis =(Old +New)/2
  2337. local Trail = Instance.new("Part",Character)
  2338. Trail.Material = "Neon"
  2339. Trail.Anchored = true
  2340. Trail.CanCollide = false
  2341. Trail.BrickColor = TorsoColor
  2342. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2343. Trail.TopSurface = 0
  2344. Trail.BottomSurface = 0
  2345. Trail.formFactor = "Custom"
  2346. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2347. local ms = Instance.new("BlockMesh",Trail)
  2348. ms.Scale = Vector3.new(1,1,1)
  2349. local TM = Instance.new("CylinderMesh",Trail)
  2350. TM.Scale = Vector3.new(1,1,1)
  2351. Old = New
  2352. coroutine.wrap(function()
  2353. for i = 1,0,-0.1 do
  2354. wait()
  2355. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2356. end
  2357. Trail:remove()
  2358. end)()
  2359. coroutine.wrap(function()
  2360. for i = 1,10 do
  2361. wait()
  2362. Trail.Transparency = Trail.Transparency +0.1
  2363. end end)()end end)()
  2364. Footsteps:Stop()
  2365. Footsteps2:Stop()
  2366. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2367. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2368. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  2369. for i=0,1,0.1 do
  2370. swait()
  2371. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2372. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2373. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2374. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2375. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2376. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2377. end
  2378. if anim then
  2379. anim.Disabled=true
  2380. end
  2381. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2382. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2383. for i=0,1,0.05 do
  2384. swait()
  2385. Torso.Velocity=RootPart.CFrame.lookVector*80
  2386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2387. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2388. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2389. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2390. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2391. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2392. end
  2393. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2394. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2395. for i=0,1,0.05 do
  2396. swait()
  2397. Torso.Velocity=RootPart.CFrame.lookVector*80
  2398. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2399. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2400. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2401. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2402. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2403. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2404. end
  2405. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2406. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2407. for i=0,1,0.05 do
  2408. swait()
  2409. Torso.Velocity=RootPart.CFrame.lookVector*80
  2410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2411. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2412. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2413. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2414. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2415. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2416. end
  2417. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2418. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2419. for i=0,1,0.05 do
  2420. swait()
  2421. Torso.Velocity=RootPart.CFrame.lookVector*80
  2422. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2423. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2424. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2425. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2426. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2427. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2428. end
  2429. --dmgstop()
  2430. Humanoid.WalkSpeed=12
  2431. attack=false
  2432. con1:disconnect()
  2433. con2:disconnect()
  2434. if anim then
  2435. anim.Disabled=false
  2436. end
  2437. if TrailDeb == true then
  2438. TrailDeb = false
  2439. end
  2440. end
  2441.  
  2442. function Shred()
  2443. attack=true
  2444. mana=mana-100
  2445. if TrailDeb == false then
  2446. TrailDeb = true
  2447. end
  2448.  
  2449.  
  2450. coroutine.wrap(function()
  2451. local Old = Handle2.CFrame.p
  2452. while wait()do
  2453. if not TrailDeb then break end
  2454. local New = Handle2.CFrame.p
  2455. local Mag =(Old -New).magnitude
  2456. local Dis =(Old +New)/2
  2457. local Trail = Instance.new("Part",Character)
  2458. Trail.Material = "Neon"
  2459. Trail.Anchored = true
  2460. Trail.CanCollide = false
  2461. Trail.BrickColor = TorsoColor
  2462. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2463. Trail.TopSurface = 0
  2464. Trail.BottomSurface = 0
  2465. Trail.formFactor = "Custom"
  2466. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2467. local ms = Instance.new("BlockMesh",Trail)
  2468. ms.Scale = Vector3.new(1,1,1)
  2469. local TM = Instance.new("CylinderMesh",Trail)
  2470. TM.Scale = Vector3.new(1,1,1)
  2471. Old = New
  2472. coroutine.wrap(function()
  2473. for i = 1,0,-0.1 do
  2474. wait()
  2475. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2476. end
  2477. Trail:remove()
  2478. end)()
  2479. coroutine.wrap(function()
  2480. for i = 1,10 do
  2481. wait()
  2482. Trail.Transparency = Trail.Transparency +0.1
  2483. end end)()end end)()
  2484. coroutine.wrap(function()
  2485. local Old = Handle.CFrame.p
  2486. while wait()do
  2487. if not TrailDeb then break end
  2488. local New = Handle.CFrame.p
  2489. local Mag =(Old -New).magnitude
  2490. local Dis =(Old +New)/2
  2491. local Trail = Instance.new("Part",Character)
  2492. Trail.Material = "Neon"
  2493. Trail.Anchored = true
  2494. Trail.CanCollide = false
  2495. Trail.BrickColor = TorsoColor
  2496. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2497. Trail.TopSurface = 0
  2498. Trail.BottomSurface = 0
  2499. Trail.formFactor = "Custom"
  2500. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2501. local ms = Instance.new("BlockMesh",Trail)
  2502. ms.Scale = Vector3.new(1,1,1)
  2503. local TM = Instance.new("CylinderMesh",Trail)
  2504. TM.Scale = Vector3.new(1,1,1)
  2505. Old = New
  2506. coroutine.wrap(function()
  2507. for i = 1,0,-0.1 do
  2508. wait()
  2509. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2510. end
  2511. Trail:remove()
  2512. end)()
  2513. coroutine.wrap(function()
  2514. for i = 1,10 do
  2515. wait()
  2516. Trail.Transparency = Trail.Transparency +0.1
  2517. end end)()end end)()
  2518. Footsteps:Stop()
  2519. Footsteps2:Stop()
  2520. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  2521. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  2522. so("http://www.roblox.com/asset/?id=159882578",Torso,1,1)
  2523. for i=0,1,0.1 do
  2524. swait()
  2525. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2526. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2527. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2528. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2530. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2531. end
  2532. if anim then
  2533. anim.Disabled=true
  2534. end
  2535. for i=0,1,0.05 do
  2536. swait()
  2537. Torso.Velocity=RootPart.CFrame.lookVector*20
  2538. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2539. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2540. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5)
  2541. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2542. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2543. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2544. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2545. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2546. end
  2547. for i=0,1,0.05 do
  2548. swait()
  2549. Torso.Velocity=RootPart.CFrame.lookVector*40
  2550. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2551. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2552. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5)
  2553. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2554. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2555. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2556. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2557. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2558. end
  2559. for i=0,1,0.05 do
  2560. swait()
  2561. Torso.Velocity=RootPart.CFrame.lookVector*60
  2562. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2563. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2564. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5)
  2565. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2566. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2567. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2568. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2569. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2570. end
  2571. so("http://www.roblox.com/asset/?id=159882625",Torso,1,1)
  2572. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2573. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2574. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2575. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2576. for i=0,1,0.05 do
  2577. swait()
  2578. Torso.Velocity=RootPart.CFrame.lookVector*80
  2579. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5)
  2580. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2581. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2582. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2583. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2584. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2585. end
  2586. for i=0,1,0.005 do
  2587. swait()
  2588. Torso.Velocity=RootPart.CFrame.lookVector*100
  2589. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5)
  2590. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2591. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2592. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2593. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2594. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2595. end
  2596. --dmgstop()
  2597. Humanoid.WalkSpeed=12
  2598. attack=false
  2599. con1:disconnect()
  2600. con2:disconnect()
  2601. if anim then
  2602. anim.Disabled=false
  2603. end
  2604. if TrailDeb == true then
  2605. TrailDeb = false
  2606. end
  2607. end
  2608.  
  2609. function Push()
  2610. attack=true
  2611. mana=mana-20
  2612. if TrailDeb == false then
  2613. TrailDeb = true
  2614. end
  2615.  
  2616.  
  2617. coroutine.wrap(function()
  2618. local Old = Handle2.CFrame.p
  2619. while wait()do
  2620. if not TrailDeb then break end
  2621. local New = Handle2.CFrame.p
  2622. local Mag =(Old -New).magnitude
  2623. local Dis =(Old +New)/2
  2624. local Trail = Instance.new("Part",Character)
  2625. Trail.Material = "Neon"
  2626. Trail.Anchored = true
  2627. Trail.CanCollide = false
  2628. Trail.BrickColor = TorsoColor
  2629. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2630. Trail.TopSurface = 0
  2631. Trail.BottomSurface = 0
  2632. Trail.formFactor = "Custom"
  2633. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2634. local ms = Instance.new("BlockMesh",Trail)
  2635. ms.Scale = Vector3.new(1,1,1)
  2636. local TM = Instance.new("CylinderMesh",Trail)
  2637. TM.Scale = Vector3.new(1,1,1)
  2638. Old = New
  2639. coroutine.wrap(function()
  2640. for i = 1,0,-0.1 do
  2641. wait()
  2642. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2643. end
  2644. Trail:remove()
  2645. end)()
  2646. coroutine.wrap(function()
  2647. for i = 1,10 do
  2648. wait()
  2649. Trail.Transparency = Trail.Transparency +0.1
  2650. end end)()end end)()
  2651. coroutine.wrap(function()
  2652. local Old = Handle.CFrame.p
  2653. while wait()do
  2654. if not TrailDeb then break end
  2655. local New = Handle.CFrame.p
  2656. local Mag =(Old -New).magnitude
  2657. local Dis =(Old +New)/2
  2658. local Trail = Instance.new("Part",Character)
  2659. Trail.Material = "Neon"
  2660. Trail.Anchored = true
  2661. Trail.CanCollide = false
  2662. Trail.BrickColor = TorsoColor
  2663. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2664. Trail.TopSurface = 0
  2665. Trail.BottomSurface = 0
  2666. Trail.formFactor = "Custom"
  2667. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2668. local ms = Instance.new("BlockMesh",Trail)
  2669. ms.Scale = Vector3.new(1,1,1)
  2670. local TM = Instance.new("CylinderMesh",Trail)
  2671. TM.Scale = Vector3.new(1,1,1)
  2672. Old = New
  2673. coroutine.wrap(function()
  2674. for i = 1,0,-0.1 do
  2675. wait()
  2676. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2677. end
  2678. Trail:remove()
  2679. end)()
  2680. coroutine.wrap(function()
  2681. for i = 1,10 do
  2682. wait()
  2683. Trail.Transparency = Trail.Transparency +0.1
  2684. end end)()end end)()
  2685. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2686. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2687. for i=0,1,0.1 do
  2688. swait()
  2689. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2690. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2691. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2692. Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2693. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2694. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  2695. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  2696. end
  2697. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  2698. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2699. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  2700. for i=0,1,0.1 do
  2701. swait()
  2702. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2703. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2704. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2705. Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2706. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2707. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  2708. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  2709. end
  2710. --dmgstop()
  2711. attack=false
  2712. con1:disconnect()
  2713. con2:disconnect()
  2714. if TrailDeb == true then
  2715. TrailDeb = false
  2716. end
  2717. end
  2718.  
  2719. function Clap()
  2720. attack=true
  2721. mana=mana-20
  2722. if TrailDeb == false then
  2723. TrailDeb = true
  2724. end
  2725.  
  2726.  
  2727. coroutine.wrap(function()
  2728. local Old = Handle2.CFrame.p
  2729. while wait()do
  2730. if not TrailDeb then break end
  2731. local New = Handle2.CFrame.p
  2732. local Mag =(Old -New).magnitude
  2733. local Dis =(Old +New)/2
  2734. local Trail = Instance.new("Part",Character)
  2735. Trail.Material = "Neon"
  2736. Trail.Anchored = true
  2737. Trail.CanCollide = false
  2738. Trail.BrickColor = TorsoColor
  2739. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2740. Trail.TopSurface = 0
  2741. Trail.BottomSurface = 0
  2742. Trail.formFactor = "Custom"
  2743. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2744. local ms = Instance.new("BlockMesh",Trail)
  2745. ms.Scale = Vector3.new(1,1,1)
  2746. local TM = Instance.new("CylinderMesh",Trail)
  2747. TM.Scale = Vector3.new(1,1,1)
  2748. Old = New
  2749. coroutine.wrap(function()
  2750. for i = 1,0,-0.1 do
  2751. wait()
  2752. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2753. end
  2754. Trail:remove()
  2755. end)()
  2756. coroutine.wrap(function()
  2757. for i = 1,10 do
  2758. wait()
  2759. Trail.Transparency = Trail.Transparency +0.1
  2760. end end)()end end)()
  2761. coroutine.wrap(function()
  2762. local Old = Handle.CFrame.p
  2763. while wait()do
  2764. if not TrailDeb then break end
  2765. local New = Handle.CFrame.p
  2766. local Mag =(Old -New).magnitude
  2767. local Dis =(Old +New)/2
  2768. local Trail = Instance.new("Part",Character)
  2769. Trail.Material = "Neon"
  2770. Trail.Anchored = true
  2771. Trail.CanCollide = false
  2772. Trail.BrickColor = TorsoColor
  2773. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2774. Trail.TopSurface = 0
  2775. Trail.BottomSurface = 0
  2776. Trail.formFactor = "Custom"
  2777. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2778. local ms = Instance.new("BlockMesh",Trail)
  2779. ms.Scale = Vector3.new(1,1,1)
  2780. local TM = Instance.new("CylinderMesh",Trail)
  2781. TM.Scale = Vector3.new(1,1,1)
  2782. Old = New
  2783. coroutine.wrap(function()
  2784. for i = 1,0,-0.1 do
  2785. wait()
  2786. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2787. end
  2788. Trail:remove()
  2789. end)()
  2790. coroutine.wrap(function()
  2791. for i = 1,10 do
  2792. wait()
  2793. Trail.Transparency = Trail.Transparency +0.1
  2794. end end)()end end)()
  2795. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2796. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2797. so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9)
  2798. for i=0,1,0.08 do
  2799. swait()
  2800. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2801. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2802. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2803. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2)
  2804. Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2)
  2805. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  2806. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3)
  2807. end
  2808. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  2809. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2810. for i=0,1,0.08 do
  2811. swait()
  2812. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2814. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2815. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2)
  2816. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2)
  2817. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  2818. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  2819. end
  2820. --dmgstop()
  2821. attack=false
  2822. con1:disconnect()
  2823. con2:disconnect()
  2824. if TrailDeb == true then
  2825. TrailDeb = false
  2826. end
  2827. end
  2828.  
  2829. function Hai()
  2830. attack=true
  2831. Humanoid.WalkSpeed=0
  2832. so("http://www.roblox.com/asset/?id=159882567",Torso,1,1)
  2833. for i=0,1,0.1 do
  2834. swait()
  2835. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2836. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2837. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2838. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2839. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2840. 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)
  2841. 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)
  2842. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2843. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2844. end
  2845. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  2846. for i=0,1,0.1 do
  2847. swait()
  2848. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2850. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2851. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  2852. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2853. 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)
  2854. 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)
  2855. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5)
  2856. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2857. end
  2858. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2859. for i=0,1,0.1 do
  2860. swait()
  2861. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2862. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2863. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2864. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2865. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2866. 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)
  2867. 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)
  2868. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2869. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2870.  
  2871. end
  2872. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  2873. for i=0,1,0.1 do
  2874. swait()
  2875. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2876. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2877. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2878. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  2879. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2880. 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)
  2881. 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)
  2882. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3)
  2883. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2884. end
  2885. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2886. for i=0,1,0.1 do
  2887. swait()
  2888. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2889. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2890. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2891. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2892. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2893. 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)
  2894. 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)
  2895. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2896. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2897. end
  2898. --dmgstop()
  2899. Humanoid.WalkSpeed=12
  2900. attack=false
  2901. end
  2902.  
  2903. function Die()
  2904. attack=true
  2905. Footsteps:Stop()
  2906. Footsteps2:Stop()
  2907. local Fire = it("Sound",Character.Torso)
  2908. Fire.SoundId = "rbxassetid://192104941"
  2909. Fire.Looped = true
  2910. Fire.Pitch = 1
  2911. Fire.Volume = 1
  2912. local Fire2 = it("Sound",Handle2)
  2913. Fire2.SoundId = "rbxassetid://192104941"
  2914. Fire2.Looped = true
  2915. Fire2.Pitch = 1
  2916. Fire2.Volume = 1
  2917. local Fire3 = it("Sound",Handle)
  2918. Fire3.SoundId = "rbxassetid://192104941"
  2919. Fire3.Looped = true
  2920. Fire3.Pitch = 1
  2921. Fire3.Volume = 1
  2922. local Fire4 = it("Sound",handle)
  2923. Fire4.SoundId = "rbxassetid://192104941"
  2924. Fire4.Looped = true
  2925. Fire4.Pitch = 1
  2926. Fire4.Volume = 1
  2927. local fire = Instance.new("ParticleEmitter", Character.Torso)
  2928. fire.Lifetime = NumberRange.new(0.5)
  2929. fire.Speed = NumberRange.new(1, 3)
  2930. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  2931. fire.Rate = 0
  2932. fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2933. fire.LightEmission = 0.6
  2934. fire.Texture = "http://www.roblox.com/asset/?id=242911609"
  2935. fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2936. local fire2 = Instance.new("ParticleEmitter", Handle)
  2937. fire2.Lifetime = NumberRange.new(0.5)
  2938. fire2.Speed = NumberRange.new(1, 3)
  2939. fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  2940. fire2.Rate = 0
  2941. fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2942. fire2.LightEmission = 0.6
  2943. fire2.Texture = "http://www.roblox.com/asset/?id=242911609"
  2944. fire2.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2945. local fire3 = Instance.new("ParticleEmitter", Handle2)
  2946. fire3.Lifetime = NumberRange.new(0.5)
  2947. fire3.Speed = NumberRange.new(1, 3)
  2948. fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  2949. fire3.Rate = 0
  2950. fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2951. fire3.LightEmission = 0.6
  2952. fire3.Texture = "http://www.roblox.com/asset/?id=242911609"
  2953. fire3.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2954. local fire4 = Instance.new("ParticleEmitter", handle)
  2955. fire4.Lifetime = NumberRange.new(0.5)
  2956. fire4.Speed = NumberRange.new(1, 3)
  2957. fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  2958. fire4.Rate = 0
  2959. fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2960. fire4.LightEmission = 0.6
  2961. fire4.Texture = "http://www.roblox.com/asset/?id=242911609"
  2962. fire4.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2963. Humanoid.WalkSpeed = 0
  2964. so("http://www.roblox.com/asset/?id=199149297",Head,1,1)
  2965. so("http://www.roblox.com/asset/?id=209527203",Head,1,1)
  2966. for i=0,1,0.08 do
  2967. swait()
  2968. Torso.Velocity=RootPart.CFrame.lookVector*-30
  2969. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2)
  2970. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2)
  2971. handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2972. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2973. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2974. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2)
  2975. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2)
  2976. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2977. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2978. end
  2979. for i=0,1,0.005 do
  2980. swait()
  2981. moosick.Volume=1-2*i
  2982. light.Range=15-10*i
  2983. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  2984. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2985. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  2986. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  2987. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2988. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  2989. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2990. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2991. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2992. end
  2993. light.Range=0
  2994. for i=0,1,0.01 do
  2995. swait()
  2996. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  2997. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2998. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  2999. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  3000. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  3001. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  3002. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  3003. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3004. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3005. end
  3006. so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9)
  3007. fire.Rate = 1000
  3008. fire2.Rate = 1000
  3009. fire3.Rate = 1000
  3010. fire4.Rate = 1000
  3011. Fire:Play()
  3012. Fire2:Play()
  3013. Fire3:Play()
  3014. Fire4:Play()
  3015. for i=0,1,0.005 do
  3016. swait()
  3017. Character.Head.face.Transparency = 0+1*i
  3018. LeftArm.Transparency=0+1*i
  3019. RightArm.Transparency=0+1*i
  3020. LeftLeg.Transparency=0+1*i
  3021. RightLeg.Transparency=0+1*i
  3022. Head.Transparency=0+1*i
  3023. Torso.Transparency=0+1*i
  3024. for _,v in pairs(Character:children()) do
  3025. if v:IsA("Hat") then
  3026. v.Handle.Transparency = 0+1*i
  3027. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  3028. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  3029. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  3030. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  3031. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  3032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  3033. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  3034. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3035. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3036. end
  3037. end
  3038. --dmgstop()
  3039. end
  3040. Humanoid.Health = 0
  3041. end
  3042.  
  3043. equipanim()
  3044.  
  3045. local sine = 0
  3046. local change = 1
  3047. local val = 0
  3048.  
  3049. local mananum=0
  3050. while true do
  3051. swait()
  3052. sine = sine + change
  3053. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3054. local velderp=RootPart.Velocity.y
  3055. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3056. if equipped==true or equipped==false then
  3057. if Anim=="Idle" and attack==false then
  3058. idle=idle+1
  3059. else
  3060. idle=0
  3061. end
  3062. if Humanoid.Health <=20 then
  3063. if attack == false then
  3064. Humanoid.Health = math.huge
  3065. Die()
  3066. end
  3067. end
  3068. if idle>=1000 then
  3069. if attack==false then
  3070. --Sheath()
  3071. end
  3072. end
  3073. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3074. Anim="Jump"
  3075. if attack==false then
  3076. Footsteps:Stop()
  3077. Footsteps2:Stop()
  3078. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  3079. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3080. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  3081. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  3082. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3083. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  3084. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3085. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  3086. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  3087. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  3088. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  3089. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  3090. end
  3091. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3092. Anim="Fall"
  3093. if attack==false then
  3094. Footsteps:Stop()
  3095. Footsteps2:Stop()
  3096. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  3097. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3098. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  3099. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  3100. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3101. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  3102. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3103. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  3104. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  3105. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3106. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  3107. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  3108. end
  3109. elseif torvel<1 and hitfloor~=nil then
  3110. Anim="Idle"
  3111. change=0.5
  3112. if idle>=1000 then
  3113. if attack==false then
  3114. Footsteps:Stop()
  3115. Footsteps2:Stop()
  3116. Humanoid.WalkSpeed=12
  3117. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(50)),.1)
  3118. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(5+2*math.cos(sine/5.5)),math.rad(-5-2*math.cos(sine/5.5)),math.rad(-50)),.1)
  3119. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  3120. RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5)
  3121. LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5)
  3122. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3123. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3124. handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  3125. Handleweld.C0=clerp(Handleweld.C0,cf(-2,-1.5+1*math.cos(sine/50),6)*angles(math.rad(60),math.rad(-25),math.rad(-90)),.4)
  3126. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,1.5-0.5*math.cos(sine/50),-5)*angles(math.rad(-110),math.rad(25),math.rad(60)),.3)
  3127. end
  3128. else
  3129. if attack==false then
  3130. Footsteps:Stop()
  3131. Footsteps2:Stop()
  3132. Humanoid.WalkSpeed=12
  3133. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  3134. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  3135. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3136. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3)
  3137. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3)
  3138. 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(16)),.3)
  3139. LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3)
  3140. handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),0-0.5*math.cos(sine/20),0)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  3141. Handleweld.C0=clerp(Handleweld.C0,cf(0-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2)
  3142. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2)
  3143. end
  3144. end
  3145. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3146. Anim="Walk"
  3147. if attack==false then
  3148. change=0.8
  3149. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  3150. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  3151. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  3152. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  3153. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3154. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  3155. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3156. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3157. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  3158. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  3159. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  3160. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  3161. RH.C0=clerp(RH.C0,RHC0,.3)
  3162. LH.C0=clerp(LH.C0,LHC0,.3)
  3163. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3164. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3165. ]]--
  3166. Footsteps:Play()
  3167. Footsteps2:Stop()
  3168. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3)
  3169. Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3)
  3170. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3171. RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3)
  3172. LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3)
  3173. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  3174. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  3175. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3176. Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2)
  3177. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2)
  3178. end
  3179. elseif torvel>=22 and hitfloor~=nil then
  3180. Anim="Run"
  3181. change=1
  3182. if attack==false then
  3183. Footsteps:Stop()
  3184. Footsteps2:Play()
  3185. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3)
  3186. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  3187. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3188. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
  3189. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  3190. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  3191. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  3192. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3193. Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2)
  3194. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2)
  3195. end
  3196. end
  3197. end
  3198. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  3199. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  3200. if mana>=100 then
  3201. mana=100
  3202. else
  3203. if mananum<=8 then
  3204. mananum=mananum+1
  3205. else
  3206. mananum=0
  3207. mana=mana+1
  3208. end
  3209. end
  3210. end
  3211. -- ~CLarramore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement