Advertisement
vibrantsinger423

clawed

Apr 16th, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.53 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  6.  
  7. --[[ Leaked by CLarramore ]]--
  8. -- Ever since 3/10/2016 this script started to get popular in oxcool1's SB
  9. -- I am now spreading this on
  10. -- You can now make ur edits with this
  11. -- ENTIRELY OPEN SOURCED!!!! YAY!
  12. -- 1337 views. l0l
  13. -- NightOwlAce dont kill me
  14. Player= game:GetService("Players").LocalPlayer
  15. Character=Player.Character
  16. PlayerGui=Player.PlayerGui
  17. Backpack=Player.Backpack
  18. Torso=Character.Torso
  19. Head=Character.Head
  20. Humanoid=Character.Humanoid
  21. m=Instance.new('Model',Character)
  22. LeftArm=Character["Left Arm"]
  23. LeftLeg=Character["Left Leg"]
  24. RightArm=Character["Right Arm"]
  25. RightLeg=Character["Right Leg"]
  26. LS=Torso["Left Shoulder"]
  27. LH=Torso["Left Hip"]
  28. RS=Torso["Right Shoulder"]
  29. RH=Torso["Right Hip"]
  30. Face = Head.face
  31. Neck=Torso.Neck
  32. it=Instance.new
  33. attacktype=1
  34. vt=Vector3.new
  35. cf=CFrame.new
  36. euler=CFrame.fromEulerAnglesXYZ
  37. angles=CFrame.Angles
  38. cloaked=false
  39. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  40. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  41. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  42. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  43. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  44. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  45. RootPart=Character.HumanoidRootPart
  46. RootJoint=RootPart.RootJoint
  47. RootCF=euler(-1.57,0,3.14)
  48. attack = false
  49. attackdebounce = false
  50. deb=false
  51. equipped=true
  52. hand=false
  53. MMouse=nil
  54. combo=0
  55. mana=0
  56. trispeed=1
  57. pathtrans=.7
  58. attackmode='none'
  59. local idle=0
  60. local Anim="Idle"
  61. local Effects={}
  62. local gun=false
  63. local shoot=false
  64. player=nil
  65. cloak=false
  66. lightcolor='Bright blue'
  67.  
  68. local Color1=Torso.BrickColor
  69.  
  70. local fengui=it("GuiMain")
  71. fengui.Parent=Player.PlayerGui
  72. fengui.Name="WeaponGUI"
  73. local fenframe=it("Frame")
  74. fenframe.Parent=fengui
  75. fenframe.BackgroundColor3=Color3.new(255,255,255)
  76. fenframe.BackgroundTransparency=1
  77. fenframe.BorderColor3=Color3.new(17,17,17)
  78. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  79. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  80. local fenbarmana1=it("TextLabel")
  81. fenbarmana1.Parent=fenframe
  82. fenbarmana1.Text=" "
  83. fenbarmana1.BackgroundTransparency=0
  84. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  85. fenbarmana1.SizeConstraint="RelativeXY"
  86. fenbarmana1.TextXAlignment="Center"
  87. fenbarmana1.TextYAlignment="Center"
  88. fenbarmana1.Position=UDim2.new(0,0,0,0)
  89. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  90. local fenbarmana2=it("TextLabel")
  91. fenbarmana2.Parent=fenframe
  92. fenbarmana2.Text=" "
  93. fenbarmana2.BackgroundTransparency=0
  94. fenbarmana2.BackgroundColor3=Torso.Color
  95. fenbarmana2.SizeConstraint="RelativeXY"
  96. fenbarmana2.TextXAlignment="Center"
  97. fenbarmana2.TextYAlignment="Center"
  98. fenbarmana2.Position=UDim2.new(0,0,0,0)
  99. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  100. local fenbarmana3=it("TextLabel")
  101. fenbarmana3.Parent=fenframe
  102. fenbarmana3.Text=" "
  103. fenbarmana3.BackgroundTransparency=0
  104. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  105. fenbarmana3.SizeConstraint="RelativeXY"
  106. fenbarmana3.TextXAlignment="Center"
  107. fenbarmana3.TextYAlignment="Center"
  108. fenbarmana3.Position=UDim2.new(0,0,0,0)
  109. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  110. local fenbarmana4=it("TextLabel")
  111. fenbarmana4.Parent=fenframe
  112. fenbarmana4.Text="Energy("..mana..")"
  113. fenbarmana4.BackgroundTransparency=1
  114. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  115. fenbarmana4.SizeConstraint="RelativeXY"
  116. fenbarmana4.TextXAlignment="Center"
  117. fenbarmana4.TextYAlignment="Center"
  118. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  119. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  120. fenbarmana4.FontSize="Size9"
  121. fenbarmana4.TextStrokeTransparency=0
  122. fenbarmana4.TextColor=BrickColor.new("White")
  123.  
  124. mouse=Player:GetMouse()
  125. --save shoulders
  126. RSH, LSH=nil, nil
  127. --welds
  128. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  129. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  130. LH=Torso["Left Hip"]
  131. RH=Torso["Right Hip"]
  132. TorsoColor=Torso.BrickColor
  133. function NoOutline(Part)
  134. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  135. end
  136. player=Player
  137. ch=Character
  138. RSH=ch.Torso["Right Shoulder"]
  139. LSH=ch.Torso["Left Shoulder"]
  140. --
  141. RSH.Parent=nil
  142. LSH.Parent=nil
  143. --
  144. RW.Name="Right Shoulder"
  145. RW.Part0=ch.Torso
  146. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  147. RW.C1=cf(0, 0.5, 0)
  148. RW.Part1=ch["Right Arm"]
  149. RW.Parent=ch.Torso
  150. --
  151. LW.Name="Left Shoulder"
  152. LW.Part0=ch.Torso
  153. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  154. LW.C1=cf(0, 0.5, 0)
  155. LW.Part1=ch["Left Arm"]
  156. LW.Parent=ch.Torso
  157.  
  158. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  159. local fp=it("Part")
  160. fp.formFactor=formfactor
  161. fp.Parent=parent
  162. fp.Reflectance=reflectance
  163. fp.Transparency=transparency
  164. fp.CanCollide=false
  165. fp.Locked=true
  166. fp.BrickColor=brickcolor
  167. fp.Name=name
  168. fp.Size=size
  169. fp.Position=Torso.Position
  170. NoOutline(fp)
  171. fp.Material="Neon"
  172. fp:BreakJoints()
  173. return fp
  174. end
  175.  
  176. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  177. local mesh=it(Mesh)
  178. mesh.Parent=part
  179. if Mesh=="SpecialMesh" then
  180. mesh.MeshType=meshtype
  181. if meshid~="nil" then
  182. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  183. end
  184. end
  185. mesh.Offset=offset
  186. mesh.Scale=scale
  187. return mesh
  188. end
  189.  
  190. function weld(parent,part0,part1,c0)
  191. local weld=it("Weld")
  192. weld.Parent=parent
  193. weld.Part0=part0
  194. weld.Part1=part1
  195. weld.C0=c0
  196. return weld
  197. end
  198.  
  199. local Color1=Torso.BrickColor
  200.  
  201. local bodvel=Instance.new("BodyVelocity")
  202. local bg=Instance.new("BodyGyro")
  203.  
  204. function swait(num)
  205. if num==0 or num==nil then
  206. game:service'RunService'.Stepped:wait(0)
  207. else
  208. for i=0,num do
  209. game:service'RunService'.Stepped:wait(0)
  210. end
  211. end
  212. end
  213.  
  214.  
  215. so = function(id,par,vol,pit)
  216. coroutine.resume(coroutine.create(function()
  217. local sou = Instance.new("Sound",par or workspace)
  218. sou.Volume=vol
  219. sou.Pitch=pit or 1
  220. sou.SoundId=id
  221. swait()
  222. sou:play()
  223. game:GetService("Debris"):AddItem(sou,6)
  224. end))
  225. end
  226.  
  227. function clerp(a,b,t)
  228. local qa = {QuaternionFromCFrame(a)}
  229. local qb = {QuaternionFromCFrame(b)}
  230. local ax, ay, az = a.x, a.y, a.z
  231. local bx, by, bz = b.x, b.y, b.z
  232. local _t = 1-t
  233. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  234. end
  235.  
  236. function QuaternionFromCFrame(cf)
  237. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  238. local trace = m00 + m11 + m22
  239. if trace > 0 then
  240. local s = math.sqrt(1 + trace)
  241. local recip = 0.5/s
  242. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  243. else
  244. local i = 0
  245. if m11 > m00 then
  246. i = 1
  247. end
  248. if m22 > (i == 0 and m00 or m11) then
  249. i = 2
  250. end
  251. if i == 0 then
  252. local s = math.sqrt(m00-m11-m22+1)
  253. local recip = 0.5/s
  254. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  255. elseif i == 1 then
  256. local s = math.sqrt(m11-m22-m00+1)
  257. local recip = 0.5/s
  258. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  259. elseif i == 2 then
  260. local s = math.sqrt(m22-m00-m11+1)
  261. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  262. end
  263. end
  264. end
  265.  
  266. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  267. local xs, ys, zs = x + x, y + y, z + z
  268. local wx, wy, wz = w*xs, w*ys, w*zs
  269. local xx = x*xs
  270. local xy = x*ys
  271. local xz = x*zs
  272. local yy = y*ys
  273. local yz = y*zs
  274. local zz = z*zs
  275. 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))
  276. end
  277.  
  278. function QuaternionSlerp(a, b, t)
  279. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  280. local startInterp, finishInterp;
  281. if cosTheta >= 0.0001 then
  282. if (1 - cosTheta) > 0.0001 then
  283. local theta = math.acos(cosTheta)
  284. local invSinTheta = 1/math.sin(theta)
  285. startInterp = math.sin((1-t)*theta)*invSinTheta
  286. finishInterp = math.sin(t*theta)*invSinTheta
  287. else
  288. startInterp = 1-t
  289. finishInterp = t
  290. end
  291. else
  292. if (1+cosTheta) > 0.0001 then
  293. local theta = math.acos(-cosTheta)
  294. local invSinTheta = 1/math.sin(theta)
  295. startInterp = math.sin((t-1)*theta)*invSinTheta
  296. finishInterp = math.sin(t*theta)*invSinTheta
  297. else
  298. startInterp = t-1
  299. finishInterp = t
  300. end
  301. end
  302. 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
  303. end
  304.  
  305. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  306. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  307. end
  308.  
  309. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  310. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  311. prt.Anchored=true
  312. prt.CFrame=cframe
  313. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  314. --http://www.roblox.com/asset/?id=4770560
  315. game:GetService("Debris"):AddItem(prt,2)
  316. CF=prt.CFrame
  317. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  318. for i=0,1,0.2 do
  319. wait()
  320. Part.CFrame=CF*cf(0,0,-0.4)
  321. end
  322. for i=0,1,delay do
  323. wait()
  324. --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)
  325. Mesh.Scale=Mesh.Scale
  326. end
  327. for i=0,1,0.1 do
  328. wait()
  329. Part.Transparency=i
  330. end
  331. Part.Parent=nil
  332. end),prt,msh,CF)
  333. end
  334.  
  335. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  336. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  337. prt.Anchored=true
  338. prt.CFrame=cframe
  339. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  340. game:GetService("Debris"):AddItem(prt,5)
  341. coroutine.resume(coroutine.create(function(Part,Mesh)
  342. for i=0,1,delay do
  343. wait()
  344. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  345. Part.Transparency=i
  346. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  347. end
  348. Part.Parent=nil
  349. end),prt,msh)
  350. end
  351.  
  352. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  353. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  354. prt.Anchored=false
  355. prt.CFrame=cframe
  356. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  357. local wld=weld(prt,prt,Parent,cframe)
  358. game:GetService("Debris"):AddItem(prt,5)
  359. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  360. for i=0,1,delay do
  361. wait()
  362. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  363. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  364. Part.Transparency=i
  365. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  366. end
  367. Part.Parent=nil
  368. end),prt,msh,wld)
  369. end
  370.  
  371. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  372. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  373. prt.Anchored=false
  374. prt.CFrame=cframe
  375. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  376. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  377. game:GetService("Debris"):AddItem(prt,5)
  378. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  379. for i=0,1,delay do
  380. wait()
  381. Weld.C0=euler(i*20,0,0)
  382. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  383. Part.Transparency=i
  384. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  385. end
  386. Part.Parent=nil
  387. end),prt,msh,wld)
  388. end
  389.  
  390. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  391. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  392. prt.Anchored=true
  393. prt.CFrame=cframe
  394. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  395. game:GetService("Debris"):AddItem(prt,2)
  396. coroutine.resume(coroutine.create(function(Part,Mesh)
  397. for i=0,1,delay do
  398. wait()
  399. Part.CFrame=Part.CFrame
  400. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  401. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  402. prt2.Anchored=true
  403. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  404. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  405. game:GetService("Debris"):AddItem(prt2,2)
  406. coroutine.resume(coroutine.create(function(Part,Mesh)
  407. for i=0,1,0.1 do
  408. wait()
  409. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  410. end
  411. Part.Parent=nil
  412. end),prt2,msh2)
  413. end
  414. for i=0,1,delay*2 do
  415. wait()
  416. Part.CFrame=Part.CFrame
  417. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  418. end
  419. Part.Parent=nil
  420. end),prt,msh)
  421. end
  422.  
  423. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  424. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  425. prt.Anchored=true
  426. prt.CFrame=cframe
  427. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  428. game:GetService("Debris"):AddItem(prt,2)
  429. coroutine.resume(coroutine.create(function(Part,Mesh)
  430. for i=0,1,delay do
  431. wait()
  432. Part.CFrame=Part.CFrame
  433. Part.Transparency=i
  434. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  435. end
  436. Part.Parent=nil
  437. end),prt,msh)
  438. end
  439.  
  440. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  441. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  442. prt.Anchored=true
  443. prt.CFrame=cframe*euler(x2,y2,z2)
  444. --"http://www.roblox.com/asset/?id=168892465"
  445. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  446. game:GetService("Debris"):AddItem(prt,2)
  447. coroutine.resume(coroutine.create(function(Part,Mesh)
  448. for i=0,1,0.03 do
  449. wait()
  450. Part.CFrame=Part.CFrame
  451. Part.Transparency=i
  452. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  453. end
  454. Part.Parent=nil
  455. end),prt,msh)
  456. end
  457.  
  458. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  459. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  460. prt.Anchored=true
  461. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  462. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  463. game:GetService("Debris"):AddItem(prt,2)
  464. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  465. CF=Part.CFrame
  466. Numbb=0
  467. randnumb=math.random()/10
  468. rand1=math.random()/10
  469. for i=0,1,rand1 do
  470. wait()
  471. CF=CF*cf(0,math.random()/2,0)
  472. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  473. Part.CFrame=CF*euler(Numbb,0,0)
  474. Part.Transparency=i
  475. Numbb=Numbb+randnumb
  476. end
  477. Part.Parent=nil
  478. end),prt,CF,Numbb,randnumb)
  479. end
  480.  
  481. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  482. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  483. prt.Anchored=true
  484. prt.CFrame=cframe
  485. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  486. game:GetService("Debris"):AddItem(prt,5)
  487. coroutine.resume(coroutine.create(function(Part,Mesh)
  488. for i=0,1,delay do
  489. wait()
  490. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  491. Part.Transparency=i
  492. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  493. end
  494. Part.Parent=nil
  495. end),prt,msh)
  496. end
  497.  
  498. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  499. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  500. prt.Anchored=true
  501. prt.CFrame=cframe
  502. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  503. game:GetService("Debris"):AddItem(prt,2)
  504. coroutine.resume(coroutine.create(function(Part,Mesh)
  505. for i=0,1,delay do
  506. wait()
  507. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  508. Part.Transparency=i
  509. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  510. end
  511. Part.Parent=nil
  512. end),prt,msh)
  513. end
  514.  
  515. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  516. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  517. prt.Anchored=true
  518. prt.CFrame=cframe*cf(x,y,z)
  519. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  520. game:GetService("Debris"):AddItem(prt,5)
  521. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  522. local num=math.random()
  523. local num2=math.random(-3,2)+math.random()
  524. local numm=0
  525. for i=0,1,delay*2 do
  526. swait()
  527. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  528. Part.Transparency=i
  529. numm=numm+0.01
  530. end
  531. Part.Parent=nil
  532. Mesh.Parent=nil
  533. end),prt,msh,x,y,z)
  534. end
  535.  
  536. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  537. if hit.Parent==nil then
  538. return
  539. end
  540. h=hit.Parent:FindFirstChild("Humanoid")
  541. for _,v in pairs(hit.Parent:children()) do
  542. if v:IsA("Humanoid") then
  543. h=v
  544. end
  545. end
  546. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  547. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  548. end
  549. if hit.Parent.className=="Hat" then
  550. hit=hit.Parent.Parent:findFirstChild("Head")
  551. end
  552. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  553. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  554. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  555. return
  556. end]]
  557. -- hs(hit,1.2)
  558. c=Instance.new("ObjectValue")
  559. c.Name="creator"
  560. c.Value=game:GetService("Players").LocalPlayer
  561. c.Parent=h
  562. game:GetService("Debris"):AddItem(c,.5)
  563. Damage=math.random(minim,maxim)
  564. -- h:TakeDamage(Damage)
  565. blocked=false
  566. block=hit.Parent:findFirstChild("Block")
  567. if block~=nil then
  568. print(block.className)
  569. if block.className=="NumberValue" then
  570. if block.Value>0 then
  571. blocked=true
  572. if decreaseblock==nil then
  573. block.Value=block.Value-1
  574. end
  575. end
  576. end
  577. if block.className=="IntValue" then
  578. if block.Value>0 then
  579. blocked=true
  580. if decreaseblock~=nil then
  581. block.Value=block.Value-1
  582. end
  583. end
  584. end
  585. end
  586. if blocked==false then
  587. -- h:TakeDamage(Damage)
  588. h.Health=h.Health-Damage
  589. showDamage(hit.Parent,Damage,.5,TorsoColor)
  590. else
  591. h.Health=h.Health-(Damage/2)
  592. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  593. end
  594. if Type=="Knockdown" then
  595. hum=hit.Parent.Humanoid
  596. hum.PlatformStand=true
  597. coroutine.resume(coroutine.create(function(HHumanoid)
  598. swait(1)
  599. HHumanoid.PlatformStand=false
  600. end),hum)
  601. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  602. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  603. local bodvol=Instance.new("BodyVelocity")
  604. bodvol.velocity=angle*knockback
  605. bodvol.P=5000
  606. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  607. bodvol.Parent=hit
  608. rl=Instance.new("BodyAngularVelocity")
  609. rl.P=3000
  610. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  611. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  612. rl.Parent=hit
  613. game:GetService("Debris"):AddItem(bodvol,.5)
  614. game:GetService("Debris"):AddItem(rl,.5)
  615. elseif Type=="Normal" then
  616. vp=Instance.new("BodyVelocity")
  617. vp.P=500
  618. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  619. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  620. if KnockbackType==1 then
  621. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  622. elseif KnockbackType==2 then
  623. vp.velocity=Property.CFrame.lookVector*knockback
  624. end
  625. if knockback>0 then
  626. vp.Parent=hit.Parent.Torso
  627. end
  628. game:GetService("Debris"):AddItem(vp,.5)
  629. elseif Type=="Up" then
  630. local bodyVelocity=Instance.new("BodyVelocity")
  631. bodyVelocity.velocity=vt(0,10,0)
  632. bodyVelocity.P=1000
  633. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  634. bodyVelocity.Parent=hit
  635. game:GetService("Debris"):AddItem(bodyVelocity,1)
  636. rl=Instance.new("BodyAngularVelocity")
  637. rl.P=3000
  638. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  639. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  640. rl.Parent=hit
  641. game:GetService("Debris"):AddItem(rl,.5)
  642. elseif Type=="Snare" then
  643. bp=Instance.new("BodyPosition")
  644. bp.P=2000
  645. bp.D=100
  646. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  647. bp.position=hit.Parent.Torso.Position
  648. bp.Parent=hit.Parent.Torso
  649. game:GetService("Debris"):AddItem(bp,1)
  650. elseif Type=="Target" then
  651. if Targetting==false then
  652. ZTarget=hit.Parent.Torso
  653. coroutine.resume(coroutine.create(function(Part)
  654. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  655. swait(5)
  656. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  657. end),ZTarget)
  658. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  659. targetgui=Instance.new("BillboardGui")
  660. targetgui.Parent=ZTarget
  661. targetgui.Size=UDim2.new(10,100,10,100)
  662. targ=Instance.new("ImageLabel")
  663. targ.Parent=targetgui
  664. targ.BackgroundTransparency=1
  665. targ.Image="rbxassetid://4834067"
  666. targ.Size=UDim2.new(1,0,1,0)
  667. cam.CameraType="Scriptable"
  668. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  669. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  670. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  671. Targetting=true
  672. RocketTarget=ZTarget
  673. for i=1,Property do
  674. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  675. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  676. swait()
  677. end
  678. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  679. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  680. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  681. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  682. end
  683. Targetting=false
  684. RocketTarget=nil
  685. targetgui.Parent=nil
  686. cam.CameraType="Custom"
  687. end
  688. end
  689. debounce=Instance.new("BoolValue")
  690. debounce.Name="DebounceHit"
  691. debounce.Parent=hit.Parent
  692. debounce.Value=true
  693. game:GetService("Debris"):AddItem(debounce,Delay)
  694. c=Instance.new("ObjectValue")
  695. c.Name="creator"
  696. c.Value=Player
  697. c.Parent=h
  698. game:GetService("Debris"):AddItem(c,.5)
  699. CRIT=false
  700. hitDeb=true
  701. AttackPos=6
  702. end
  703. end
  704.  
  705. showDamage=function(Char,Dealt,du,Color)
  706. m=Instance.new("Model")
  707. m.Name=tostring(Dealt)
  708. h=Instance.new("Humanoid")
  709. h.Health=0
  710. h.MaxHealth=0
  711. h.Parent=m
  712. c=Instance.new("Part")
  713. c.Transparency=0
  714. c.BrickColor=TorsoColor
  715. c.Name="Head"
  716. c.TopSurface=0
  717. c.BottomSurface=0
  718. c.formFactor="Plate"
  719. c.Size=Vector3.new(1,.4,1)
  720. ms=Instance.new("CylinderMesh")
  721. ms.Scale=Vector3.new(.8,.8,.8)
  722. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  723. if CRIT==true then
  724. ms.Scale=Vector3.new(1,1.25,1)
  725. end
  726. ms.Parent=c
  727. c.Reflectance=0
  728. Instance.new("BodyGyro").Parent=c
  729. c.Parent=m
  730. if Char:findFirstChild("Head")~=nil then
  731. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  732. elseif Char.Parent:findFirstChild("Head")~=nil then
  733. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  734. end
  735. f=Instance.new("BodyPosition")
  736. f.P=2000
  737. f.D=100
  738. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  739. f.position=c.Position+Vector3.new(0,3,0)
  740. f.Parent=c
  741. game:GetService("Debris"):AddItem(m,.5+du)
  742. c.CanCollide=false
  743. m.Parent=workspace
  744. c.CanCollide=false
  745. end
  746.  
  747. Player=game:GetService("Players").LocalPlayer
  748. Character=Player.Character
  749. m=Instance.new('Model',Character)
  750.  
  751.  
  752. local function weldBetween(a, b)
  753. local weldd = Instance.new("ManualWeld")
  754. weldd.Part0 = a
  755. weldd.Part1 = b
  756. weldd.C0 = CFrame.new()
  757. weldd.C1 = b.CFrame:inverse() * a.CFrame
  758. weldd.Parent = a
  759. return weldd
  760. end
  761.  
  762. it=Instance.new
  763.  
  764. function nooutline(part)
  765. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  766. end
  767.  
  768. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  769. local fp=it("Part")
  770. fp.formFactor=formfactor
  771. fp.Parent=parent
  772. fp.Reflectance=reflectance
  773. fp.Transparency=transparency
  774. fp.CanCollide=false
  775. fp.Locked=true
  776. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  777. fp.Name=name
  778. fp.Size=size
  779. fp.Position=Character.Torso.Position
  780. nooutline(fp)
  781. fp.Material=material
  782. fp:BreakJoints()
  783. return fp
  784. end
  785.  
  786. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  787. local mesh=it(Mesh)
  788. mesh.Parent=part
  789. if Mesh=="SpecialMesh" then
  790. mesh.MeshType=meshtype
  791. mesh.MeshId=meshid
  792. end
  793. mesh.Offset=offset
  794. mesh.Scale=scale
  795. return mesh
  796. end
  797.  
  798. function weld(parent,part0,part1,c0,c1)
  799. local weld=it("Weld")
  800. weld.Parent=parent
  801. weld.Part0=part0
  802. weld.Part1=part1
  803. weld.C0=c0
  804. weld.C1=c1
  805. return weld
  806. end
  807.  
  808. local modelzorz=Instance.new("Model")
  809. modelzorz.Parent=Character
  810. modelzorz.Name="Claw1"
  811.  
  812. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1))
  813. 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))
  814. mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  815. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  816. 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))
  817. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  818. 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))
  819. 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))
  820. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  821. 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))
  822. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  823. 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))
  824. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  825. 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))
  826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  827. 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))
  828. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  829. 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))
  830. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  831. 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))
  832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  833. 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))
  834. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  835. 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))
  836. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  837. 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))
  838. 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))
  839. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  840. 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))
  841. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  842. 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))
  843. 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))
  844. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  845. 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))
  846. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  847. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  848. 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))
  849. 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))
  850. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  851. 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))
  852. 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))
  853.  
  854. --[[
  855. local modelzorz2=Instance.new("Model")
  856. modelzorz2.Parent=Character
  857. modelzorz2.Name="Claw2"
  858.  
  859. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1))
  860. 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))
  861. mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  862. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  863. 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))
  864. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  865. 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))
  866. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  867. 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))
  868. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  869. 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))
  870. 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))
  871. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  872. 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))
  873. 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))
  874. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  875. 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))
  876. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  877. 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))
  878. 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))
  879. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  880. 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))
  881. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  882. 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))
  883. 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))
  884. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  885. 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))
  886. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  887. 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))
  888. 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))
  889. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  890. 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))
  891. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  892. 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))
  893. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  894. 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))
  895. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  896. 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))
  897. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  898. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  899. 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))
  900. ]]--
  901.  
  902. --[[
  903. -- GUN PART ---------------------------
  904.  
  905.  
  906. HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HandleB",Vector3.new(1, 1, 0.800000072))
  907. HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.34057617e-005, 0.000112533569, -8.82148743e-006, -5.13637077e-010, -9.34523126e-010, 0.999993324, 0.999993324, -1.55961271e-008, 5.12500209e-010, 1.54810991e-008, 0.999992251, 9.32938282e-010))
  908. Barrel4A=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Barrel4A",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  909. Barrel4Aweld=weld(m,HandleB,Barrel4A,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700273514, -1.89999568, -0.200382233, 7.9176798e-006, 0.999986649, 1.00922007e-005, 5.66249946e-006, 1.00922507e-005, -1, -0.999986649, 7.91774073e-006, -5.66249219e-006))
  910. Barrel5A=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Barrel5A",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  911. Barrel5Aweld=weld(m,HandleB,Barrel5A,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700338364, -1.89999771, 0.0996551514, 7.91767525e-006, 0.999986649, 1.00922598e-005, 5.662278e-006, 1.00923098e-005, -1, -0.999986649, 7.91773527e-006, -5.66227072e-006))
  912. Barrel6A=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Barrel6A",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  913. Barrel6Aweld=weld(m,HandleB,Barrel6A,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700332642, -1.89999914, 0.399604797, 7.91767798e-006, 0.999986649, 1.00922207e-005, 5.66242488e-006, 1.00922707e-005, -1, -0.999986649, 7.917738e-006, -5.66241761e-006))
  914. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  915. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.39950943, -2.3000021, -0.700250626, 0.999986649, 2.24909646e-010, 4.70967154e-010, -4.74188411e-010, -5.56574378e-008, 1, 2.27183439e-010, -0.999986649, -5.54278046e-008))
  916. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  917. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.800000012))
  918. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.200298309, 1.70499992, -0.70026207, 0.999986649, 3.25459687e-010, 6.09574891e-010, -6.1279426e-010, -5.37770717e-008, 1, 3.27733451e-010, -0.999986649, -5.35474207e-008))
  919. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.74000001, 1, 1))
  920. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000036, 0.210000008, 0.800000012))
  921. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0996704102, 1.70499897, -0.700256348, 0.999986649, 3.25459326e-010, 6.09557238e-010, -6.12776663e-010, -5.28618074e-008, 1, 3.27733063e-010, -0.999986649, -5.26321386e-008))
  922. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.74000001, 1, 1))
  923. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Dark blue","Part",Vector3.new(0.400000006, 0.400000006, 0.200000003))
  924. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0994110107, -0.700311661, -1.70000124, -0.999993324, -5.12500209e-010, -9.32938282e-010, 5.13637077e-010, -0.999993324, -1.54810991e-008, -9.34530342e-010, -1.55962478e-008, 1))
  925. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.399999976, 0.399999946, 0.559999943))
  926. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Dark blue","Part",Vector3.new(0.400000006, 0.400000006, 0.200000003))
  927. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0994110107, -0.700311661, 0.699999332, -0.999993324, -5.12500209e-010, -9.32938282e-010, 5.13637077e-010, -0.999993324, -1.54810991e-008, -9.34530342e-010, -1.55962478e-008, 1))
  928. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.399999976, 0.399999946, 0.559999943))
  929. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.210000008))
  930. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000354766846, 0.699999332, 0.404693604, 0.999986649, 1.1949472e-010, 2.8891356e-010, -2.92137314e-010, -5.02095787e-008, 1, 1.21768429e-010, -0.999986649, -4.9979878e-008))
  931. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  932. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0994300842, -1.89999723, -0.700302124, 0.999986649, 1.81069548e-010, 4.05318112e-010, -4.08540202e-010, -5.60037847e-008, 1, 1.83343313e-010, -0.999986649, -5.57741586e-008))
  933. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  934. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.210000008))
  935. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00016784668, -0.700058937, 0.404985428, 0.999986649, 5.06481115e-007, -8.88550039e-006, 8.88538398e-006, -1.53480414e-005, 1, 5.06347078e-007, -0.999986649, -1.53480123e-005))
  936. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  937. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410140991, -0.700058937, -2.86102295e-005, 0.999986649, 5.06480035e-007, -8.88562045e-006, 8.88550676e-006, -1.53479523e-005, 1, 5.06345941e-007, -0.999986649, -1.53479305e-005))
  938. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  939. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409835815, -0.700058699, -2.47955322e-005, 0.999986649, 5.06473384e-007, -8.88574777e-006, 8.88563409e-006, -1.53484561e-005, 1, 5.0633929e-007, -0.999986649, -1.53484343e-005))
  940. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  941. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.200374603, 1.69999969, -0.700273514, 0.999986649, 1.95510885e-010, 4.26103208e-010, -4.29325075e-010, -5.68092915e-008, 1, 1.9778465e-010, -0.999986649, -5.65796761e-008))
  942. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  943. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999986, 0.400000036))
  944. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0995597839, 0.899998665, -0.700296402, 0.999986649, 1.82185933e-010, 4.06940814e-010, -4.10131984e-010, -5.61190348e-008, 1, 1.84459698e-010, -0.999986649, -5.58892772e-008))
  945. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  946. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 0.80000025))
  947. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400348663, 0.700309753, -1.39999938, 0.999986649, 4.33706404e-011, 9.50293177e-011, -4.56443772e-011, 0.999986649, 2.17802665e-010, -9.82245951e-011, -4.48304505e-010, 1))
  948. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.599999964))
  949. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700330734, -0.600002289, -0.199569702, 1.87184696e-006, -0.999986649, 1.0768357e-006, -3.12246243e-007, -1.0765915e-006, -1, 0.999986649, 1.87184435e-006, -3.12255651e-007))
  950. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  951. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.39999986, 0.400000036))
  952. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399551392, 0.900000334, -0.700281143, 0.999986649, 2.12532297e-010, 4.46642945e-010, -4.4986459e-010, -5.53439889e-008, 1, 2.14806062e-010, -0.999986649, -5.51143557e-008))
  953. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  954. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Dark blue","Part",Vector3.new(0.400000006, 0.400000006, 0.200000003))
  955. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0994110107, -0.700311661, 1.49999881, -0.999993324, -5.12500209e-010, -9.32938282e-010, 5.13637077e-010, -0.999993324, -1.54810991e-008, -9.34530342e-010, -1.55962478e-008, 1))
  956. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.399999976, 0.399999946, 0.559999943))
  957. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Dark blue","Part",Vector3.new(0.400000006, 0.400000006, 0.200000003))
  958. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0994110107, -0.700311661, -1.10000229, -0.999993324, -5.12500209e-010, -9.32938282e-010, 5.13637077e-010, -0.999993324, -1.54810991e-008, -9.34530342e-010, -1.55962478e-008, 1))
  959. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.399999976, 0.399999946, 0.559999943))
  960. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.19999969, 0.400000006))
  961. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.200496674, -1.60000134, -0.700332642, 0.999986649, 1.74215392e-010, 3.95577848e-010, -3.98800049e-010, -5.57730289e-008, 1, 1.76489184e-010, -0.999986649, -5.55433957e-008))
  962. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  963. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.39999986, 0.400000036))
  964. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.200405121, 0.900000334, -0.700304031, 0.999986649, 2.04794931e-010, 4.35489422e-010, -4.38711178e-010, -5.59133824e-008, 1, 2.07068696e-010, -0.999986649, -5.56837598e-008))
  965. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  966. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.399999976))
  967. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700307846, -0.600000143, 0.299545288, 1.0860814e-006, -0.999986649, 1.22885763e-006, 2.51865401e-007, 1.22861104e-006, 1, -0.999986649, -1.08607878e-006, 2.51873274e-007))
  968. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  969. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.400000006, 0.400000066))
  970. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0996398926, 0.70029068, -2.14576721e-006, 0.999986649, 3.7787995e-011, 9.27144472e-011, -4.00617317e-011, 0.999986649, 1.00676356e-009, -9.59097246e-011, -1.23725208e-009, 1))
  971. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  972. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.200492859, -2.30000019, -0.700273514, 0.999986649, 2.13633666e-010, 4.54880855e-010, -4.58102278e-010, -5.5424934e-008, 1, 2.15907459e-010, -0.999986649, -5.51953008e-008))
  973. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  974. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.99999988, 0.400000036))
  975. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399505615, -1.20000219, -0.700250626, 0.999986649, 2.20402863e-010, 4.64567773e-010, -4.67789085e-010, -5.56560096e-008, 1, 2.22676655e-010, -0.999986649, -5.54263728e-008))
  976. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  977. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.800000012))
  978. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399719238, 1.70499969, -0.700256348, 0.999986649, 3.29966443e-010, 6.15962115e-010, -6.19181484e-010, -5.33209956e-008, 1, 3.3224018e-010, -0.999986649, -5.3091334e-008))
  979. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.74000001, 1, 1))
  980. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright orange","Part",Vector3.new(0.400000006, 0.400000006, 0.200000003))
  981. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0994110107, -0.700311661, 1.09999871, -0.999993324, -5.12500209e-010, -9.32938282e-010, 5.13637077e-010, -0.999993324, -1.54810991e-008, -9.34530342e-010, -1.55962478e-008, 1))
  982. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.399999976, 0.399999946, 3.8599999))
  983. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1.80000019))
  984. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400318146, 0.700298309, -0.100000381, 0.999986649, 2.87218582e-011, 7.42863548e-011, -3.0995595e-011, 0.999986649, 3.27936789e-010, -7.74819098e-011, -5.58436852e-010, 1))
  985. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000036, 0.400000006, 0.800000072))
  986. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100364685, 0.700286865, -0.600000858, 0.999986649, 2.75119372e-011, 7.16121606e-011, -2.97856739e-011, 0.999986649, 4.25513846e-010, -7.48077711e-011, -6.56010357e-010, 1))
  987. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  988. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700284958, -0.900002718, 0.400382996, 2.85113333e-006, -0.999986649, 1.24790631e-006, -2.03824266e-006, -1.24766507e-006, -1, 0.999986649, 2.85112856e-006, -2.03827699e-006))
  989. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  990. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  991. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409973145, 0.700000763, 8.39233398e-005, 0.999986649, 3.77252896e-010, 6.4611394e-010, -6.49305831e-010, -4.78722271e-008, 1, 3.79512477e-010, -0.999986649, -4.76382809e-008))
  992. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.210000008))
  993. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000339508057, 0.699999332, -0.405292511, 0.999986649, 1.17249405e-010, 2.85726331e-010, -2.88950197e-010, -5.04469853e-008, 1, 1.19523141e-010, -0.999986649, -5.0217281e-008))
  994. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  995. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409610748, 0.699999332, -0.000310897827, 0.999986649, 1.17249349e-010, 2.85726443e-010, -2.88950308e-010, -5.04469853e-008, 1, 1.19523086e-010, -0.999986649, -5.0217281e-008))
  996. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.210000008))
  997. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000164031982, -0.700058937, -0.405000687, 0.999986649, 5.06467813e-007, -8.88587419e-006, 8.88576051e-006, -1.53488418e-005, 1, 5.0633372e-007, -0.999986649, -1.53488199e-005))
  998. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.59999967, 0.400000036))
  999. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0994300842, -1.00000286, -0.700296402, 0.999986649, 1.7766863e-010, 4.00603883e-010, -4.03795108e-010, -5.63463871e-008, 1, 1.79942367e-010, -0.999986649, -5.61166367e-008))
  1000. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1001. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  1002. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.70032692, -2.19999671, 0.400455475, -1.13279009e-006, 0.999986649, -1.23916982e-006, 3.2159258e-007, 1.23892323e-006, 1, 0.999986649, 1.13278747e-006, -3.21601505e-007))
  1003. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1004. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  1005. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0995979309, 1.69999874, -0.700267792, 0.999986649, 1.93360383e-010, 4.22906765e-010, -4.26128688e-010, -5.61221967e-008, 1, 1.9563412e-010, -0.999986649, -5.58925741e-008))
  1006. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1007. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  1008. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399623871, 1.69999945, -0.70026207, 0.999986649, 1.97764305e-010, 4.29296765e-010, -4.32518632e-010, -5.65812428e-008, 1, 2.00038042e-010, -0.999986649, -5.63516203e-008))
  1009. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1010.  
  1011.  
  1012. -- GUN PART ---------------------------
  1013.  
  1014. -- barrel -------
  1015.  
  1016. GunHandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","GunHandleA",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1017. GunHandleAweld=weld(m,GunConnectorA,GunHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000495910645, -0.00170707703, -0.00163197517, 0.999986649, 4.22736013e-011, 1.67127983e-008, -4.45420784e-011, 0.999986649, 6.05984596e-009, -1.67201968e-008, -6.30252028e-009, 1))
  1018. mesh("CylinderMesh",GunHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1019. GunHandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","GunHandleB",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1020. GunHandleBweld=weld(m,GunConnectorB,GunHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.19616699e-005, -7.62939453e-006, -1.66893005e-006, 0.999986649, 1.24759092e-011, 7.23904825e-011, -1.47443169e-011, 0.999986649, 2.54799559e-009, -8.00138289e-011, -2.79077916e-009, 1))
  1021. mesh("CylinderMesh",GunHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1022.  
  1023. BackHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BackHandle",Vector3.new(0.800000012, 0.600000024, 1.20000005))
  1024. BackHandleweld=weld(m,Character["Torso"],BackHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000143051147, 0.799930573, 0.20047307, 0.999993324, -1.62740506e-008, 2.05381559e-010, 2.06515763e-010, 6.19668095e-010, -0.999993324, 1.61529243e-008, 0.999992371, 6.15865525e-010))
  1025.  
  1026. JointConnectorA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","JointConnectorA",Vector3.new(0.600000024, 0.400000066, 0.800000012))
  1027. JointConnectorAweld=weld(m,BackHandle,JointConnectorA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.86645508e-005, -0.797990799, -0.199465752, -1.34834088e-011, -0.999986649, -8.9196428e-012, 0.999986649, -1.12150289e-011, -9.5399777e-010, 7.12287118e-010, -1.33471012e-012, 0.999969482))
  1028. mesh("CylinderMesh",JointConnectorA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1029. JointConnectorB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","JointConnectorB",Vector3.new(0.600000024, 0.400000066, 0.800000012))
  1030. JointConnectorBweld=weld(m,BackHandle,JointConnectorB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.95910645e-005, 0.80194664, -0.199468851, -1.46291035e-011, -0.999986649, -5.74146286e-012, 0.999986649, -1.23607374e-011, -5.9252514e-010, 3.50306451e-010, 1.86239912e-012, 0.999984741))
  1031. mesh("CylinderMesh",JointConnectorB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1032.  
  1033. JointHandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","JointHandleA",Vector3.new(0.600000024, 0.400000066, 0.800000012))
  1034. JointHandleAweld=weld(m,JointConnectorA,JointHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.95910645e-005, -5.91278076e-005, -9.53674316e-007, 0.999986649, 1.01844921e-011, 6.03297412e-011, -1.24528582e-011, 0.999986649, 2.30521913e-009, -6.79519219e-011, -2.54792187e-009, 1))
  1035. mesh("CylinderMesh",JointHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1036. GunConnectorA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Mid gray","GunConnectorA",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1037. GunConnectorAweld=weld(m,JointHandleA,GunConnectorA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-005, -1.10033035, -0.600126028, 0.999986649, -5.74137266e-011, -4.820222e-011, 5.51453327e-011, 0.999986649, -2.96968938e-009, 4.05803169e-011, 2.72697953e-009, 1))
  1038. mesh("CylinderMesh",GunConnectorA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1039. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Dark blue","Part",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1040. Partweld=weld(m,JointHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000270843506, 0.701763153, 0.601624489, 0.999986649, 2.62356498e-010, 1.72325603e-008, 2.64626931e-010, -0.999986649, -1.20365556e-007, 1.72399481e-008, 1.20606614e-007, -1))
  1041. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1042. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1043. Partweld=weld(m,JointHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000247955322, 0.501737595, 0.601624966, 0.999986649, 2.5675484e-010, 1.72236128e-008, 2.5902322e-010, -0.999986649, -3.20770077e-010, 1.72309988e-008, 5.63439961e-010, -1))
  1044. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1045. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1046. Partweld=weld(m,JointHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000305175781, -0.901706696, -0.601625204, 0.999986649, -3.76128156e-011, 1.66311658e-008, 3.53444635e-011, 0.999986649, -4.45636417e-010, -1.66385625e-008, 2.02958539e-010, 1))
  1047. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1048. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 1.19999993))
  1049. Partweld=weld(m,JointHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.301893234, 1.90734863e-005, -0.200528145, -3.0438152e-011, 0.999986649, 1.30145672e-010, -0.999986649, -2.81697998e-011, -3.97587518e-012, -1.15972232e-011, -3.72825326e-010, 1))
  1050. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Dark blue","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1051. Partweld=weld(m,JointHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.301876068, 1.52587891e-005, 0.49947238, -3.15723281e-011, 0.999986649, 2.5146818e-010, -0.999986649, -2.9303962e-011, -2.42461606e-012, -1.00464637e-011, -4.9414961e-010, 1))
  1052. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1053. Partweld=weld(m,JointHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.301876068, 1.52587891e-005, -0.900527954, -3.15723281e-011, 0.999986649, 2.5146818e-010, -0.999986649, -2.9303962e-011, -2.42461606e-012, -1.00464637e-011, -4.9414961e-010, 1))
  1054.  
  1055. JointHandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","JointHandleB",Vector3.new(0.600000024, 0.400000066, 0.800000012))
  1056. JointHandleBweld=weld(m,JointConnectorB,JointHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -2.86102295e-005, -9.53674316e-007, 0.999986649, 7.93920485e-012, 4.95208874e-011, -1.02075709e-011, 0.999986649, 2.06251638e-009, -5.71430681e-011, -2.3052209e-009, 1))
  1057. mesh("CylinderMesh",JointHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1058. GunConnectorB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Mid gray","GunConnectorB",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1059. GunConnectorBweld=weld(m,JointHandleB,GunConnectorB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.2479248e-005, 1.09965706, -0.600126028, 0.999986649, -6.42187553e-011, -7.10619341e-011, 6.19503615e-011, 0.999986649, -3.69769282e-009, 6.34394759e-011, 3.4549652e-009, 1))
  1060. mesh("CylinderMesh",GunConnectorB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1061. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Dark blue","Part",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1062. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-005, 0.699949265, -0.600000381, 0.999986649, -5.30060024e-011, -6.93863855e-011, 5.07376224e-011, 0.999986649, -3.23638005e-009, 6.17638718e-011, 2.99365954e-009, 1))
  1063. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1064. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.200000063, 0.800000012))
  1065. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.899938583, -0.600000381, 0.999986649, -5.2982993e-011, -6.49554854e-011, 5.07146408e-011, 0.999986649, -3.23178284e-009, 5.73329162e-011, 2.98905789e-009, 1))
  1066. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1067. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.200000003, 0.800000012))
  1068. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.7220459e-005, 0.49993515, -0.600000381, 0.999986649, -3.48823748e-011, -1.28634325e-011, 3.26140087e-011, 0.999986649, -1.29975941e-009, 5.24147392e-012, 1.05705666e-009, 1))
  1069. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1070. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 1.19999993))
  1071. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.298002243, 2.28881836e-005, -0.200527906, -2.9303962e-011, 0.999986649, 8.83737528e-012, -0.999986649, -2.7035596e-011, -1.70308212e-013, -7.79232234e-012, -2.51525911e-010, 1))
  1072. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Dark blue","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1073. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.298007965, 2.28881836e-005, 0.499472857, -3.15723281e-011, 0.999986649, 8.81961171e-012, -0.999986649, -2.9303962e-011, 5.19134735e-012, -2.4307778e-012, -2.51514365e-010, 1))
  1074. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1075. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.298036575, 1.90734863e-005, -0.900527716, -2.47674659e-011, 0.999986649, 2.51393573e-010, -0.999986649, -2.24990998e-011, -2.43050025e-012, -1.00525144e-011, -4.94083885e-010, 1))
  1076.  
  1077. -- barrel part ---------
  1078. ]]--
  1079.  
  1080. local modelzorz3=Instance.new("Model")
  1081. modelzorz3.Parent=Character
  1082. modelzorz3.Name="Eye"
  1083.  
  1084. handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1085. 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))
  1086. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1))
  1087. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1088. 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))
  1089. 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))
  1090. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  1091. 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))
  1092. 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))
  1093. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(3.79999995, 4, 1.39999998))
  1094. 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))
  1095. 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))
  1096. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(3.79999995, 4, 1.39999998))
  1097. 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))
  1098. 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))
  1099. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1100. 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))
  1101. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1102. 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))
  1103. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1104. 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))
  1105. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  1106. 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))
  1107.  
  1108. local moosick = it("Sound",Character.Torso)
  1109. moosick.SoundId = "rbxassetid://142653441"
  1110. --142653441, 175067863
  1111. moosick.Looped = true
  1112. moosick.Pitch = 1
  1113. moosick.Volume = 0
  1114. moosick:Play()
  1115.  
  1116. anim = Character:findFirstChild("Animate")
  1117. if anim then
  1118. anim:Destroy()
  1119. end
  1120.  
  1121. local particleemitter = Instance.new("ParticleEmitter", Handle)
  1122. particleemitter.VelocitySpread = 180
  1123. particleemitter.Lifetime = NumberRange.new(0.1)
  1124. particleemitter.Speed = NumberRange.new(2)
  1125. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  1126. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1127. particleemitter.Rate = 100
  1128. particleemitter.Rotation = NumberRange.new(-45, 45)
  1129. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1130. particleemitter.LightEmission = 0
  1131. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  1132.  
  1133. --[[
  1134. local particleemitter = Instance.new("ParticleEmitter", Handle2)
  1135. particleemitter.VelocitySpread = 180
  1136. particleemitter.Lifetime = NumberRange.new(0.1)
  1137. particleemitter.Speed = NumberRange.new(2)
  1138. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  1139. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1140. particleemitter.Rate = 100
  1141. particleemitter.Rotation = NumberRange.new(-45, 45)
  1142. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1143. particleemitter.LightEmission = 0
  1144. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  1145. ]]--
  1146.  
  1147. local particleemitter = Instance.new("ParticleEmitter", handle)
  1148. particleemitter.VelocitySpread = 180
  1149. particleemitter.Lifetime = NumberRange.new(0.1)
  1150. particleemitter.Speed = NumberRange.new(2)
  1151. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)})
  1152. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  1153. particleemitter.Rate = 100
  1154. particleemitter.Rotation = NumberRange.new(-45, 45)
  1155. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1156. particleemitter.LightEmission = 0.8
  1157. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  1158.  
  1159. local light = Instance.new("PointLight", Character.Torso)
  1160. light.Color = Color3.new(255,255,255)
  1161. light.Brightness = 5
  1162. light.Range = 15
  1163.  
  1164. particleemitter.Enabled = true
  1165.  
  1166. local Footsteps = it("Sound",Character.Torso)
  1167. Footsteps.SoundId = "rbxassetid://142665235"
  1168. Footsteps.Looped = true
  1169. Footsteps.Pitch = 0.8
  1170. Footsteps.Volume = 0.3
  1171.  
  1172. local Footsteps2 = it("Sound",Character.Torso)
  1173. Footsteps2.SoundId = "rbxassetid://142665235"
  1174. Footsteps2.Looped = true
  1175. Footsteps2.Pitch = 1
  1176. Footsteps2.Volume = 0.4
  1177.  
  1178. local cam = game.Workspace.CurrentCamera
  1179.  
  1180. --cam.CameraSubject = Character
  1181.  
  1182. for i,v in pairs(Head:children()) do
  1183. if v:IsA("Sound") then
  1184. v:Destroy()
  1185. end
  1186. end
  1187.  
  1188. mouse.Button1Down:connect(function()
  1189. if attack==false and attacktype==1 then
  1190. attacktype=2
  1191. attackone()
  1192. elseif attack==false and attacktype==2 then
  1193. attacktype=3
  1194. -- attacktwo()
  1195. elseif attack==false and attacktype==3 then
  1196. attacktype=4
  1197. attackthree()
  1198. elseif attack==false and attacktype==4 then
  1199. attacktype=1
  1200. attackfour()
  1201. end
  1202. end)
  1203.  
  1204. mouse.KeyDown:connect(function(k)
  1205. k=k:lower()
  1206. if k=='e' then
  1207. if attack==false and mana>=20 then
  1208. Push()
  1209. end
  1210. elseif k=='g' then
  1211. if attack==false and mana>=50 then
  1212. Twirl()
  1213. end
  1214. elseif k=='v' then
  1215. if attack==false and mana>=25 then
  1216. MagicJump()
  1217. end
  1218. elseif k=='q' then
  1219. if attack==false then
  1220. idle=1000
  1221. end
  1222. elseif k=='h' then
  1223. if attack==false then
  1224. mana=100
  1225. end
  1226. elseif k=='y' then
  1227. if attack==false and mana>=100 then
  1228. Shred()
  1229. end
  1230. elseif k=='f' then
  1231. if attack==false and mana>=40 then
  1232. Spin()
  1233. end
  1234. elseif k=='r' then
  1235. if attack==false and mana>=20 then
  1236. Clap()
  1237. end
  1238. elseif k=='t' then
  1239. if attack==false then
  1240. Hai()
  1241. end
  1242. elseif k=='0' then
  1243. if attack==false then
  1244. Humanoid.WalkSpeed=(24)
  1245. end
  1246. elseif k=='j' then
  1247. if attack==false then
  1248. Humanoid.Health = 10
  1249. print("Congrats, you commited suicide.")
  1250. end
  1251. end
  1252. end)
  1253.  
  1254. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1255. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1256. prt.Anchored=true
  1257. prt.CFrame=cframe
  1258. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1259. game:GetService("Debris"):AddItem(prt,2)
  1260. coroutine.resume(coroutine.create(function(Part,Mesh)
  1261. for i=0,1,delay do
  1262. wait()
  1263. Part.CFrame=Part.CFrame
  1264. Part.Transparency=i
  1265. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1266. end
  1267. Part.Parent=nil
  1268. end),prt,msh)
  1269. end
  1270.  
  1271. TrailDeb = false
  1272. --[[
  1273. function equipanim()
  1274. attack=true
  1275. Humanoid.WalkSpeed = 0
  1276. if TrailDeb == false then
  1277. TrailDeb = true
  1278. end
  1279.  
  1280.  
  1281. coroutine.wrap(function()
  1282. local Old = handle.CFrame.p
  1283. while wait()do
  1284. if not TrailDeb then break end
  1285. local New = handle.CFrame.p
  1286. local Mag =(Old -New).magnitude
  1287. local Dis =(Old +New)/2
  1288. local Trail = Instance.new("Part",Character)
  1289. Trail.Material = "Neon"
  1290. Trail.Anchored = true
  1291. Trail.CanCollide = false
  1292. Trail.BrickColor = TorsoColor
  1293. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1294. Trail.TopSurface = 0
  1295. Trail.BottomSurface = 0
  1296. Trail.formFactor = "Custom"
  1297. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1298. local ms = Instance.new("BlockMesh",Trail)
  1299. ms.Scale = Vector3.new(1,1,1)
  1300. local TM = Instance.new("CylinderMesh",Trail)
  1301. TM.Scale = Vector3.new(1,1,1)
  1302. Old = New
  1303. coroutine.wrap(function()
  1304. for i = 1,0,-0.1 do
  1305. wait()
  1306. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1307. end
  1308. Trail:remove()
  1309. end)()
  1310. coroutine.wrap(function()
  1311. for i = 1,10 do
  1312. wait()
  1313. Trail.Transparency = Trail.Transparency +0.1
  1314. end end)()end end)()
  1315. coroutine.wrap(function()
  1316. local Old = Handle.CFrame.p
  1317. while wait()do
  1318. if not TrailDeb then break end
  1319. local New = Handle.CFrame.p
  1320. local Mag =(Old -New).magnitude
  1321. local Dis =(Old +New)/2
  1322. local Trail = Instance.new("Part",Character)
  1323. Trail.Material = "Neon"
  1324. Trail.Anchored = true
  1325. Trail.CanCollide = false
  1326. Trail.BrickColor = TorsoColor
  1327. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1328. Trail.TopSurface = 0
  1329. Trail.BottomSurface = 0
  1330. Trail.formFactor = "Custom"
  1331. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1332. local ms = Instance.new("BlockMesh",Trail)
  1333. ms.Scale = Vector3.new(1,1,1)
  1334. local TM = Instance.new("CylinderMesh",Trail)
  1335. TM.Scale = Vector3.new(1,1,1)
  1336. Old = New
  1337. coroutine.wrap(function()
  1338. for i = 1,0,-0.1 do
  1339. wait()
  1340. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1341. end
  1342. Trail:remove()
  1343. end)()
  1344. coroutine.wrap(function()
  1345. for i = 1,10 do
  1346. wait()
  1347. Trail.Transparency = Trail.Transparency +0.1
  1348. end end)()end end)()
  1349. coroutine.wrap(function()
  1350. --local Old = Handle2.CFrame.p
  1351. while wait()do
  1352. if not TrailDeb then break end
  1353. --local New = Handle2.CFrame.p
  1354. --local Mag =(Old -New).magnitude
  1355. --local Dis =(Old +New)/2
  1356. local Trail = Instance.new("Part",Character)
  1357. Trail.Material = "Neon"
  1358. Trail.Anchored = true
  1359. Trail.CanCollide = false
  1360. Trail.BrickColor = TorsoColor
  1361. --Trail.Size = Vector3.new(0.2,Mag,0.2)
  1362. Trail.TopSurface = 0
  1363. Trail.BottomSurface = 0
  1364. Trail.formFactor = "Custom"
  1365. --Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1366. local ms = Instance.new("BlockMesh",Trail)
  1367. ms.Scale = Vector3.new(1,1,1)
  1368. local TM = Instance.new("CylinderMesh",Trail)
  1369. TM.Scale = Vector3.new(1,1,1)
  1370. --Old = New
  1371. coroutine.wrap(function()
  1372. for i = 1,0,-0.1 do
  1373. wait()
  1374. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1375. end
  1376. Trail:remove()
  1377. end)()
  1378. coroutine.wrap(function()
  1379. for i = 1,10 do
  1380. wait()
  1381. Trail.Transparency = Trail.Transparency +0.1
  1382. end end)()end end)()
  1383. so("http://www.roblox.com/asset/?id=200632370",Torso,1,0.5)
  1384. for i=0,1,0.005 do
  1385. swait()
  1386. moosick.Volume = 0+1*i
  1387. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2)
  1388. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  1389. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1390. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1391. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1392. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  1393. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  1394. end
  1395. for i=0,1,0.005 do
  1396. swait()
  1397. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2)
  1398. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  1399. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1400. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1401. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  1402. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  1403. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  1404. end
  1405. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  1406. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  1407. for i=0,1,0.005 do
  1408. swait()
  1409. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1)
  1410. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1)
  1411. handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  1412. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1)
  1413. Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1)
  1414. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  1415. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  1416. 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)
  1417. 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)
  1418. end
  1419. for i=0,1,0.04 do
  1420. swait()
  1421. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  1422. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1423. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1424. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1425. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  1426. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  1427. 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)
  1428. 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)
  1429. end
  1430. --dmgstop()
  1431. attack=false
  1432. Humanoid.WalkSpeed = 12
  1433. if TrailDeb == true then
  1434. TrailDeb = false
  1435. end
  1436. end
  1437. ]]--
  1438.  
  1439. function attackone()
  1440. attack=true
  1441. if TrailDeb == false then
  1442. TrailDeb = true
  1443. end
  1444.  
  1445.  
  1446. coroutine.wrap(function()
  1447. local Old = Handle.CFrame.p
  1448. while wait()do
  1449. if not TrailDeb then break end
  1450. local New = Handle.CFrame.p
  1451. local Mag =(Old -New).magnitude
  1452. local Dis =(Old +New)/2
  1453. local Trail = Instance.new("Part",Character)
  1454. Trail.Material = "Neon"
  1455. Trail.Anchored = true
  1456. Trail.CanCollide = false
  1457. Trail.BrickColor = TorsoColor
  1458. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1459. Trail.TopSurface = 0
  1460. Trail.BottomSurface = 0
  1461. Trail.formFactor = "Custom"
  1462. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1463. local ms = Instance.new("BlockMesh",Trail)
  1464. ms.Scale = Vector3.new(1,1,1)
  1465. local TM = Instance.new("CylinderMesh",Trail)
  1466. TM.Scale = Vector3.new(1,1,1)
  1467. Old = New
  1468. coroutine.wrap(function()
  1469. for i = 1,0,-0.1 do
  1470. wait()
  1471. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1472. end
  1473. Trail:remove()
  1474. end)()
  1475. coroutine.wrap(function()
  1476. for i = 1,10 do
  1477. wait()
  1478. Trail.Transparency = Trail.Transparency +0.1
  1479. end end)()end end)()
  1480. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1481. for i=0,1,0.08 do
  1482. swait()
  1483. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  1484. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  1485. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1486. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1487. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1488. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1489. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1490. end
  1491. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  1492. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  1493. for i=0,1,0.1 do
  1494. swait()
  1495. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  1496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1497. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1498. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  1499. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1500. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  1501. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1502. end
  1503. --dmgstop()
  1504. attack=false
  1505. con1:disconnect()
  1506. if TrailDeb == true then
  1507. TrailDeb = false
  1508. end
  1509. end
  1510.  
  1511. function attackthree()
  1512. attack=true
  1513. if TrailDeb == false then
  1514. TrailDeb = true
  1515. end
  1516.  
  1517.  
  1518. coroutine.wrap(function()
  1519. local Old = Handle.CFrame.p
  1520. while wait()do
  1521. if not TrailDeb then break end
  1522. local New = Handle.CFrame.p
  1523. local Mag =(Old -New).magnitude
  1524. local Dis =(Old +New)/2
  1525. local Trail = Instance.new("Part",Character)
  1526. Trail.Material = "Neon"
  1527. Trail.Anchored = true
  1528. Trail.CanCollide = false
  1529. Trail.BrickColor = TorsoColor
  1530. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1531. Trail.TopSurface = 0
  1532. Trail.BottomSurface = 0
  1533. Trail.formFactor = "Custom"
  1534. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1535. local ms = Instance.new("BlockMesh",Trail)
  1536. ms.Scale = Vector3.new(1,1,1)
  1537. local TM = Instance.new("CylinderMesh",Trail)
  1538. TM.Scale = Vector3.new(1,1,1)
  1539. Old = New
  1540. coroutine.wrap(function()
  1541. for i = 1,0,-0.1 do
  1542. wait()
  1543. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1544. end
  1545. Trail:remove()
  1546. end)()
  1547. coroutine.wrap(function()
  1548. for i = 1,10 do
  1549. wait()
  1550. Trail.Transparency = Trail.Transparency +0.1
  1551. end end)()end end)()
  1552. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Up",RootPart,.2,1) end)
  1553. for i=0,1,0.08 do
  1554. swait()
  1555. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1556. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1557. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1558. Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
  1559. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1560. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
  1561. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1562. end
  1563. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  1564. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  1565. for i=0,1,0.05 do
  1566. swait()
  1567. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1568. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1569. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1570. Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
  1571. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1572. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
  1573. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1574. end
  1575. --dmgstop()
  1576. attack=false
  1577. con1:disconnect()
  1578. if TrailDeb == true then
  1579. TrailDeb = false
  1580. end
  1581. end
  1582.  
  1583. function attackfour()
  1584. attack=true
  1585. if TrailDeb == false then
  1586. TrailDeb = true
  1587. end
  1588.  
  1589.  
  1590. coroutine.wrap(function()
  1591. --local Old = Handle2.CFrame.p
  1592. while wait()do
  1593. if not TrailDeb then break end
  1594. --local New = Handle2.CFrame.p
  1595. --local Mag =(Old -New).magnitude
  1596. --local Dis =(Old +New)/2
  1597. local Trail = Instance.new("Part",Character)
  1598. Trail.Material = "Neon"
  1599. Trail.Anchored = true
  1600. Trail.CanCollide = false
  1601. Trail.BrickColor = TorsoColor
  1602. --Trail.Size = Vector3.new(0.2,Mag,0.2)
  1603. Trail.TopSurface = 0
  1604. Trail.BottomSurface = 0
  1605. Trail.formFactor = "Custom"
  1606. --Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1607. local ms = Instance.new("BlockMesh",Trail)
  1608. ms.Scale = Vector3.new(1,1,1)
  1609. local TM = Instance.new("CylinderMesh",Trail)
  1610. TM.Scale = Vector3.new(1,1,1)
  1611. --Old = New
  1612. coroutine.wrap(function()
  1613. for i = 1,0,-0.1 do
  1614. wait()
  1615. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1616. end
  1617. Trail:remove()
  1618. end)()
  1619. coroutine.wrap(function()
  1620. for i = 1,10 do
  1621. wait()
  1622. Trail.Transparency = Trail.Transparency +0.1
  1623. end end)()end end)()
  1624. coroutine.wrap(function()
  1625. local Old = Handle.CFrame.p
  1626. while wait()do
  1627. if not TrailDeb then break end
  1628. local New = Handle.CFrame.p
  1629. local Mag =(Old -New).magnitude
  1630. local Dis =(Old +New)/2
  1631. local Trail = Instance.new("Part",Character)
  1632. Trail.Material = "Neon"
  1633. Trail.Anchored = true
  1634. Trail.CanCollide = false
  1635. Trail.BrickColor = TorsoColor
  1636. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1637. Trail.TopSurface = 0
  1638. Trail.BottomSurface = 0
  1639. Trail.formFactor = "Custom"
  1640. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1641. local ms = Instance.new("BlockMesh",Trail)
  1642. ms.Scale = Vector3.new(1,1,1)
  1643. local TM = Instance.new("CylinderMesh",Trail)
  1644. TM.Scale = Vector3.new(1,1,1)
  1645. Old = New
  1646. coroutine.wrap(function()
  1647. for i = 1,0,-0.1 do
  1648. wait()
  1649. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1650. end
  1651. Trail:remove()
  1652. end)()
  1653. coroutine.wrap(function()
  1654. for i = 1,10 do
  1655. wait()
  1656. Trail.Transparency = Trail.Transparency +0.1
  1657. end end)()end end)()
  1658. -- con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1659. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1660. for i=0,1,0.08 do
  1661. swait()
  1662. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  1663. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1664. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1665. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1666. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  1667. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  1668. 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)
  1669. 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)
  1670. end
  1671. if anim then
  1672. anim.Disabled=true
  1673. end
  1674. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7)
  1675. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  1676. for i=0,1,0.04 do
  1677. swait()
  1678. Torso.Velocity=RootPart.CFrame.lookVector*50
  1679. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
  1680. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1681. Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1682. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1683. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1684. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1685. 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)
  1686. 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)
  1687. end
  1688. --dmgstop()
  1689. attack=false
  1690. con1:disconnect()
  1691. con2:disconnect()
  1692. if anim then
  1693. anim.Disabled=false
  1694. end
  1695. if TrailDeb == true then
  1696. TrailDeb = false
  1697. end
  1698. end
  1699.  
  1700. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1701. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1702. prt.Anchored = true
  1703. prt.CFrame = cframe
  1704. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1705. coroutine.resume(coroutine.create(function()
  1706. for i = 0, 1, 0.05 do
  1707. wait()
  1708. prt.Transparency = i
  1709. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1710. end
  1711. prt.Parent = nil
  1712. end))
  1713. end
  1714.  
  1715. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  1716. for _, c in pairs(workspace:children()) do
  1717. local hum = c:findFirstChild("Humanoid")
  1718. if hum ~= nil then
  1719. local head = c:findFirstChild("Torso")
  1720. if head ~= nil then
  1721. local targ = head.Position - Part.Position
  1722. local mag = targ.magnitude
  1723. if mag <= magni and c.Name ~= Player.Name then
  1724. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  1725. end
  1726. end
  1727. end
  1728. end
  1729. end
  1730.  
  1731. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1732. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1733. prt.Anchored = true
  1734. prt.CFrame = cframe
  1735. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1736. game:GetService("Debris"):AddItem(prt, 2)
  1737. coroutine.resume(coroutine.create(function(Part, Mesh)
  1738. for i = 0, 1, delay do
  1739. swait()
  1740. Part.CFrame = Part.CFrame
  1741. Part.Transparency = i
  1742. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1743. end
  1744. Part.Parent = nil
  1745. end), prt, msh)
  1746. end
  1747.  
  1748. function MagicJump()
  1749. if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then
  1750. attack=true
  1751. mana=mana-25
  1752. --[[ Humanoid.WalkSpeed = 0
  1753. for i=0,1,0.01 do
  1754. swait()
  1755. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1)
  1756. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1)
  1757. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  1758. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1)
  1759. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1)
  1760. 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)
  1761. 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)
  1762. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1)
  1763. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1)
  1764. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1)
  1765. end]]--
  1766. Humanoid.Jump = true
  1767. Torso.Velocity = vt(0, 150, 0)
  1768. Humanoid.WalkSpeed = 64
  1769. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  1770. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  1771. for i=0,1,0.05 do
  1772. swait()
  1773. Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3)
  1774. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1775. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3)
  1776. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  1777. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  1778. RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  1779. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  1780. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1781. Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2)
  1782. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2)
  1783. end
  1784. for i=0,1,0.02 do
  1785. swait()
  1786. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  1787. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1788. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1789. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  1790. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1791. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  1792. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1793. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  1794. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  1795. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1796. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  1797. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  1798. end
  1799. Humanoid.WalkSpeed = 0
  1800. swait(8)
  1801. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  1802. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  1803. local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1804. if hit~=nil then
  1805. swait(2)
  1806. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1807. ref.Anchored=true
  1808. ref.CFrame=cf(pos)
  1809. game:GetService("Debris"):AddItem(ref,3)
  1810. for i=1,10 do
  1811. local Col=BrickColor.new("Really black")
  1812. 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))
  1813. groundpart.Anchored=true
  1814. groundpart.CanCollide=false
  1815. 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))
  1816. local Col2=TorsoColor
  1817. 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))
  1818. groundpart2.Anchored=true
  1819. groundpart2.CanCollide=false
  1820. 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))
  1821. game:GetService("Debris"):AddItem(groundpart,5)
  1822. game:GetService("Debris"):AddItem(groundpart2,5)
  1823. end
  1824. BlastEffect(TorsoColor,cf(pos),1,1,1,1.4,1.4,1.4)
  1825. BlastEffect(BrickColor.new("Really black"),cf(pos),.9,.9,.9,1.2,1.2,1.2)
  1826. MagicCircle(BrickColor.new("Really black"),cf(pos),5,5,5,5,5,5,0.05)
  1827. MagicCircle(TorsoColor,cf(pos),6,6,6,6,6,6,0.05)
  1828. for i=0,1,0.06 do
  1829. swait()
  1830. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1831. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1832. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1833. RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  1834. LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3)
  1835. 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)
  1836. 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)
  1837. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1838. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  1839. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  1840. end
  1841. end
  1842. swait(20)
  1843. Humanoid.WalkSpeed = 12
  1844. --dmgstop()
  1845. attack=false
  1846. end
  1847. end
  1848.  
  1849. function Spin()
  1850. attack=true
  1851. mana=mana-40
  1852. if TrailDeb == false then
  1853. TrailDeb = true
  1854. end
  1855.  
  1856. coroutine.wrap(function()
  1857. --local Old = Handle2.CFrame.p
  1858. while wait()do
  1859. if not TrailDeb then break end
  1860. --local New = Handle2.CFrame.p
  1861. --local Mag =(Old -New).magnitude
  1862. --local Dis =(Old +New)/2
  1863. local Trail = Instance.new("Part",Character)
  1864. Trail.Material = "Neon"
  1865. Trail.Anchored = true
  1866. Trail.CanCollide = false
  1867. Trail.BrickColor = TorsoColor
  1868. --Trail.Size = Vector3.new(0.2,Mag,0.2)
  1869. Trail.TopSurface = 0
  1870. Trail.BottomSurface = 0
  1871. Trail.formFactor = "Custom"
  1872. --Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1873. local ms = Instance.new("BlockMesh",Trail)
  1874. ms.Scale = Vector3.new(1,1,1)
  1875. local TM = Instance.new("CylinderMesh",Trail)
  1876. TM.Scale = Vector3.new(1,1,1)
  1877. --Old = New
  1878. coroutine.wrap(function()
  1879. for i = 1,0,-0.1 do
  1880. wait()
  1881. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1882. end
  1883. Trail:remove()
  1884. end)()
  1885. coroutine.wrap(function()
  1886. for i = 1,10 do
  1887. wait()
  1888. Trail.Transparency = Trail.Transparency +0.1
  1889. end end)()end end)()
  1890. coroutine.wrap(function()
  1891. local Old = Handle.CFrame.p
  1892. while wait()do
  1893. if not TrailDeb then break end
  1894. local New = Handle.CFrame.p
  1895. local Mag =(Old -New).magnitude
  1896. local Dis =(Old +New)/2
  1897. local Trail = Instance.new("Part",Character)
  1898. Trail.Material = "Neon"
  1899. Trail.Anchored = true
  1900. Trail.CanCollide = false
  1901. Trail.BrickColor = TorsoColor
  1902. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1903. Trail.TopSurface = 0
  1904. Trail.BottomSurface = 0
  1905. Trail.formFactor = "Custom"
  1906. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1907. local ms = Instance.new("BlockMesh",Trail)
  1908. ms.Scale = Vector3.new(1,1,1)
  1909. local TM = Instance.new("CylinderMesh",Trail)
  1910. TM.Scale = Vector3.new(1,1,1)
  1911. Old = New
  1912. coroutine.wrap(function()
  1913. for i = 1,0,-0.1 do
  1914. wait()
  1915. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1916. end
  1917. Trail:remove()
  1918. end)()
  1919. coroutine.wrap(function()
  1920. for i = 1,10 do
  1921. wait()
  1922. Trail.Transparency = Trail.Transparency +0.1
  1923. end end)()end end)()
  1924. Footsteps:Stop()
  1925. Footsteps2:Stop()
  1926. -- con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  1927. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  1928. so("http://www.roblox.com/asset/?id=159882497",Torso,1,1)
  1929. for i=0,1,0.1 do
  1930. swait()
  1931. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1932. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1933. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1934. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1935. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1936. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1937. end
  1938. if anim then
  1939. anim.Disabled=true
  1940. end
  1941. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1942. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1943. for i=0,1,0.05 do
  1944. swait()
  1945. Torso.Velocity=RootPart.CFrame.lookVector*100
  1946. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1947. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1948. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1949. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1950. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1951. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1952. end
  1953. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1954. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1955. for i=0,1,0.05 do
  1956. swait()
  1957. Torso.Velocity=RootPart.CFrame.lookVector*100
  1958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1959. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1960. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1961. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1962. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1963. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1964. end
  1965. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  1966. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  1967. for i=0,1,0.05 do
  1968. swait()
  1969. Torso.Velocity=RootPart.CFrame.lookVector*100
  1970. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  1971. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1972. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1973. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1974. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1975. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1976. end
  1977. --dmgstop()
  1978. Humanoid.WalkSpeed=12
  1979. attack=false
  1980. con1:disconnect()
  1981. con2:disconnect()
  1982. if anim then
  1983. anim.Disabled=false
  1984. end
  1985. if TrailDeb == true then
  1986. TrailDeb = false
  1987. end
  1988. end
  1989.  
  1990. function Twirl()
  1991. mana=mana-50
  1992. attack=true
  1993. if TrailDeb == false then
  1994. TrailDeb = true
  1995. end
  1996.  
  1997.  
  1998. coroutine.wrap(function()
  1999. --local Old = Handle2.CFrame.p
  2000. while wait()do
  2001. if not TrailDeb then break end
  2002. --local New = Handle2.CFrame.p
  2003. --local Mag =(Old -New).magnitude
  2004. --local Dis =(Old +New)/2
  2005. local Trail = Instance.new("Part",Character)
  2006. Trail.Material = "Neon"
  2007. Trail.Anchored = true
  2008. Trail.CanCollide = false
  2009. Trail.BrickColor = TorsoColor
  2010. --Trail.Size = Vector3.new(0.2,Mag,0.2)
  2011. Trail.TopSurface = 0
  2012. Trail.BottomSurface = 0
  2013. Trail.formFactor = "Custom"
  2014. --Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2015. local ms = Instance.new("BlockMesh",Trail)
  2016. ms.Scale = Vector3.new(1,1,1)
  2017. local TM = Instance.new("CylinderMesh",Trail)
  2018. TM.Scale = Vector3.new(1,1,1)
  2019. --Old = New
  2020. coroutine.wrap(function()
  2021. for i = 1,0,-0.1 do
  2022. wait()
  2023. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2024. end
  2025. Trail:remove()
  2026. end)()
  2027. coroutine.wrap(function()
  2028. for i = 1,10 do
  2029. wait()
  2030. Trail.Transparency = Trail.Transparency +0.1
  2031. end end)()end end)()
  2032. coroutine.wrap(function()
  2033. local Old = Handle.CFrame.p
  2034. while wait()do
  2035. if not TrailDeb then break end
  2036. local New = Handle.CFrame.p
  2037. local Mag =(Old -New).magnitude
  2038. local Dis =(Old +New)/2
  2039. local Trail = Instance.new("Part",Character)
  2040. Trail.Material = "Neon"
  2041. Trail.Anchored = true
  2042. Trail.CanCollide = false
  2043. Trail.BrickColor = TorsoColor
  2044. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2045. Trail.TopSurface = 0
  2046. Trail.BottomSurface = 0
  2047. Trail.formFactor = "Custom"
  2048. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2049. local ms = Instance.new("BlockMesh",Trail)
  2050. ms.Scale = Vector3.new(1,1,1)
  2051. local TM = Instance.new("CylinderMesh",Trail)
  2052. TM.Scale = Vector3.new(1,1,1)
  2053. Old = New
  2054. coroutine.wrap(function()
  2055. for i = 1,0,-0.1 do
  2056. wait()
  2057. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2058. end
  2059. Trail:remove()
  2060. end)()
  2061. coroutine.wrap(function()
  2062. for i = 1,10 do
  2063. wait()
  2064. Trail.Transparency = Trail.Transparency +0.1
  2065. end end)()end end)()
  2066. Footsteps:Stop()
  2067. Footsteps2:Stop()
  2068. -- con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2069. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2070. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  2071. for i=0,1,0.1 do
  2072. swait()
  2073. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2074. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2075. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2076. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2079. end
  2080. if anim then
  2081. anim.Disabled=true
  2082. end
  2083. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2084. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2085. for i=0,1,0.05 do
  2086. swait()
  2087. Torso.Velocity=RootPart.CFrame.lookVector*80
  2088. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2089. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2090. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2091. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2092. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2093. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2094. end
  2095. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2096. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2097. for i=0,1,0.05 do
  2098. swait()
  2099. Torso.Velocity=RootPart.CFrame.lookVector*80
  2100. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2101. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2102. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2103. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2104. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2105. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2106. end
  2107. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2108. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2109. for i=0,1,0.05 do
  2110. swait()
  2111. Torso.Velocity=RootPart.CFrame.lookVector*80
  2112. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2113. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2114. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2115. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2116. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2117. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2118. end
  2119. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  2120. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  2121. for i=0,1,0.05 do
  2122. swait()
  2123. Torso.Velocity=RootPart.CFrame.lookVector*80
  2124. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  2125. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2126. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2127. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2128. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2129. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2130. end
  2131. --dmgstop()
  2132. Humanoid.WalkSpeed=12
  2133. attack=false
  2134. con1:disconnect()
  2135. con2:disconnect()
  2136. if anim then
  2137. anim.Disabled=false
  2138. end
  2139. if TrailDeb == true then
  2140. TrailDeb = false
  2141. end
  2142. end
  2143.  
  2144. function Shred()
  2145. attack=true
  2146. mana=mana-100
  2147. if TrailDeb == false then
  2148. TrailDeb = true
  2149. end
  2150.  
  2151.  
  2152. coroutine.wrap(function()
  2153. --local Old = Handle2.CFrame.p
  2154. while wait()do
  2155. if not TrailDeb then break end
  2156. --local New = Handle2.CFrame.p
  2157. --local Mag =(Old -New).magnitude
  2158. --local Dis =(Old +New)/2
  2159. local Trail = Instance.new("Part",Character)
  2160. Trail.Material = "Neon"
  2161. Trail.Anchored = true
  2162. Trail.CanCollide = false
  2163. Trail.BrickColor = TorsoColor
  2164. --Trail.Size = Vector3.new(0.2,Mag,0.2)
  2165. Trail.TopSurface = 0
  2166. Trail.BottomSurface = 0
  2167. Trail.formFactor = "Custom"
  2168. --Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2169. local ms = Instance.new("BlockMesh",Trail)
  2170. ms.Scale = Vector3.new(1,1,1)
  2171. local TM = Instance.new("CylinderMesh",Trail)
  2172. TM.Scale = Vector3.new(1,1,1)
  2173. --Old = New
  2174. coroutine.wrap(function()
  2175. for i = 1,0,-0.1 do
  2176. wait()
  2177. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2178. end
  2179. Trail:remove()
  2180. end)()
  2181. coroutine.wrap(function()
  2182. for i = 1,10 do
  2183. wait()
  2184. Trail.Transparency = Trail.Transparency +0.1
  2185. end end)()end end)()
  2186. coroutine.wrap(function()
  2187. local Old = Handle.CFrame.p
  2188. while wait()do
  2189. if not TrailDeb then break end
  2190. local New = Handle.CFrame.p
  2191. local Mag =(Old -New).magnitude
  2192. local Dis =(Old +New)/2
  2193. local Trail = Instance.new("Part",Character)
  2194. Trail.Material = "Neon"
  2195. Trail.Anchored = true
  2196. Trail.CanCollide = false
  2197. Trail.BrickColor = TorsoColor
  2198. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2199. Trail.TopSurface = 0
  2200. Trail.BottomSurface = 0
  2201. Trail.formFactor = "Custom"
  2202. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2203. local ms = Instance.new("BlockMesh",Trail)
  2204. ms.Scale = Vector3.new(1,1,1)
  2205. local TM = Instance.new("CylinderMesh",Trail)
  2206. TM.Scale = Vector3.new(1,1,1)
  2207. Old = New
  2208. coroutine.wrap(function()
  2209. for i = 1,0,-0.1 do
  2210. wait()
  2211. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2212. end
  2213. Trail:remove()
  2214. end)()
  2215. coroutine.wrap(function()
  2216. for i = 1,10 do
  2217. wait()
  2218. Trail.Transparency = Trail.Transparency +0.1
  2219. end end)()end end)()
  2220. Footsteps:Stop()
  2221. Footsteps2:Stop()
  2222. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  2223. so("http://www.roblox.com/asset/?id=159882578",Torso,1,1)
  2224. for i=0,1,0.1 do
  2225. swait()
  2226. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2227. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2228. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2229. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2230. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2231. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2232. end
  2233. if anim then
  2234. anim.Disabled=true
  2235. end
  2236. for i=0,1,0.05 do
  2237. swait()
  2238. Torso.Velocity=RootPart.CFrame.lookVector*20
  2239. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2240. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2241. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5)
  2242. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2243. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2244. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2245. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2246. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2247. end
  2248. for i=0,1,0.05 do
  2249. swait()
  2250. Torso.Velocity=RootPart.CFrame.lookVector*40
  2251. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2252. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2253. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5)
  2254. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2255. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2256. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2257. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2258. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2259. end
  2260. for i=0,1,0.05 do
  2261. swait()
  2262. Torso.Velocity=RootPart.CFrame.lookVector*60
  2263. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  2264. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  2265. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5)
  2266. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2267. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2268. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2269. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2270. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2271. end
  2272. so("http://www.roblox.com/asset/?id=159882625",Torso,1,1)
  2273. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2274. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2275. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2276. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  2277. for i=0,1,0.05 do
  2278. swait()
  2279. Torso.Velocity=RootPart.CFrame.lookVector*80
  2280. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5)
  2281. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2282. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2283. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2284. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2285. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2286. end
  2287. for i=0,1,0.005 do
  2288. swait()
  2289. Torso.Velocity=RootPart.CFrame.lookVector*100
  2290. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5)
  2291. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2292. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2293. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2294. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  2295. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  2296. end
  2297. --dmgstop()
  2298. Humanoid.WalkSpeed=12
  2299. attack=false
  2300. con1:disconnect()
  2301. con2:disconnect()
  2302. if anim then
  2303. anim.Disabled=false
  2304. end
  2305. if TrailDeb == true then
  2306. TrailDeb = false
  2307. end
  2308. end
  2309.  
  2310. function Push()
  2311. attack=true
  2312. mana=mana-20
  2313. if TrailDeb == false then
  2314. TrailDeb = true
  2315. end
  2316.  
  2317.  
  2318. coroutine.wrap(function()
  2319. --local Old = Handle2.CFrame.p
  2320. while wait()do
  2321. if not TrailDeb then break end
  2322. --local New = Handle2.CFrame.p
  2323. --local Mag =(Old -New).magnitude
  2324. --local Dis =(Old +New)/2
  2325. local Trail = Instance.new("Part",Character)
  2326. Trail.Material = "Neon"
  2327. Trail.Anchored = true
  2328. Trail.CanCollide = false
  2329. Trail.BrickColor = TorsoColor
  2330. --Trail.Size = Vector3.new(0.2,Mag,0.2)
  2331. Trail.TopSurface = 0
  2332. Trail.BottomSurface = 0
  2333. Trail.formFactor = "Custom"
  2334. --Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2335. local ms = Instance.new("BlockMesh",Trail)
  2336. ms.Scale = Vector3.new(1,1,1)
  2337. local TM = Instance.new("CylinderMesh",Trail)
  2338. TM.Scale = Vector3.new(1,1,1)
  2339. --Old = New
  2340. coroutine.wrap(function()
  2341. for i = 1,0,-0.1 do
  2342. wait()
  2343. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2344. end
  2345. Trail:remove()
  2346. end)()
  2347. coroutine.wrap(function()
  2348. for i = 1,10 do
  2349. wait()
  2350. Trail.Transparency = Trail.Transparency +0.1
  2351. end end)()end end)()
  2352. coroutine.wrap(function()
  2353. local Old = Handle.CFrame.p
  2354. while wait()do
  2355. if not TrailDeb then break end
  2356. local New = Handle.CFrame.p
  2357. local Mag =(Old -New).magnitude
  2358. local Dis =(Old +New)/2
  2359. local Trail = Instance.new("Part",Character)
  2360. Trail.Material = "Neon"
  2361. Trail.Anchored = true
  2362. Trail.CanCollide = false
  2363. Trail.BrickColor = TorsoColor
  2364. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2365. Trail.TopSurface = 0
  2366. Trail.BottomSurface = 0
  2367. Trail.formFactor = "Custom"
  2368. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2369. local ms = Instance.new("BlockMesh",Trail)
  2370. ms.Scale = Vector3.new(1,1,1)
  2371. local TM = Instance.new("CylinderMesh",Trail)
  2372. TM.Scale = Vector3.new(1,1,1)
  2373. Old = New
  2374. coroutine.wrap(function()
  2375. for i = 1,0,-0.1 do
  2376. wait()
  2377. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2378. end
  2379. Trail:remove()
  2380. end)()
  2381. coroutine.wrap(function()
  2382. for i = 1,10 do
  2383. wait()
  2384. Trail.Transparency = Trail.Transparency +0.1
  2385. end end)()end end)()
  2386. -- con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2387. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2388. for i=0,1,0.1 do
  2389. swait()
  2390. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2391. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2392. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2393. Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2394. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2395. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  2396. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  2397. end
  2398. -- so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  2399. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2400. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  2401. for i=0,1,0.1 do
  2402. swait()
  2403. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2404. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2405. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2406. Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2407. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2408. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  2409. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  2410. end
  2411. --dmgstop()
  2412. attack=false
  2413. con1:disconnect()
  2414. con2:disconnect()
  2415. if TrailDeb == true then
  2416. TrailDeb = false
  2417. end
  2418. end
  2419.  
  2420. function Clap()
  2421. attack=true
  2422. mana=mana-20
  2423. if TrailDeb == false then
  2424. TrailDeb = true
  2425. end
  2426.  
  2427.  
  2428. coroutine.wrap(function()
  2429. --local Old = Handle2.CFrame.p
  2430. while wait()do
  2431. if not TrailDeb then break end
  2432. --local New = Handle2.CFrame.p
  2433. --local Mag =(Old -New).magnitude
  2434. --local Dis =(Old +New)/2
  2435. local Trail = Instance.new("Part",Character)
  2436. Trail.Material = "Neon"
  2437. Trail.Anchored = true
  2438. Trail.CanCollide = false
  2439. Trail.BrickColor = TorsoColor
  2440. --Trail.Size = Vector3.new(0.2,Mag,0.2)
  2441. Trail.TopSurface = 0
  2442. Trail.BottomSurface = 0
  2443. Trail.formFactor = "Custom"
  2444. --Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2445. local ms = Instance.new("BlockMesh",Trail)
  2446. ms.Scale = Vector3.new(1,1,1)
  2447. local TM = Instance.new("CylinderMesh",Trail)
  2448. TM.Scale = Vector3.new(1,1,1)
  2449. --Old = New
  2450. coroutine.wrap(function()
  2451. for i = 1,0,-0.1 do
  2452. wait()
  2453. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2454. end
  2455. Trail:remove()
  2456. end)()
  2457. coroutine.wrap(function()
  2458. for i = 1,10 do
  2459. wait()
  2460. Trail.Transparency = Trail.Transparency +0.1
  2461. end end)()end end)()
  2462. coroutine.wrap(function()
  2463. local Old = Handle.CFrame.p
  2464. while wait()do
  2465. if not TrailDeb then break end
  2466. local New = Handle.CFrame.p
  2467. local Mag =(Old -New).magnitude
  2468. local Dis =(Old +New)/2
  2469. local Trail = Instance.new("Part",Character)
  2470. Trail.Material = "Neon"
  2471. Trail.Anchored = true
  2472. Trail.CanCollide = false
  2473. Trail.BrickColor = TorsoColor
  2474. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2475. Trail.TopSurface = 0
  2476. Trail.BottomSurface = 0
  2477. Trail.formFactor = "Custom"
  2478. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2479. local ms = Instance.new("BlockMesh",Trail)
  2480. ms.Scale = Vector3.new(1,1,1)
  2481. local TM = Instance.new("CylinderMesh",Trail)
  2482. TM.Scale = Vector3.new(1,1,1)
  2483. Old = New
  2484. coroutine.wrap(function()
  2485. for i = 1,0,-0.1 do
  2486. wait()
  2487. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2488. end
  2489. Trail:remove()
  2490. end)()
  2491. coroutine.wrap(function()
  2492. for i = 1,10 do
  2493. wait()
  2494. Trail.Transparency = Trail.Transparency +0.1
  2495. end end)()end end)()
  2496. -- con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2497. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  2498. so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9)
  2499. for i=0,1,0.08 do
  2500. swait()
  2501. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2502. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2503. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2504. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2)
  2505. Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2)
  2506. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  2507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3)
  2508. end
  2509. -- so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  2510. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2511. for i=0,1,0.08 do
  2512. swait()
  2513. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2514. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2515. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2516. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2)
  2517. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2)
  2518. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  2519. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  2520. end
  2521. --dmgstop()
  2522. attack=false
  2523. con1:disconnect()
  2524. con2:disconnect()
  2525. if TrailDeb == true then
  2526. TrailDeb = false
  2527. end
  2528. end
  2529.  
  2530. function Hai()
  2531. attack=true
  2532. Humanoid.WalkSpeed=0
  2533. so("http://www.roblox.com/asset/?id=159882567",Torso,1,1)
  2534. for i=0,1,0.1 do
  2535. swait()
  2536. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2537. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2538. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2539. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2540. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2541. 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)
  2542. 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)
  2543. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2544. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2545. end
  2546. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  2547. for i=0,1,0.1 do
  2548. swait()
  2549. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2550. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2551. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2552. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  2553. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2554. 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)
  2555. 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)
  2556. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5)
  2557. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2558. end
  2559. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2560. for i=0,1,0.1 do
  2561. swait()
  2562. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2563. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2564. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2565. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2566. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2567. 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)
  2568. 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)
  2569. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2570. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2571.  
  2572. end
  2573. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  2574. for i=0,1,0.1 do
  2575. swait()
  2576. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2578. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2579. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  2580. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2581. 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)
  2582. 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)
  2583. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3)
  2584. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2585. end
  2586. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  2587. for i=0,1,0.1 do
  2588. swait()
  2589. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2590. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2591. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2592. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  2593. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2594. 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)
  2595. 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)
  2596. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  2597. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  2598. end
  2599. --dmgstop()
  2600. Humanoid.WalkSpeed=12
  2601. attack=false
  2602. end
  2603.  
  2604. function Die()
  2605. attack=true
  2606. Footsteps:Stop()
  2607. Footsteps2:Stop()
  2608. local Fire = it("Sound",Character.Torso)
  2609. Fire.SoundId = "rbxassetid://192104941"
  2610. Fire.Looped = true
  2611. Fire.Pitch = 1
  2612. Fire.Volume = 1
  2613. --local Fire2 = it("Sound",Handle2)
  2614. --Fire2.SoundId = "rbxassetid://192104941"
  2615. --Fire2.Looped = true
  2616. --Fire2.Pitch = 1
  2617. --Fire2.Volume = 1
  2618. local Fire3 = it("Sound",Handle)
  2619. Fire3.SoundId = "rbxassetid://192104941"
  2620. Fire3.Looped = true
  2621. Fire3.Pitch = 1
  2622. Fire3.Volume = 1
  2623. local Fire4 = it("Sound",handle)
  2624. Fire4.SoundId = "rbxassetid://192104941"
  2625. Fire4.Looped = true
  2626. Fire4.Pitch = 1
  2627. Fire4.Volume = 1
  2628. local fire = Instance.new("ParticleEmitter", Character.Torso)
  2629. fire.Lifetime = NumberRange.new(0.5)
  2630. fire.Speed = NumberRange.new(1, 3)
  2631. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  2632. fire.Rate = 0
  2633. fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2634. fire.LightEmission = 0.6
  2635. fire.Texture = "http://www.roblox.com/asset/?id=242911609"
  2636. fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2637. local fire2 = Instance.new("ParticleEmitter", Handle)
  2638. fire2.Lifetime = NumberRange.new(0.5)
  2639. fire2.Speed = NumberRange.new(1, 3)
  2640. fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  2641. fire2.Rate = 0
  2642. fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2643. fire2.LightEmission = 0.6
  2644. fire2.Texture = "http://www.roblox.com/asset/?id=242911609"
  2645. fire2.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2646. --local fire3 = Instance.new("ParticleEmitter", Handle2)
  2647. --fire3.Lifetime = NumberRange.new(0.5)
  2648. --fire3.Speed = NumberRange.new(1, 3)
  2649. --fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  2650. --fire3.Rate = 0
  2651. --fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2652. --fire3.LightEmission = 0.6
  2653. --fire3.Texture = "http://www.roblox.com/asset/?id=242911609"
  2654. --fire3.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2655. local fire4 = Instance.new("ParticleEmitter", handle)
  2656. fire4.Lifetime = NumberRange.new(0.5)
  2657. fire4.Speed = NumberRange.new(1, 3)
  2658. fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  2659. fire4.Rate = 0
  2660. fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  2661. fire4.LightEmission = 0.6
  2662. fire4.Texture = "http://www.roblox.com/asset/?id=242911609"
  2663. fire4.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  2664. Humanoid.WalkSpeed = 0
  2665. so("http://www.roblox.com/asset/?id=199149297",Head,1,1)
  2666. so("http://www.roblox.com/asset/?id=209527203",Head,1,1)
  2667. for i=0,1,0.08 do
  2668. swait()
  2669. Torso.Velocity=RootPart.CFrame.lookVector*-30
  2670. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2)
  2671. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2)
  2672. handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2673. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2674. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  2675. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2)
  2676. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2)
  2677. 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)
  2678. 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)
  2679. end
  2680. for i=0,1,0.005 do
  2681. swait()
  2682. moosick.Volume=1-2*i
  2683. light.Range=15-10*i
  2684. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  2685. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2686. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  2687. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  2688. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2689. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  2690. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2691. 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)
  2692. 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)
  2693. end
  2694. light.Range=0
  2695. for i=0,1,0.01 do
  2696. swait()
  2697. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  2698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2699. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  2700. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  2701. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2702. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  2703. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2704. 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)
  2705. 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)
  2706. end
  2707. so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9)
  2708. fire.Rate = 1000
  2709. fire2.Rate = 1000
  2710. -- fire3.Rate = 1000
  2711. fire4.Rate = 1000
  2712. Fire:Play()
  2713. -- Fire2:Play()
  2714. Fire3:Play()
  2715. Fire4:Play()
  2716. for i=0,1,0.005 do
  2717. swait()
  2718. Character.Head.face.Transparency = 0+1*i
  2719. LeftArm.Transparency=0+1*i
  2720. RightArm.Transparency=0+1*i
  2721. LeftLeg.Transparency=0+1*i
  2722. RightLeg.Transparency=0+1*i
  2723. Head.Transparency=0+1*i
  2724. Torso.Transparency=0+1*i
  2725. for _,v in pairs(Character:children()) do
  2726. if v:IsA("Hat") then
  2727. v.Handle.Transparency = 0+1*i
  2728. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  2729. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2730. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  2731. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  2732. -- Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2733. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  2734. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2735. 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)
  2736. 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)
  2737. end
  2738. end
  2739. --dmgstop()
  2740. end
  2741. Humanoid.Health = 0
  2742. end
  2743.  
  2744. --equipanim()
  2745.  
  2746. local sine = 0
  2747. local change = 1
  2748. local val = 0
  2749.  
  2750. local mananum=0
  2751. while true do
  2752. swait()
  2753. sine = sine + change
  2754. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2755. local velderp=RootPart.Velocity.y
  2756. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2757. if equipped==true or equipped==false then
  2758. if Anim=="Idle" and attack==false then
  2759. idle=idle+1
  2760. else
  2761. idle=0
  2762. end
  2763. if Humanoid.Health <=20 then
  2764. if attack == false then
  2765. Humanoid.Health = math.huge
  2766. Die()
  2767. end
  2768. end
  2769. if idle>=1000 then
  2770. if attack==false then
  2771. --Sheath()
  2772. end
  2773. end
  2774. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2775. Anim="Jump"
  2776. if attack==false then
  2777. Footsteps:Stop()
  2778. Footsteps2:Stop()
  2779. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2780. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2781. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  2782. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  2783. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2784. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  2785. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2786. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  2787. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  2788. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2789. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2790. --Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2791. end
  2792. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2793. Anim="Fall"
  2794. if attack==false then
  2795. Footsteps:Stop()
  2796. Footsteps2:Stop()
  2797. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  2798. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2799. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  2800. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  2801. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2802. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  2803. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2804. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  2805. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  2806. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2807. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  2808. --Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  2809. end
  2810. elseif torvel<1 and hitfloor~=nil then
  2811. Anim="Idle"
  2812. change=0.5
  2813. if idle>=1000 then
  2814. if attack==false then
  2815. Footsteps:Stop()
  2816. Footsteps2:Stop()
  2817. Humanoid.WalkSpeed=12
  2818. 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)
  2819. 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)
  2820. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  2821. RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5)
  2822. LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5)
  2823. 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)
  2824. 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)
  2825. handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  2826. 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)
  2827. --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)
  2828. end
  2829. else
  2830. if attack==false then
  2831. Footsteps:Stop()
  2832. Footsteps2:Stop()
  2833. Humanoid.WalkSpeed=12
  2834. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  2835. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  2836. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2837. 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)
  2838. 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)
  2839. 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)
  2840. 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)
  2841. 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)
  2842. 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)
  2843. --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)
  2844. end
  2845. end
  2846. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2847. Anim="Walk"
  2848. if attack==false then
  2849. change=0.8
  2850. --[[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)
  2851. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  2852. 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)
  2853. 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)
  2854. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2855. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2856. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2857. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2858. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  2859. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  2860. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  2861. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  2862. RH.C0=clerp(RH.C0,RHC0,.3)
  2863. LH.C0=clerp(LH.C0,LHC0,.3)
  2864. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2865. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2866. ]]--
  2867. Footsteps:Play()
  2868. Footsteps2:Stop()
  2869. 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)
  2870. 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)
  2871. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2872. 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)
  2873. 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)
  2874. 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)
  2875. 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)
  2876. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2877. 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)
  2878. --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)
  2879. end
  2880. elseif torvel>=22 and hitfloor~=nil then
  2881. Anim="Run"
  2882. change=1
  2883. if attack==false then
  2884. Footsteps:Stop()
  2885. Footsteps2:Play()
  2886. 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)
  2887. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  2888. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2889. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
  2890. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  2891. 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)
  2892. 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)
  2893. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2894. 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)
  2895. --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)
  2896. end
  2897. end
  2898. end
  2899. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  2900. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  2901. if mana>=100 then
  2902. mana=100
  2903. else
  2904. if mananum<=8 then
  2905. mananum=mananum+1
  2906. else
  2907. mananum=0
  2908. mana=mana+1
  2909. end
  2910. end
  2911. end
  2912. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work") end
  2913. -- ~CLarramore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement