Advertisement
DaOMEGAa32

fe blade

May 14th, 2019
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.72 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
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153. Player=game:GetService("Players").LocalPlayer
  154. Character=Player.Character
  155. PlayerGui=Player.PlayerGui
  156. Backpack=Player.Backpack
  157. Torso=Character.Torso
  158. Head=Character.Head
  159. Humanoid=Character.Humanoid
  160. m=Instance.new('Model',Character)
  161. LeftArm=Character["Left Arm"]
  162. LeftLeg=Character["Left Leg"]
  163. RightArm=Character["Right Arm"]
  164. RightLeg=Character["Right Leg"]
  165. LS=Torso["Left Shoulder"]
  166. LH=Torso["Left Hip"]
  167. RS=Torso["Right Shoulder"]
  168. Character=Player.Character
  169. PlayerGui=Player.PlayerGui
  170. Backpack=Player.Backpack
  171. Torso=Character.Torso
  172. Head=Character.Head
  173. Humanoid=Character.Humanoid
  174. m=Instance.new('Model',Character)
  175. LeftArm=Character["Left Arm"]
  176. LeftLeg=Character["Left Leg"]
  177. RightArm=Character["Right Arm"]
  178. RightLeg=Character["Right Leg"]
  179. LS=Torso["Left Shoulder"]
  180. LH=Torso["Left Hip"]
  181. RS=Torso["Right Shoulder"]
  182. RH=Torso["Right Hip"]
  183. Face = Head.face
  184. Neck=Torso.Neck
  185. it=Instance.new
  186. attacktype=1
  187. vt=Vector3.new
  188. cf=CFrame.new
  189. euler=CFrame.fromEulerAnglesXYZ
  190. angles=CFrame.Angles
  191. cloaked=false
  192. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  193. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  194. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  195. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  196. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  197. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  198. RootPart=Character.HumanoidRootPart
  199. RootJoint=RootPart.RootJoint
  200. RootCF=euler(-1.57,0,3.14)
  201. attack = false
  202. attackdebounce = false
  203. deb=false
  204. equipped=true
  205. hand=false
  206. Mouse=nil
  207. combo=0
  208. mana=0
  209. trispeed=.2
  210. attackmode='none'
  211. local idle=0
  212. local Anim="Idle"
  213. local Effects={}
  214. local gun=false
  215. local shoot=false
  216. player=nil
  217. mana=0
  218. Mouse=Player:GetMouse()
  219. --save shoulders
  220. RSH, LSH=nil, nil
  221. --welds
  222. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  223. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  224. LH=Torso["Left Hip"]
  225. RH=Torso["Right Hip"]
  226. TorsoColor=Torso.BrickColor
  227. function NoOutline(Part)
  228. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  229. end
  230. player=Player
  231. ch=Character
  232. RSH=ch.Torso["Right Shoulder"]
  233. LSH=ch.Torso["Left Shoulder"]
  234. --
  235. RSH.Parent=nil
  236. LSH.Parent=nil
  237. --
  238. RW.Name="Right Shoulder"
  239. RW.Part0=ch.Torso
  240. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  241. RW.C1=cf(0, 0.5, 0)
  242. RW.Part1=ch["Right Arm"]
  243. RW.Parent=ch.Torso
  244. --
  245. LW.Name="Left Shoulder"
  246. LW.Part0=ch.Torso
  247. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  248. LW.C1=cf(0, 0.5, 0)
  249. LW.Part1=ch["Left Arm"]
  250. LW.Parent=ch.Torso
  251.  
  252.  
  253.  
  254. local function weldBetween(a, b)
  255. local weldd = Instance.new("ManualWeld")
  256. weldd.Part0 = a
  257. weldd.Part1 = b
  258. weldd.C0 = CFrame.new()
  259. weldd.C1 = b.CFrame:inverse() * a.CFrame
  260. weldd.Parent = a
  261. return weldd
  262. end
  263.  
  264. function swait(num)
  265. if num==0 or num==nil then
  266. game:service'RunService'.Heartbeat:wait(0)
  267. else
  268. for i=0,num do
  269. game:service'RunService'.Heartbeat:wait(0)
  270. end
  271. end
  272. end
  273.  
  274. function nooutline(part)
  275. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  276. end
  277.  
  278. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  279. local fp=it("Part")
  280. fp.formFactor=formfactor
  281. fp.Parent=parent
  282. fp.Reflectance=reflectance
  283. fp.Transparency=transparency
  284. fp.CanCollide=false
  285. fp.Locked=true
  286. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  287. fp.Name=name
  288. fp.Size=size
  289. fp.Position=Character.Torso.Position
  290. nooutline(fp)
  291. fp.Material=material
  292. fp:BreakJoints()
  293. return fp
  294. end
  295.  
  296. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  297. local mesh=it(Mesh)
  298. mesh.Parent=part
  299. if Mesh=="SpecialMesh" then
  300. mesh.MeshType=meshtype
  301. mesh.MeshId=meshid
  302. end
  303. mesh.Offset=offset
  304. mesh.Scale=scale
  305. return mesh
  306. end
  307.  
  308. function weld(parent,part0,part1,c0,c1)
  309. local weld=it("Weld")
  310. weld.Parent=parent
  311. weld.Part0=part0
  312. weld.Part1=part1
  313. weld.C0=c0
  314. weld.C1=c1
  315. return weld
  316. end
  317.  
  318.  
  319. local function CFrameFromTopBack(at, top, back)
  320. local right = top:Cross(back)
  321. return CFrame.new(at.x, at.y, at.z,
  322. right.x, top.x, back.x,
  323. right.y, top.y, back.y,
  324. right.z, top.z, back.z)
  325. end
  326.  
  327. function Triangle(a, b, c)
  328. local edg1 = (c-a):Dot((b-a).unit)
  329. local edg2 = (a-b):Dot((c-b).unit)
  330. local edg3 = (b-c):Dot((a-c).unit)
  331. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  332. a, b, c = a, b, c
  333. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  334. a, b, c = b, c, a
  335. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  336. a, b, c = c, a, b
  337. else
  338. assert(false, "unreachable")
  339. end
  340.  
  341. local len1 = (c-a):Dot((b-a).unit)
  342. local len2 = (b-a).magnitude - len1
  343. local width = (a + (b-a).unit*len1 - c).magnitude
  344.  
  345. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  346.  
  347. local list = {}
  348.  
  349. local Color = BrickColor.new("Dark grey")
  350.  
  351. if len1 > 0.01 then
  352. local w1 = Instance.new('WedgePart', m)
  353. game:GetService("Debris"):AddItem(w1,5)
  354. w1.Material = "SmoothPlastic"
  355. w1.FormFactor = 'Custom'
  356. w1.BrickColor = BrickColor.new(Color)
  357. w1.Transparency = 0
  358. w1.Reflectance = 0
  359. w1.Material = "SmoothPlastic"
  360. w1.CanCollide = false
  361. NoOutline(w1)
  362. local sz = Vector3.new(0.2, width, len1)
  363. w1.Size = sz
  364. local sp = Instance.new("SpecialMesh",w1)
  365. sp.MeshType = "Wedge"
  366. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  367. w1:BreakJoints()
  368. w1.Anchored = true
  369. w1.Parent = workspace
  370. w1.Transparency = 0.7
  371. table.insert(Effects,{w1,"Disappear",.01})
  372. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  373. table.insert(list,w1)
  374. end
  375.  
  376. if len2 > 0.01 then
  377. local w2 = Instance.new('WedgePart', m)
  378. game:GetService("Debris"):AddItem(w2,5)
  379. w2.Material = "SmoothPlastic"
  380. w2.FormFactor = 'Custom'
  381. w2.BrickColor = BrickColor.new(Color)
  382. w2.Transparency = 0
  383. w2.Reflectance = 0
  384. w2.Material = "SmoothPlastic"
  385. w2.CanCollide = false
  386. NoOutline(w2)
  387. local sz = Vector3.new(0.2, width, len2)
  388. w2.Size = sz
  389. local sp = Instance.new("SpecialMesh",w2)
  390. sp.MeshType = "Wedge"
  391. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  392. w2:BreakJoints()
  393. w2.Anchored = true
  394. w2.Parent = workspace
  395. w2.Transparency = 0.7
  396. table.insert(Effects,{w2,"Disappear",.01})
  397. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  398. table.insert(list,w2)
  399. end
  400. return unpack(list)
  401. end
  402.  
  403.  
  404. so = function(id,par,vol,pit)
  405. coroutine.resume(coroutine.create(function()
  406. local sou = Instance.new("Sound",par or workspace)
  407. sou.Volume=vol
  408. sou.Pitch=pit or 1
  409. sou.SoundId=id
  410. swait()
  411. sou:play()
  412. game:GetService("Debris"):AddItem(sou,6)
  413. end))
  414. end
  415.  
  416. function clerp(a,b,t)
  417. local qa = {QuaternionFromCFrame(a)}
  418. local qb = {QuaternionFromCFrame(b)}
  419. local ax, ay, az = a.x, a.y, a.z
  420. local bx, by, bz = b.x, b.y, b.z
  421. local _t = 1-t
  422. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  423. end
  424.  
  425. function QuaternionFromCFrame(cf)
  426. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  427. local trace = m00 + m11 + m22
  428. if trace > 0 then
  429. local s = math.sqrt(1 + trace)
  430. local recip = 0.5/s
  431. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  432. else
  433. local i = 0
  434. if m11 > m00 then
  435. i = 1
  436. end
  437. if m22 > (i == 0 and m00 or m11) then
  438. i = 2
  439. end
  440. if i == 0 then
  441. local s = math.sqrt(m00-m11-m22+1)
  442. local recip = 0.5/s
  443. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  444. elseif i == 1 then
  445. local s = math.sqrt(m11-m22-m00+1)
  446. local recip = 0.5/s
  447. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  448. elseif i == 2 then
  449. local s = math.sqrt(m22-m00-m11+1)
  450. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  451. end
  452. end
  453. end
  454.  
  455. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  456. local xs, ys, zs = x + x, y + y, z + z
  457. local wx, wy, wz = w*xs, w*ys, w*zs
  458. local xx = x*xs
  459. local xy = x*ys
  460. local xz = x*zs
  461. local yy = y*ys
  462. local yz = y*zs
  463. local zz = z*zs
  464. 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))
  465. end
  466.  
  467. function QuaternionSlerp(a, b, t)
  468. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  469. local startInterp, finishInterp;
  470. if cosTheta >= 0.0001 then
  471. if (1 - cosTheta) > 0.0001 then
  472. local theta = math.acos(cosTheta)
  473. local invSinTheta = 1/math.sin(theta)
  474. startInterp = math.sin((1-t)*theta)*invSinTheta
  475. finishInterp = math.sin(t*theta)*invSinTheta
  476. else
  477. startInterp = 1-t
  478. finishInterp = t
  479. end
  480. else
  481. if (1+cosTheta) > 0.0001 then
  482. local theta = math.acos(-cosTheta)
  483. local invSinTheta = 1/math.sin(theta)
  484. startInterp = math.sin((t-1)*theta)*invSinTheta
  485. finishInterp = math.sin(t*theta)*invSinTheta
  486. else
  487. startInterp = t-1
  488. finishInterp = t
  489. end
  490. end
  491. 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
  492. end
  493.  
  494. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  495.  
  496.  
  497. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  498. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  499. end
  500.  
  501. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  502. if hit.Parent==nil then
  503. return
  504. end
  505. local h=hit.Parent:FindFirstChild("Humanoid")
  506. for _,v in pairs(hit.Parent:children()) do
  507. if v:IsA("Humanoid") then
  508. h=v
  509. end
  510. end
  511. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  512. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  513. end
  514. if hit.Parent.className=="Hat" then
  515. hit=hit.Parent.Parent:findFirstChild("Head")
  516. end
  517. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  518. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  519. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  520. return
  521. end]]
  522. -- hs(hit,1.2)
  523. local c=Instance.new("ObjectValue")
  524. c.Name="creator"
  525. c.Value=game:service("Players").LocalPlayer
  526. c.Parent=h
  527. game:GetService("Debris"):AddItem(c,.5)
  528. local Damage=math.random(minim,maxim)
  529. -- h:TakeDamage(Damage)
  530. local blocked=false
  531. local block=hit.Parent:findFirstChild("Block")
  532. if block~=nil then
  533. print(block.className)
  534. if block.className=="NumberValue" then
  535. if block.Value>0 then
  536. blocked=true
  537. if decreaseblock==nil then
  538. block.Value=block.Value-1
  539. end
  540. end
  541. end
  542. if block.className=="IntValue" then
  543. if block.Value>0 then
  544. blocked=true
  545. if decreaseblock~=nil then
  546. block.Value=block.Value-1
  547. end
  548. end
  549. end
  550. end
  551. if blocked==false then
  552. -- h:TakeDamage(Damage)
  553. h.Health=h.Health-Damage
  554. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  555. else
  556. h.Health=h.Health-(Damage/2)
  557. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  558. end
  559. if Type=="Knockdown" then
  560. local hum=hit.Parent.Humanoid
  561. hum.PlatformStand=true
  562. coroutine.resume(coroutine.create(function(HHumanoid)
  563. swait(1)
  564. HHumanoid.PlatformStand=false
  565. end),hum)
  566. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  567. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  568. local bodvol=Instance.new("BodyVelocity")
  569. bodvol.velocity=angle*knockback
  570. bodvol.P=5000
  571. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  572. bodvol.Parent=hit
  573. local rl=Instance.new("BodyAngularVelocity")
  574. rl.P=3000
  575. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  576. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  577. rl.Parent=hit
  578. game:GetService("Debris"):AddItem(bodvol,.5)
  579. game:GetService("Debris"):AddItem(rl,.5)
  580. elseif Type=="Normal" then
  581. local vp=Instance.new("BodyVelocity")
  582. vp.P=500
  583. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  584. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  585. if KnockbackType==1 then
  586. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  587. elseif KnockbackType==2 then
  588. vp.velocity=Property.CFrame.lookVector*knockback
  589. end
  590. if knockback>0 then
  591. vp.Parent=hit.Parent.Torso
  592. end
  593. game:GetService("Debris"):AddItem(vp,.5)
  594. elseif Type=="Up" then
  595. local bodyVelocity=Instance.new("BodyVelocity")
  596. bodyVelocity.velocity=vt(0,60,0)
  597. bodyVelocity.P=5000
  598. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  599. bodyVelocity.Parent=hit
  600. game:GetService("Debris"):AddItem(bodyVelocity,1)
  601. local rl=Instance.new("BodyAngularVelocity")
  602. rl.P=3000
  603. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  604. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  605. rl.Parent=hit
  606. game:GetService("Debris"):AddItem(rl,.5)
  607. elseif Type=="Snare" then
  608. local bp=Instance.new("BodyPosition")
  609. bp.P=2000
  610. bp.D=100
  611. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  612. bp.position=hit.Parent.Torso.Position
  613. bp.Parent=hit.Parent.Torso
  614. game:GetService("Debris"):AddItem(bp,1)
  615. elseif Type=="Target" then
  616. local Targetting = false
  617. if Targetting==false then
  618. ZTarget=hit.Parent.Torso
  619. coroutine.resume(coroutine.create(function(Part)
  620. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  621. swait(5)
  622. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  623. end),ZTarget)
  624. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  625. local targetgui=Instance.new("BillboardGui")
  626. targetgui.Parent=ZTarget
  627. targetgui.Size=UDim2.new(10,100,10,100)
  628. local targ=Instance.new("ImageLabel")
  629. targ.Parent=targetgui
  630. targ.BackgroundTransparency=1
  631. targ.Image="rbxassetid://4834067"
  632. targ.Size=UDim2.new(1,0,1,0)
  633. cam.CameraType="Scriptable"
  634. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  635. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  636. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  637. Targetting=true
  638. RocketTarget=ZTarget
  639. for i=1,Property do
  640. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  641. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  642. swait()
  643. end
  644. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  645. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  646. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  647. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  648. end
  649. Targetting=false
  650. RocketTarget=nil
  651. targetgui.Parent=nil
  652. cam.CameraType="Custom"
  653. end
  654. end
  655. local debounce=Instance.new("BoolValue")
  656. debounce.Name="DebounceHit"
  657. debounce.Parent=hit.Parent
  658. debounce.Value=true
  659. game:GetService("Debris"):AddItem(debounce,Delay)
  660. c=Instance.new("ObjectValue")
  661. c.Name="creator"
  662. c.Value=Player
  663. c.Parent=h
  664. game:GetService("Debris"):AddItem(c,.5)
  665. end
  666. end
  667.  
  668.  
  669. function ShowDamage(Pos, Text, Time, Color)
  670. local Rate = (1 / 30)
  671. local Pos = (Pos or Vector3.new(0, 0, 0))
  672. local Text = (Text or "")
  673. local Time = (Time or 2)
  674. local Color = (Color or Color3.new(1, 0, 0))
  675. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  676. EffectPart.Anchored = true
  677. local BillboardGui = Instance.new("BillboardGui")
  678. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  679. BillboardGui.Adornee = EffectPart
  680. local TextLabel = Instance.new("TextLabel")
  681. TextLabel.BackgroundTransparency = 1
  682. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  683. TextLabel.Text = Text
  684. TextLabel.TextColor3 = Color
  685. TextLabel.TextScaled = true
  686. TextLabel.Font = Enum.Font.ArialBold
  687. TextLabel.Parent = BillboardGui
  688. BillboardGui.Parent = EffectPart
  689. game.Debris:AddItem(EffectPart, (Time + 0.1))
  690. EffectPart.Parent = game:GetService("Workspace")
  691. Delay(0, function()
  692. local Frames = (Time / Rate)
  693. for Frame = 1, Frames do
  694. wait(Rate)
  695. local Percent = (Frame / Frames)
  696. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  697. TextLabel.TextTransparency = Percent
  698. end
  699. if EffectPart and EffectPart.Parent then
  700. EffectPart:Destroy()
  701. end
  702. end)
  703. end
  704.  
  705. HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Mid gray","HandleA",Vector3.new(1, 0.400000155, 1.00999999))
  706. HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0164518356, 0.00421309471, -0.0148162842, 5.15770964e-008, 1.96895758e-006, -1, 9.63642469e-006, -0.999999881, -1.96895735e-006, -1, -9.63642469e-006, -5.1596075e-008))
  707. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Medium stone grey","Part",Vector3.new(0.999999821, 0.810000002, 1))
  708. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00934314728, 0.909656525, 0.200021029, 0.99999994, 3.21264488e-005, -1.37204424e-007, 1.34436931e-007, 4.68630387e-005, 0.999998927, 3.18748207e-005, -0.999999523, 4.64304903e-005))
  709. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  710. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 1.00999999))
  711. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.400030136, 0.599991322, -0.000213623047, 0.999999881, 2.39058409e-006, 3.46028912e-008, -1.21625908e-006, 0.999999523, 4.10883877e-006, -4.06064622e-008, -2.09040309e-006, 0.999994993))
  712. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.810000002))
  713. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419909477, -0.599978447, 0.099822998, 0.99999994, 7.54928487e-006, 1.76214101e-008, -7.29764179e-006, 0.999999046, 1.29754881e-005, -1.88143972e-008, -1.25429769e-005, 0.999998927))
  714. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.399999857, 0.200000003, 0.600000024))
  715. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.24012661, -2.51009035, 0.804786682, 1, 2.18087189e-006, 4.50439437e-008, -2.18087166e-006, 0.999999762, 3.74836827e-006, -4.50357653e-008, -3.74837009e-006, 1))
  716. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  717. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.600000143, 0.600000024))
  718. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00945472717, -1.29999971, 0.804782867, 0.99999994, 1.8873352e-006, 3.71787934e-008, -1.7195739e-006, 0.999999523, 3.24379926e-006, -3.80317147e-008, -2.95545533e-006, 0.999999285))
  719. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.600000024, 0.600000024))
  720. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804782867, -1.2998786, 0.611018181, -2.1469468e-008, 2.95687141e-006, -0.999999285, -1.68529607e-006, 0.999999523, 3.24521534e-006, 0.99999994, 1.8530576e-006, -2.23224497e-008))
  721. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  722. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(1.01999998, 0.400000155, 0.200000003))
  723. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00987052917, 0.599969149, -0.405174255, 0.999991298, 3.5646633e-006, 5.82853446e-008, -3.64854418e-006, 0.999993682, 1.23275922e-005, -2.84389419e-008, -1.24717717e-005, 0.999994874))
  724. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.600000024, 0.600000024))
  725. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.804782867, -1.29987872, 0.588165283, -2.31810962e-008, -2.95748578e-006, 0.999999285, -1.69982729e-006, 0.999999523, 3.2458297e-006, -0.99999994, -1.86758859e-006, -2.23281198e-008))
  726. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  727. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.810000002))
  728. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419827461, 0.599992752, 0.0997886658, 0.999999762, 2.43251839e-006, 3.43970825e-008, -1.17431364e-006, 0.999999523, 4.18092532e-006, -4.08298391e-008, -2.01831517e-006, 0.999994636))
  729. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(1.01999998, 0.400000155, 0.200000003))
  730. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00995731354, -0.599978447, -0.40517807, 0.999999702, 8.59777992e-006, 1.22682096e-008, -6.24913537e-006, 0.999998569, 1.47776454e-005, -2.41907241e-008, -1.07407013e-005, 0.999989986))
  731. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.999999821, 0.210000008, 0.800000012))
  732. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0093460083, 1.00976944, 0.199998856, 0.999999404, 2.3486723e-006, 4.91613505e-009, -1.04903428e-008, -2.16248964e-006, 0.999995112, 1.25822874e-006, -0.999999523, -4.03675222e-006))
  733. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  734. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.999999821, 0.800000131, 0.600000024))
  735. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00878238678, -0.600002289, 0.804782867, 0.99999994, 1.88724323e-006, 3.71787934e-008, -1.71948193e-006, 0.999999523, 3.24379926e-006, -3.80317182e-008, -2.95545533e-006, 0.999999285))
  736. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 1.00999999))
  737. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399893761, -0.599973679, -0.00016784668, 0.99999994, 5.4103275e-006, 2.85357231e-008, -5.15868305e-006, 0.999999046, 9.29907037e-006, -2.97754301e-008, -8.86655653e-006, 0.999998927))
  738. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.599999845, 1.60000038, 0.600000024))
  739. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.190833092, -1.80008459, 0.804786682, 0.99999994, 1.88724869e-006, 3.71787934e-008, -1.71948739e-006, 0.999999523, 3.24379926e-006, -3.80317182e-008, -2.95545533e-006, 0.999999285))
  740. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  741. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  742. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00928020477, 0.199999332, 1.1047821, -1, -5.1769365e-007, 2.49673747e-007, 5.17688477e-007, -0.999999762, -1.79347444e-005, 2.49683012e-007, -1.79347426e-005, 1))
  743. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=47260990 ",Vector3.new(0, 0, 0),Vector3.new(0.786000013, 0.828000009, 1.5))
  744. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.599999845, 1.60000038, 0.600000024))
  745. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.208971024, -1.80008447, 0.804786682, 0.99999994, 1.8872571e-006, 3.71787934e-008, -1.7194958e-006, 0.999999523, 3.24379926e-006, -3.80317182e-008, -2.95545533e-006, 0.999999285))
  746. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  747. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.399999857, 0.200000003, 0.600000024))
  748. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.199191093, -2.51008964, 0.804786682, 1, 2.3486466e-006, 4.41860522e-008, -2.3486466e-006, 0.999999762, 4.03671083e-006, -4.41765664e-008, -4.03671311e-006, 1))
  749. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  750. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.800000131, 0.200000003))
  751. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.804782867, -0.599880934, 0.59105587, -2.2917293e-008, -3.02957324e-006, 0.999999642, -1.74180502e-006, 0.999999523, 3.1737427e-006, -0.99999994, -1.82568601e-006, -2.24935697e-008))
  752. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  753. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.800000131, 0.200000003))
  754. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804779053, -0.599861383, 0.608938217, 6.80476333e-008, 2.88217461e-006, -0.999998927, -1.64423193e-006, 0.999999523, 3.31469255e-006, 0.99999994, 1.89587342e-006, 6.67653168e-008))
  755. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  756. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(1.39999986, 1.00000012, 0.600000024))
  757. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00850009918, 0.299923658, 0.804782867, 1, 1.8033528e-006, 3.76067852e-008, -1.80335189e-006, 0.999999523, 3.0996257e-006, -3.76011862e-008, -3.09963116e-006, 1))
  758. BarrelA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","BarrelA",Vector3.new(0.799999833, 0.200000003, 0.600000024))
  759. BarrelAweld=weld(m,HandleA,BarrelA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00080871582, -2.51008987, 0.804786682, 1, 2.3486466e-006, 4.41860522e-008, -2.3486466e-006, 0.999999762, 4.03671083e-006, -4.41765664e-008, -4.03671311e-006, 1))
  760. mesh("CylinderMesh",BarrelA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  761.  
  762. HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Mid gray","Handle",Vector3.new(1, 0.400000155, 1.00999999))
  763. handleweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00640583038, 0.00421285629, -0.014667511, 1.58720503e-008, 1.9694528e-006, 0.999999642, -9.65550043e-006, -0.999999881, 1.96945234e-006, 0.999999642, -9.65550225e-006, -1.58504996e-008))
  764. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Medium stone grey","Part",Vector3.new(0.999999821, 0.810000002, 1))
  765. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00934314728, 0.909656525, 0.200021029, 0.999999225, 3.21264451e-005, -1.37201809e-007, 1.34439375e-007, 4.6863046e-005, 0.999998212, 3.18748025e-005, -0.999999523, 4.64304467e-005))
  766. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  767. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 1.00999999))
  768. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.400030136, 0.599991083, -0.000217437744, 0.999999166, 2.39058249e-006, 3.46053923e-008, -1.21625988e-006, 0.999999523, 4.10884059e-006, -4.06039042e-008, -2.09039763e-006, 0.999994278))
  769. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.810000002))
  770. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419908524, -0.599978447, 0.0998191833, 0.99999851, 7.54928033e-006, 1.76264301e-008, -7.2976386e-006, 0.999999046, 1.29754835e-005, -1.88093008e-008, -1.25429642e-005, 0.999997497))
  771. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.399999857, 0.200000003, 0.600000024))
  772. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.240127563, -2.51008964, 0.804779053, 0.999999285, 2.1808703e-006, 4.37561702e-008, -2.18087166e-006, 0.999999762, 3.748371e-006, -4.37442083e-008, -3.74836372e-006, 0.999999285))
  773. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  774. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.600000143, 0.600000024))
  775. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00945472717, -1.29999995, 0.804779053, 0.999999225, 1.88733361e-006, 3.71812945e-008, -1.71957424e-006, 0.999999523, 3.24380198e-006, -3.80291532e-008, -2.95545078e-006, 0.999998569))
  776. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.600000024, 0.600000024))
  777. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804771423, -1.2998786, 0.611018181, -2.14719833e-008, 2.95686687e-006, -0.999998569, -1.68529652e-006, 0.999999523, 3.24521807e-006, 0.999999225, 1.85305612e-006, -2.23199095e-008))
  778. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  779. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(1.01999998, 0.400000155, 0.200000003))
  780. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00987434387, 0.599969625, -0.405162811, 0.99999094, 3.56466239e-006, -9.33802369e-010, -3.64854304e-006, 0.999993682, 1.23275886e-005, 1.05284457e-007, -1.24717662e-005, 0.999994278))
  781. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.600000024, 0.600000024))
  782. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.804779053, -1.29987884, 0.588165283, -2.31785435e-008, -2.95748123e-006, 0.999998569, -1.69982752e-006, 0.999999523, 3.24583243e-006, -0.999999225, -1.86758712e-006, -2.23306316e-008))
  783. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  784. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.810000002))
  785. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419827461, 0.599992752, 0.0997886658, 0.999999046, 2.43251679e-006, 3.43995836e-008, -1.17431432e-006, 0.999999523, 4.18092714e-006, -4.0827274e-008, -2.01830971e-006, 0.99999392))
  786. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(1.01999998, 0.400000155, 0.200000003))
  787. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00995731354, -0.599978209, -0.405181885, 0.999997556, 8.59777447e-006, 1.22757626e-008, -6.24913037e-006, 0.999998569, 1.47776336e-005, -2.41830644e-008, -1.0740685e-005, 0.999987841))
  788. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.999999821, 0.210000008, 0.800000012))
  789. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0093460083, 1.00976181, 0.199999094, 0.999998689, 2.34867071e-006, 4.91866103e-009, -1.0487808e-008, -2.16248418e-006, 0.999994397, 1.25822942e-006, -0.999999523, -4.03675404e-006))
  790. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  791. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.999999821, 0.800000131, 0.600000024))
  792. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00878238678, -0.600002289, 0.804779053, 0.999999225, 1.88724164e-006, 3.71812945e-008, -1.71948216e-006, 0.999999523, 3.24380198e-006, -3.80291567e-008, -2.95545078e-006, 0.999998569))
  793. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 1.00999999))
  794. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399893761, -0.599973917, -0.000171661377, 0.99999851, 5.41032341e-006, 2.85407094e-008, -5.15868396e-006, 0.999999046, 9.29906673e-006, -2.97703142e-008, -8.86654379e-006, 0.999997497))
  795. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.599999845, 1.60000038, 0.600000024))
  796. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.190833092, -1.80008471, 0.804779053, 0.999999225, 1.88724709e-006, 3.71812945e-008, -1.71948773e-006, 0.999999523, 3.24380198e-006, -3.80291567e-008, -2.95545078e-006, 0.999998569))
  797. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  798. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  799. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00928020477, 0.199999094, 1.10477829, -0.999999225, -5.17692001e-007, 2.84085331e-007, 5.17688704e-007, -0.999999762, -1.79347389e-005, 2.84109177e-007, -1.79347371e-005, 0.999999225))
  800. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=47260990 ",Vector3.new(0, 0, 0),Vector3.new(0.786000013, 0.828000009, 1.5))
  801. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.599999845, 1.60000038, 0.600000024))
  802. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.208971024, -1.80008459, 0.804779053, 0.999999225, 1.88725551e-006, 3.71812945e-008, -1.71949614e-006, 0.999999523, 3.24380198e-006, -3.80291567e-008, -2.95545078e-006, 0.999998569))
  803. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  804. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.399999857, 0.200000003, 0.600000024))
  805. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.199184418, -2.5100894, 0.804786682, 0.999999285, 2.34864501e-006, 4.37577903e-008, -2.34864569e-006, 0.999999762, 4.03671356e-006, -4.37436398e-008, -4.03670674e-006, 0.999999285))
  806. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  807. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.800000131, 0.200000003))
  808. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.804779053, -0.599881411, 0.59105587, -2.29147439e-008, -3.02956778e-006, 0.999998927, -1.74180525e-006, 0.999999523, 3.17374543e-006, -0.999999225, -1.82568454e-006, -2.24960832e-008))
  809. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  810. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.800000131, 0.200000003))
  811. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804775238, -0.599861383, 0.608938217, 6.8045054e-008, 2.88216916e-006, -0.999998212, -1.64423227e-006, 0.999999523, 3.31469528e-006, 0.999999225, 1.89587183e-006, 6.67677966e-008))
  812. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  813. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(1.39999986, 1.00000012, 0.600000024))
  814. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00850009918, 0.299923658, 0.804779053, 0.999999285, 1.80335121e-006, 3.76092864e-008, -1.80335212e-006, 0.999999523, 3.09962843e-006, -3.75986247e-008, -3.0996257e-006, 0.999999285))
  815. BarrelB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","BarrelB",Vector3.new(0.799999833, 0.200000003, 0.600000024))
  816. BarrelBweld=weld(m,HandleB,BarrelB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000818252563, -2.5100894, 0.804779053, 0.999999285, 2.34864501e-006, 4.37577903e-008, -2.34864569e-006, 0.999999762, 4.03671356e-006, -4.37436398e-008, -4.03670674e-006, 0.999999285))
  817. mesh("CylinderMesh",BarrelB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  818.  
  819. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Mid gray","Handle",Vector3.new(1.02999997, 0.400000155, 0.200000003))
  820. handleweld=weld(m,Character["Left Leg"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00482177734, 0.60084343, -0.0100822449, -1, -5.36894822e-006, -5.1169021e-008, 5.36895095e-006, -0.999999881, 1.86432862e-005, -5.12691187e-008, 1.86432844e-005, 1))
  821. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.620000005, 0.400000155, 0.200000003))
  822. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00501251221, -0.19991076, 0.419974327, 1, -1.13095666e-009, -5.73407988e-012, 1.11867848e-009, 0.999999523, 3.83415433e-009, 5.75184345e-012, -3.82015308e-009, 1))
  823. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000006, 0.200000033, 0.400000006))
  824. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300132751, -0.900682688, 0.714515686, -5.12854363e-008, 1.86433699e-005, 1, 5.42855059e-006, 0.999999464, -1.86432771e-005, -0.999999881, 5.38385166e-006, -5.12693887e-008))
  825. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.306000054, 0.363999993, 0.298000067))
  826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.230000004, 0.400000155, 0.819999993))
  827. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400024414, -0.199884892, 0.110021591, 1, -3.18856428e-006, 1.63091372e-008, 3.18855382e-006, 0.999999523, -5.47489981e-006, -1.62916685e-008, 5.47491254e-006, 1))
  828. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(1.02999997, 0.400000155, 0.200000003))
  829. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -0.19998908, -0.400001526, 1, -1.97815098e-010, -9.73443548e-013, 1.85536919e-010, 0.999999523, 6.65474897e-010, 9.87654403e-013, -6.51473486e-010, 1))
  830. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.819999993))
  831. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.414840698, -0.19992125, 0.110017776, 1, -3.18842308e-006, 1.63098086e-008, 3.18841262e-006, 0.999999523, -5.47535274e-006, -1.62923364e-008, 5.47536456e-006, 1))
  832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000006, 0.200000033, 0.400000006))
  833. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299860954, -0.900682688, 0.714515686, -5.12854363e-008, 1.86433699e-005, 1, 5.42855059e-006, 0.999999464, -1.86432771e-005, -0.999999881, 5.38385166e-006, -5.12693887e-008))
  834. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.306000054, 0.363999993, 0.298000067))
  835. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000006, 0.800000012, 0.400000006))
  836. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.714614868, -0.200629354, -0.299841881, 1, -3.18785192e-006, 1.63125939e-008, 3.18784146e-006, 0.999999523, -5.47723175e-006, -1.62951217e-008, 5.47724358e-006, 1))
  837. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  838. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.420000017, 0.400000006, 0.420000017))
  839. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.724590302, -0.200787902, -0.299805641, 1, -3.18777597e-006, 1.63129918e-008, 3.18776574e-006, 0.999999523, -5.47749551e-006, -1.62955196e-008, 5.47750733e-006, 1))
  840. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  841. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.420000017, 0.400000006, 0.420000017))
  842. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.72461319, -0.200729728, 0.300173759, 1, -3.18789807e-006, 1.63124518e-008, 3.18788466e-006, 0.999999523, -5.4771408e-006, -1.62949796e-008, 5.47715263e-006, 1))
  843. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  844. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000006, 0.800000012, 0.400000006))
  845. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.714599609, -0.200613737, 0.300151825, 1, -3.18753905e-006, 1.63145231e-008, 3.18753473e-006, 0.999999762, -5.47841591e-006, -1.62970544e-008, 5.47842228e-006, 1))
  846. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  847.  
  848. BackHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","BackHandle",Vector3.new(1.19999981, 1.4000001, 0.600000024))
  849. BackHandleweld=weld(m,Character["Torso"],BackHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0196533203, 0.400322199, 0.810890198, 0.99999994, -0.000393598049, 9.99395779e-005, -0.000393594615, -1, -3.4742352e-005, 9.99532422e-005, 3.47030109e-005, -1))
  850. JointConnectorA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","JointConnector1A",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  851. JointConnectorAweld=weld(m,BackHandle,JointConnectorA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.500391722, -1.09958172, 0.000106811523, -0.000134849091, 1.00000036, 0.000244120281, 1.00000012, 0.00013480286, 0.0001889009, 0.000188868027, 0.000244145835, -1))
  852. mesh("CylinderMesh",JointConnectorA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  853. JointConnectorB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","JointConnector2A",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  854. JointConnectorBweld=weld(m,BackHandle,JointConnectorB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.499224424, 1.10042953, 0.000389099121, -0.000142050441, 1.00000048, 0.00024563272, 1, 0.000142004006, 0.000189126484, 0.000189091646, 0.00024565967, -1))
  855. mesh("CylinderMesh",JointConnectorB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  856. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Medium stone grey","Part",Vector3.new(0.999999821, 0.810000002, 1))
  857. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000204086304, -0.114334106, 0.11003828, 0.99999994, -0.000434145943, 0.000135086244, 0.000135075781, -2.41484304e-005, -1, 0.000434149173, 1, -2.40897843e-005))
  858. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  859. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  860. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699985504, 0.299962997, 0.000106811523, 1, 2.8545157e-005, 2.01498915e-006, -2.85451333e-005, 1.00000048, -1.65976708e-005, -2.01549119e-006, 1.65976235e-005, 1))
  861. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  862. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.70017767, 0.900276184, 2.28881836e-005, 7.87207955e-006, 1.0000006, 0.000218146262, 1, -7.91228922e-006, 0.000184381133, 0.000184382894, 0.000218144967, -1))
  863. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  864. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  865. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700681448, -0.899713516, -0.000160217285, -4.77653066e-006, 1.00000036, 0.000233566359, 1.00000012, 4.73343016e-006, 0.000184065444, 0.000184064382, 0.000233567349, -1))
  866. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  867. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  868. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699317455, -0.900104523, -0.000503540039, -2.19041112e-006, 1.00000048, 0.000229374593, 1, 2.14808301e-006, 0.000184186967, 0.000184186516, 0.000229375117, -1))
  869. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  870. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.600000083, 0.600000024))
  871. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000160217285, -0.999997377, 0.299993515, 3.70928319e-008, -2.55422492e-008, 0.999995828, 5.12266354e-007, 1.00000048, -4.77502908e-007, -0.999994159, -3.52497096e-007, -7.4505806e-009))
  872. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  873. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.600000083, 0.600000024))
  874. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.15527344e-005, -1.00000215, 0.300003052, 1.37202733e-007, -1.36241215e-006, -0.99999845, 2.17364732e-006, 1.00000036, -1.53008295e-006, 0.999997973, -1.88537808e-006, 1.7232378e-007))
  875. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  876. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  877. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700035095, -0.299979925, -3.05175781e-005, 1, 2.56532749e-005, 1.77198672e-006, -2.56533112e-005, 1.00000048, -1.4922125e-005, -1.772416e-006, 1.49220887e-005, 1))
  878. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 1.39999998, 0.600000024))
  879. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.899816513, 8.86917114e-005, -8.39233398e-005, 1.00000012, -6.77646894e-005, 1.9375002e-006, 6.77645876e-005, 1.00000036, -1.50834312e-005, -1.93650339e-006, 1.50835713e-005, 1))
  880. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  881. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699826002, 0.899929047, -0.000267028809, 5.00179112e-006, 1.00000036, 0.000227865909, 1, -5.04371428e-006, 0.00018396313, 0.000183964323, 0.000227865065, -1))
  882. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  883. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  884. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699979782, -0.300032854, 8.39233398e-005, 1, 2.33540086e-005, 1.59936462e-006, -2.33540104e-005, 1.00000036, -1.3580393e-005, -1.59972114e-006, 1.35803584e-005, 1))
  885. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.999999821, 0.210000008, 0.800000012))
  886. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000158309937, 0.204177856, -0.100054502, 0.99999994, -0.000365686341, -1.8454848e-005, 1.84939854e-005, 0.000107020081, 1, -0.000365684333, -1, 0.000107026826))
  887. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  888. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 1.39999998, 0.600000024))
  889. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.899957657, -5.14984131e-005, 1.52587891e-005, 1, 4.35386755e-005, 1.46304228e-006, -4.3538701e-005, 1.00000048, -2.5323272e-005, -1.46418461e-006, 2.53232211e-005, 1))
  890. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  891. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000169754028, -0.110027075, -0.289321899, 0.99999994, -0.000429946143, -6.52186136e-005, -0.000429945881, -1, 3.28611713e-006, -6.52200033e-005, -3.25807923e-006, -1))
  892. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=47260990 ",Vector3.new(0, 0, 0),Vector3.new(0.786000013, 0.828000009, 1.5))
  893. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  894. Partweld=weld(m,BackHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700004578, 0.300017357, -7.62939453e-006, 1.00000012, 1.98868911e-005, 1.39452459e-006, -1.98869839e-005, 1.00000036, -1.15688927e-005, -1.39477197e-006, 1.15688727e-005, 1))
  895.  
  896. JointHandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","JointHandleA",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  897. JointHandleAweld=weld(m,JointConnectorA,JointHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.83582306e-005, 1.71661377e-005, 4.57763672e-005, 1.00002372, 9.22270647e-006, -2.51305755e-006, -9.21489027e-006, 1.00000823, 7.3468982e-007, 2.52091559e-006, -7.32572516e-007, 1.00000691))
  898. mesh("CylinderMesh",JointHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  899. GunConnectorA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","GunConnectorA",Vector3.new(0.600000024, 0.200000003, 0.600000024))
  900. GunConnectorAweld=weld(m,JointHandleA,GunConnectorA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700202465, -0.199803352, 0.000106811523, 1.00002193, 0.000155094516, 5.12073166e-006, -0.000155089874, 1.00000751, 3.48285539e-006, -5.11290273e-006, -3.48169851e-006, 1.00000632))
  901. mesh("CylinderMesh",GunConnectorA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  902. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  903. Partweld=weld(m,JointHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800303221, 0.000170707703, -0.000518798828, 1.00002372, 0.000125587932, -9.87216481e-006, -0.000125582214, 1.00000823, 4.54029941e-006, 9.88075044e-006, -4.53696703e-006, 1.00000691))
  904. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  905. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.799999952, 0.600000024))
  906. Partweld=weld(m,JointHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000982284546, 0.400094986, 0.000297546387, -0.000799572212, 1.00000811, 0.000185435987, 1.00002396, 0.000799589267, -0.000116516225, -0.00011667455, 0.000185340876, -1.00000703))
  907.  
  908. JointHandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","JointHandleB",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  909. JointHandleBweld=weld(m,JointConnectorB,JointHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00079536438, -1.71661377e-005, -0.000114440918, 1.00001121, 4.23926722e-005, 1.41100318e-005, -4.24169266e-005, 1.00001359, 5.81741915e-007, -1.41142809e-005, -5.79668267e-007, 1.00001562))
  910. mesh("CylinderMesh",JointHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  911. GunConnectorB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Institutional white","GunConnectorB",Vector3.new(0.600000024, 0.200000003, 0.600000024))
  912. GunConnectorBweld=weld(m,JointHandleB,GunConnectorB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699269533, 0.20022583, 0.00025177002, 1.00001144, 9.48040179e-005, -7.13363988e-006, -9.48246816e-005, 1.00001168, 3.8729122e-006, 7.1307586e-006, -3.8698272e-006, 1.00001419))
  913. mesh("CylinderMesh",GunConnectorB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  914. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.800000012, 0.200000003, 0.600000024))
  915. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.799968004, 0.000133514404, -9.91821289e-005, 1.00001144, 5.51939411e-005, -3.30700714e-005, -5.5215256e-005, 1.00001216, 4.67001519e-006, 3.30667535e-005, -4.66570054e-006, 1.00001454))
  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,"Institutional white","Part",Vector3.new(0.600000024, 0.200000003, 0.600000024))
  918. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699347496, 0.000215530396, 0.000228881836, 1.00001144, 5.07884397e-005, -3.28006863e-005, -5.08106859e-005, 1.00001264, 3.4170007e-006, 3.27970192e-005, -3.41280975e-006, 1.0000149))
  919. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  920. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.799999952, 0.600000024))
  921. Partweld=weld(m,JointHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000913619995, 0.399995565, 0, -0.000859739492, 1.00001156, 0.000185929675, 1.00001097, 0.000859755091, -0.000195633038, -0.000195788627, 0.000185758545, -1.00001454))
  922.  
  923. GunHandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","GunHandleA",Vector3.new(0.600000024, 0.200000003, 0.600000024))
  924. GunHandleAweld=weld(m,GunConnectorA,GunHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.81333923e-005, -2.38418579e-005, 0.000122070313, 1.000018, 4.40606818e-005, 1.71461434e-005, -4.40589392e-005, 1.00000608, 1.96720066e-007, -1.71404681e-005, -1.95868779e-007, 1.00000525))
  925. mesh("CylinderMesh",GunHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  926. Barrel1A=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Barrel1A",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  927. Barrel1Aweld=weld(m,GunHandleA,Barrel1A,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.301003456, -3.01091766, -0.120499134, -0.000310220959, 1.00001049, 9.32219409e-005, 0.000273376325, 9.33043921e-005, -1.00000513, -1.00002241, -0.000310193369, -0.000273406797))
  928. Barrel2A=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Barrel2A",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  929. Barrel2Aweld=weld(m,GunHandleA,Barrel2A,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.301006317, -3.0109787, 0.0795035362, -0.000310228672, 1.00001585, 9.32240582e-005, 0.000273379992, 9.33051051e-005, -1.00001037, -1.0000397, -0.000310198491, -0.000273412472))
  930. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.399999857, 1.60000038, 0.400000036))
  931. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300701141, 2.10153961, 0.0998549461, 0.000387485576, -1.00000918, -0.000205141594, -0.000205789169, -0.000205219141, 1.00000775, -1.00002742, -0.0003874377, -0.000205873075))
  932. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  933. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000006, 0.200000003, 0.200000033))
  934. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300693512, -0.201332092, 0.400040627, 9.76964366e-005, -1.00000644, -0.000465032994, 4.45076148e-006, 0.000465032208, -1.00000525, 1.00001907, 9.7693628e-005, 4.50210064e-006))
  935. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  936. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.439999849, 0.80000037, 0.420000046))
  937. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300717354, 2.10094452, -0.100504875, 0.00039939204, -1.00000322, -0.000207646197, -0.000303345674, -0.000207766599, 1.00000262, -1.00000942, -0.000399326789, -0.000303429551))
  938. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  939. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.399999857, 0.210000008, 0.200000003))
  940. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300693512, 2.8059845, -0.120531559, 0.000406712177, -1.00001085, -0.000207314544, -0.000303088542, -0.000207436562, 1.00000262, -1.00001705, -0.000406647741, -0.000303172885))
  941. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  942. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.439999849, 0.80000037, 0.420000046))
  943. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300697327, 2.10094452, 0.0994949341, 0.00039939204, -1.00000322, -0.000207646197, -0.000303345674, -0.000207766599, 1.00000262, -1.00000942, -0.000399326789, -0.000303429551))
  944. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  945. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000036, 0.599999964, 0.200000003))
  946. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.300806046, -0.000413894653, -1.20135498, -0.000731348409, 1.0000062, 0.000186127727, 1.00001884, 0.000731338456, 7.23669655e-006, 7.09466985e-006, 0.000186131423, -1.00000536))
  947. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000036, 0.599999964, 0.600000024))
  948. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.300823212, -0.000389099121, -0.801322937, -0.000736263755, 1.0000062, 0.000186091289, 1.00001884, 0.000736255257, -1.30245462e-006, -1.44549995e-006, 0.000186088728, -1.00000536))
  949. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.399999857, 1.60000038, 0.400000036))
  950. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300709724, 2.1015625, -0.100152969, 0.000389917404, -1.00000632, -0.000204981858, -0.000204947049, -0.000205060263, 1.00000525, -1.00001884, -0.000389870926, -0.000205030199))
  951. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  952. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000036, 0.210000008, 0.600000024))
  953. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000589847565, 0.605097771, -0.000411987305, -1.00001907, -7.11746543e-005, -1.00177131e-005, 7.11750472e-005, -1.00000632, -7.65992445e-006, -1.00113102e-005, -7.65892764e-006, 1.00000536))
  954. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  955. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000036, 0.599999964, 0.799999893))
  956. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.300902367, -0.000275611877, -0.101234436, -0.000714223599, 1.00000596, 0.000186143894, 1.0000186, 0.000714214111, 5.40760811e-006, 5.26869553e-006, 0.000186146179, -1.00000536))
  957. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.200000003, 0.600000024))
  958. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000121593475, -0.600021362, -0.000122070313, 1.00001884, 1.95363464e-005, -1.17676973e-005, -1.95360717e-005, 1.00000632, 8.09086487e-008, 1.17738964e-005, -7.8965968e-008, 1.00000536))
  959. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  960. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000036, 0.200000003, 0.400000036))
  961. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.301052094, -0.398658752, 0.0996770859, 0.000168173574, -1.0000062, -0.000469181949, 0.000192342239, -0.000469148305, 1.00000525, -1.00001884, -0.000168262224, 0.000192254665))
  962. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",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.399999857, 0.210000008, 0.200000003))
  964. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300667763, 2.80599976, 0.129474163, 0.000401809055, -1.00000453, -0.000207350764, -0.000300242304, -0.000207470555, 1.00000262, -1.00001073, -0.000401744619, -0.000300326414))
  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,"Institutional white","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  967. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.30081749, 0.198722839, 0.500051975, 9.52785049e-005, -1.00000632, -0.000465142744, 2.44280091e-006, 0.000465141784, -1.00000525, 1.00001884, 9.5276635e-005, 2.49309232e-006))
  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,"Institutional white","Part",Vector3.new(0.400000036, 0.200000003, 0.200000033))
  970. Partweld=weld(m,GunHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.301048279, -0.398727417, 0.200325489, -0.000165666483, 1.0000062, 0.000465443503, 0.000190699473, -0.000465410732, 1.00000525, 1.00001884, 0.000165753692, -0.000190613733))
  971. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  972.  
  973. GunHandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","GunHandleB",Vector3.new(0.600000024, 0.200000003, 0.600000024))
  974. GunHandleBweld=weld(m,GunConnectorB,GunHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000673770905, -8.39233398e-005, -1.52587891e-005, 1.00000942, 5.44717441e-005, 1.94212189e-005, -5.44843424e-005, 1.00000739, 1.13752321e-007, -1.94224704e-005, -1.13155693e-007, 1.00000906))
  975. mesh("CylinderMesh",GunHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  976. Barrel1B=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Barrel1B",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  977. Barrel1Bweld=weld(m,GunHandleB,Barrel1B,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299085617, -3.01102448, -0.119781017, -0.000329221628, 1.00001323, 9.33345873e-005, 0.000268255244, 9.34198906e-005, -1.00001228, -1.00001538, -0.000329178496, -0.000268283795))
  978. Barrel2B=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"White","Barrel2B",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  979. Barrel2Bweld=weld(m,GunHandleB,Barrel2B,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299085617, -3.01103973, 0.0802307129, -0.00032922221, 1.00001645, 9.33356132e-005, 0.000268258213, 9.34203417e-005, -1.0000124, -1.00001836, -0.000329179165, -0.000268286414))
  980. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.399999857, 0.210000008, 0.200000003))
  981. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299430847, 2.80601501, 0.130136967, 0.000420811819, -1.00000989, -0.00020746683, -0.000295129896, -0.000207588339, 1.00001204, -1.00001252, -0.000420732453, -0.000295215374))
  982. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  983. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.399999857, 0.210000008, 0.200000003))
  984. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299409866, 2.80599976, -0.119864464, 0.000420814817, -1.00001657, -0.000207468634, -0.000295128761, -0.000207589677, 1.00001252, -1.00001824, -0.000420735218, -0.000295213307))
  985. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  986. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.439999849, 0.80000037, 0.420000046))
  987. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299398422, 2.10095215, 0.100156307, 0.000418395415, -1.00000989, -0.000207762394, -0.000298228057, -0.000207884499, 1.00001204, -1.00001252, -0.000418315292, -0.000298313156))
  988. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  989. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.439999849, 0.80000037, 0.420000046))
  990. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299377441, 2.10095215, -0.099843502, 0.000418395415, -1.00000989, -0.000207762394, -0.000298228057, -0.000207884499, 1.00001204, -1.00001252, -0.000418315292, -0.000298313156))
  991. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  992. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000036, 0.599999964, 0.200000003))
  993. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299085617, -0.000154495239, -1.20111847, -0.000798207242, 1.00001216, 0.000186916441, 1.0000155, 0.000798188092, -2.47909629e-005, -2.49380828e-005, 0.000186893303, -1.00001514))
  994. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.400000036, 0.599999964, 0.600000024))
  995. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299261093, -0.000652313232, -0.801330566, -0.000765027537, 1.00000477, 0.000186326899, 1.00000608, 0.000765017117, 4.95283166e-006, 4.81112511e-006, 0.000186329329, -1.00000596))
  996. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.399999857, 1.60000038, 0.400000036))
  997. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299259186, 2.10105133, 0.100150585, 0.000449428364, -1.00000989, -0.000205993856, -0.000232496488, -0.000206095719, 1.00001204, -1.00001252, -0.00044936224, -0.000232587248))
  998. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  999. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.399999857, 1.60000038, 0.400000036))
  1000. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.29924202, 2.10101318, -0.099852562, 0.000439619296, -1.00000465, -0.00020606746, -0.000235352476, -0.0002061696, 1.00000608, -1.00000608, -0.000439561845, -0.000235442218))
  1001. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1002. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000006, 0.200000003, 0.200000033))
  1003. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.300058365, -0.200164795, 0.39960289, 0.00014546531, -1.00000942, -0.000465339806, 2.72641191e-005, 0.000465340447, -1.00001204, 1.0000124, 0.000145435566, 2.73301266e-005))
  1004. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1005. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  1006. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299087524, 0.198875427, 0.499901295, 0.000138242394, -1.00001395, -0.000465639692, 2.61189853e-005, 0.000465638208, -1.00001812, 1.0000186, 0.000138204938, 2.61808163e-005))
  1007. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1008. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000036, 0.210000008, 0.600000024))
  1009. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000405311584, 0.604974747, -0.000221252441, 1.00001872, 0.000124336628, 3.06558795e-005, -0.000124361904, 1.00001407, 2.04929529e-006, -3.06582078e-005, -2.04989192e-006, 1.00001824))
  1010. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1011. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000036, 0.599999964, 0.799999893))
  1012. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.29914093, -0.000112533569, -0.101150513, -0.000767017948, 1.00001383, 0.000186496531, 1.00001836, 0.000766996061, -3.24900029e-005, -3.26305162e-005, 0.000186467601, -1.00001824))
  1013. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.600000024, 0.200000003, 0.600000024))
  1014. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000385761261, 0.599992752, -4.57763672e-005, 1.00001872, 8.64388567e-005, 3.8362341e-006, -8.64641042e-005, 1.00001431, 1.160377e-006, -3.83867882e-006, -1.15746661e-006, 1.00001824))
  1015. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1016. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000036, 0.200000003, 0.400000036))
  1017. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.299236298, -0.398200989, 0.100030422, 0.00025981167, -1.00001419, -0.000468346872, 0.000176015252, -0.000468296057, 1.00001812, -1.0000186, -0.00025986816, 0.000175895984))
  1018. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1019. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.400000036, 0.200000003, 0.200000033))
  1020. Partweld=weld(m,GunHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299167633, -0.3984375, 0.199965, -0.000250084035, 1.00001419, 0.000464713085, 0.000173949171, -0.000464664481, 1.00001812, 1.0000186, 0.000250138983, -0.000173835404))
  1021. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1022.  
  1023. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1024. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1025. prt.Anchored=true
  1026. prt.CFrame=cframe
  1027. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1028. game:GetService("Debris"):AddItem(prt,2)
  1029. coroutine.resume(coroutine.create(function(Part,Mesh)
  1030. for i=0,1,delay do
  1031. swait()
  1032. Part.CFrame=Part.CFrame
  1033. Part.Transparency=i
  1034. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1035. end
  1036. Part.Parent=nil
  1037. end),prt,msh)
  1038. end
  1039.  
  1040. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1041. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1042. prt.Anchored=true
  1043. prt.CFrame=cframe
  1044. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1045. game:GetService("Debris"):AddItem(prt,2)
  1046. coroutine.resume(coroutine.create(function(Part,Mesh)
  1047. for i=0,1,delay do
  1048. swait()
  1049. Part.CFrame=Part.CFrame
  1050. Part.Transparency=i
  1051. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1052. end
  1053. Part.Parent=nil
  1054. end),prt,msh)
  1055. end
  1056.  
  1057. function LaserBarrage(Prt,Parent)
  1058. attack=true
  1059. --so("BeamLockon",Prt,1,1)
  1060. local efprt=part(3,Parent,"SmoothPlastic",0,0.5,BrickColor.new("Cyan"),"Effect",vt(0.2,0.2,0.2))
  1061. efprt.Anchored=true
  1062. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1063. local spread=vt((math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7)*(Prt.Position-Mouse.Hit.p).magnitude/100
  1064. --spread=vt(0,0,0)
  1065. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1066. game:GetService("Debris"):AddItem(Part,6)
  1067. local TheHit=Mouse.Hit.p
  1068. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  1069. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  1070. so("Elec",Prt,0.2,1)
  1071. local tefprt=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1072. tefprt.CFrame=cf(pos)
  1073. MagicCircle(BrickColor.new("Cyan"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  1074. so("Elec",tefprt,0.3,1)
  1075. game:GetService("Debris"):AddItem(tefprt,3)
  1076. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  1077. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1078. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1079. hit.Parent.Humanoid:TakeDamage(15)
  1080. MagniDamage(efprt,hit,1,1,1,1,"Normal")
  1081. end
  1082. end
  1083. local mag=(Prt.Position-pos).magnitude
  1084. MagicCylinder(BrickColor.new("Cyan"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
  1085. Part.Parent=nil
  1086. end),efprt,efmsh,spread)
  1087. end
  1088.  
  1089. function attackone()
  1090. attack=true
  1091. for i=0,1,0.1 do
  1092. swait()
  1093. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  1094. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1095. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.3)
  1096. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(-20), math.rad(-30)), 0.3)
  1097. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(00)),.3)
  1098. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(00)),.3)
  1099. end
  1100. so("http://www.roblox.com/asset/?id=169445602",BarrelA,1,.8)
  1101. so("http://www.roblox.com/asset/?id=138083993",BarrelA,1,1)
  1102. for i = 1,20 do
  1103. LaserBarrage(BarrelA,m)
  1104. end
  1105. for i=0,1,0.1 do
  1106. swait()
  1107. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  1108. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1109. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(50), math.rad(40)), 0.3)
  1110. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(-20), math.rad(-30)), 0.3)
  1111. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(00)),.3)
  1112. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(00)),.3)
  1113. end
  1114. attack=false
  1115. end
  1116.  
  1117. function attacktwo()
  1118. attack=true
  1119. for i=0,1,0.1 do
  1120. swait()
  1121. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1122. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  1123. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.3)
  1124. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(-20), math.rad(30)), 0.3)
  1125. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(00)),.3)
  1126. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(00)),.3)
  1127. end
  1128. so("http://www.roblox.com/asset/?id=169445602",BarrelB,1,.8)
  1129. so("http://www.roblox.com/asset/?id=138083993",BarrelB,1,1)
  1130. for i = 1,20 do
  1131. LaserBarrage(BarrelB,m)
  1132. end
  1133. for i=0,1,0.1 do
  1134. swait()
  1135. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1136. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.3)
  1137. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(130), math.rad(-50), math.rad(-40)), 0.3)
  1138. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(-20), math.rad(30)), 0.3)
  1139. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(00)),.3)
  1140. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(00)),.3)
  1141. end
  1142. attack=false
  1143. end
  1144.  
  1145. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1146. local pmsh = Instance.new('SpecialMesh')
  1147. pmsh.MeshType = 'FileMesh'
  1148. pmsh.Scale = Vector3.new(5,5,5)
  1149. pmsh.MeshId = 'http://www.roblox.com/Asset/?id=9756362'
  1150. local S=Instance.new("Part")
  1151. S.Material = "SmoothPlastic"
  1152. S.Name="Effect"
  1153. S.formFactor=0
  1154. S.Size=Vector3.new(5,5,5)
  1155. S.BrickColor=color
  1156. S.Reflectance = 0
  1157. S.TopSurface=0
  1158. S.BottomSurface=0
  1159. S.Transparency=0
  1160. S.Anchored=true
  1161. S.CanCollide=false
  1162. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1163. S.Parent=workspace
  1164. pmsh.Parent = S
  1165. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1166. end
  1167.  
  1168. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  1169. for _,c in pairs(workspace:children()) do
  1170. local hum=c:findFirstChild("Humanoid")
  1171. if hum~=nil then
  1172. local head=c:findFirstChild("Torso")
  1173. if head~=nil then
  1174. local targ=head.Position-Part.Position
  1175. local mag=targ.magnitude
  1176. if mag<=magni and c.Name~=Player.Name then
  1177. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  1178. end
  1179. end
  1180. end
  1181. end
  1182. end
  1183.  
  1184. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1185. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
  1186. prt.Anchored=true
  1187. prt.CFrame=cframe
  1188. prt.Touched:connect(function(hit) end)
  1189. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  1190. coroutine.resume(coroutine.create(function(Part,Mesh)
  1191. for i=0,1,0.03 do
  1192. wait()
  1193. Part.CFrame=Part.CFrame
  1194. Part.Transparency=i
  1195. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  1196. end
  1197. Part.Parent=nil
  1198. end),prt,msh)
  1199. end
  1200.  
  1201. function Test()
  1202. attack = true
  1203. for i=0,1,0.1 do
  1204. swait()
  1205. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(50)),.3)
  1206. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  1207. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(20), math.rad(-20)), 0.3)
  1208. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(-20), math.rad(-90)), 0.3)
  1209. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10)),.3)
  1210. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-20)),.3)
  1211. end
  1212. local vel = Instance.new("BodyVelocity")
  1213. vel.Parent = Torso
  1214. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1215. vel.velocity = RootPart.CFrame.lookVector*50
  1216. so("http://roblox.com/asset/?id=200632370",LeftArm,1,1)
  1217. so("http://roblox.com/asset/?id=203691699",LeftArm,1,1)
  1218. for i=0,1,0.1 do
  1219. swait()
  1220. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(-50)),.3)
  1221. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(40)),.3)
  1222. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(20), math.rad(-20)), 0.3)
  1223. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(00), math.rad(-40)), 0.3)
  1224. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10)),.3)
  1225. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-20)),.3)
  1226. end
  1227. vel.Parent = nil
  1228. local vel2 = Instance.new("BodyVelocity")
  1229. vel2.Parent = Torso
  1230. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1231. vel2.velocity = RootPart.CFrame.lookVector*-90
  1232. Humanoid.Jump = true
  1233. local prt = Instance.new("Part",workspace)
  1234. prt.Position = BarrelB.Position
  1235. prt.BrickColor = BrickColor.new("Cyan")
  1236. prt.Anchored = true
  1237. prt.Size = Vector3.new(5,5,5)
  1238. prt.CanCollide = false
  1239. prt.Transparency = 1
  1240. MagniDamage(prt,prt,10,15,30,1,"Normal")
  1241. MMMAGIC(BarrelB,5,5,5,0,-1,0,BrickColor.new("Cyan"))
  1242. MMMAGIC(BarrelB,5,5,5,0,-1,0,BrickColor.new("Cyan"))
  1243. MMMAGIC(BarrelB,5,5,5,0,-1,0,BrickColor.new("Cyan"))
  1244. MMMAGIC(BarrelB,5,5,5,0,-1,0,BrickColor.new("Cyan"))
  1245. MagicRing(BrickColor.new("Cyan"),BarrelB.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,0.1,1,1,1)
  1246. MagicRing(BrickColor.new("Cyan"),BarrelB.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,0.1,1,1,1)
  1247. so("http://roblox.com/asset/?id=203691837",BarrelB,1,1)
  1248. so("http://roblox.com/asset/?id=203691653",BarrelB,1,1)
  1249. for i=0,1,0.1 do
  1250. swait()
  1251. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1252. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(40)),.3)
  1253. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(20), math.rad(-20)), 0.3)
  1254. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(-60), math.rad(-50)), 0.3)
  1255. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10)),.3)
  1256. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-20)),.3)
  1257. end
  1258. attack = false
  1259. vel2.Parent = nil
  1260. prt.Parent = nil
  1261. end
  1262.  
  1263. local Effects={}
  1264. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1265. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1266. prt.Anchored=true
  1267. prt.CFrame=cframe
  1268. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1269. game:GetService("Debris"):AddItem(prt,5)
  1270. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1271. end
  1272.  
  1273. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1274. local prt=part(3,Character,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1275. prt.Anchored=true
  1276. prt.CFrame=cframe
  1277. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1278. game:GetService("Debris"):AddItem(prt,5)
  1279. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1280. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1281. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  1282. for i=0,1,delay do
  1283. wait()
  1284. Part.CFrame=Part.CFrame
  1285. Part.Transparency=i
  1286. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1287. end
  1288. Part.Parent=nil
  1289. end),prt,msh)]]
  1290. end
  1291.  
  1292. RocketTarget = RootPart
  1293. function ShootCannon(asd)
  1294. so("rbxassetid://263623156",asd,.5,1)
  1295. so("rbxassetid://263610152",asd,.5,1)
  1296. so("rbxassetid://263623139",asd,.5,1)
  1297. local MainPos=asd.Position
  1298. local MainPos2=Mouse.Hit.p
  1299. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  1300. --[[local mag=(MainPos-pos).magnitude
  1301. MagicCylinder(BrickColor.new("Bright blue"),CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,0.5,0,0.5,0.05)]]
  1302. num=30
  1303. coroutine.resume(coroutine.create(function()
  1304. repeat
  1305. wait()
  1306. local hit,pos = rayCast(MainPos,MouseLook.lookVector,10,RocketTarget.Parent)
  1307. local mag=(MainPos-pos).magnitude
  1308. MagicCylinder2(BrickColor.new("Cyan"),CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1.5,0,1.5,0.1)
  1309. MainPos=MainPos+(MouseLook.lookVector*10)
  1310. num=num-1
  1311. if hit~=nil then
  1312. num=0
  1313. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Cyan"),"Reference",vt())
  1314. ref.Anchored=true
  1315. ref.CFrame=cf(pos)
  1316. MagniDamage(ref,hit,1,30,50,1,"Normal")
  1317. so("rbxassetid://263610039",ref,1,1)
  1318. so("rbxassetid://263610111",ref,1,1)
  1319. MagicBlock(BrickColor.new("Cyan"),cf(pos),20,20,20,5,5,5,0.05)
  1320. game:GetService("Debris"):AddItem(ref,1)
  1321. MagniDamage(ref,ref,15,10,20,0,"Knockdown")
  1322. end
  1323. until num<=0
  1324. end))
  1325. end
  1326.  
  1327. function QuadShot()
  1328. attack = true
  1329. for i = 0,1,0.05 do
  1330. swait()
  1331. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(00)),.3)
  1332. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1333. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.3)
  1334. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.3)
  1335. 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)
  1336. 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)
  1337. JointHandleAweld.C0=clerp(JointHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1338. JointHandleBweld.C0=clerp(JointHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1339. GunHandleAweld.C0=clerp(GunHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.3)
  1340. GunHandleBweld.C0=clerp(GunHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.3)
  1341. end
  1342. ShootCannon(Barrel1A)
  1343. ShootCannon(Barrel2A)
  1344. ShootCannon(Barrel1B)
  1345. ShootCannon(Barrel2B)
  1346. for i = 0,1,0.1 do
  1347. swait()
  1348. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(00)),.3)
  1349. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1350. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.3)
  1351. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.3)
  1352. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1353. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1354. JointHandleAweld.C0=clerp(JointHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  1355. JointHandleBweld.C0=clerp(JointHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(50),math.rad(0)),.3)
  1356. GunHandleAweld.C0=clerp(GunHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(20),math.rad(0)),.3)
  1357. GunHandleBweld.C0=clerp(GunHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(20),math.rad(0)),.3)
  1358. end
  1359. attack = false
  1360. end
  1361.  
  1362. Mouse.Button1Down:connect(function()
  1363. if attack==false then
  1364. if attacktype==1 then
  1365. attack=true
  1366. attacktype=2
  1367. attackone()
  1368. elseif attacktype==2 then
  1369. attack=true
  1370. attacktype=1
  1371. attacktwo()
  1372. end
  1373. end
  1374. end)
  1375.  
  1376. Mouse.KeyDown:connect(function(k)
  1377. k=k:lower()
  1378. if attack == false and k == 'q' then
  1379. Test()
  1380. elseif attack == false and k == 'e' then
  1381. QuadShot()
  1382. end
  1383. end)
  1384.  
  1385.  
  1386. local sine = 0
  1387. local change = 1
  1388. local val = 0
  1389.  
  1390. while true do
  1391. swait()
  1392. sine = sine + change
  1393. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1394. local velderp=RootPart.Velocity.y
  1395. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1396. if equipped==true or equipped==false then
  1397. if attack==false then
  1398. idle=idle+1
  1399. else
  1400. idle=0
  1401. end
  1402. if idle>=500 then
  1403. if attack==false then
  1404. --Sheath()
  1405. end
  1406. end
  1407. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1408. Anim="Jump"
  1409. if attack==false then
  1410. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1411. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1412. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1413. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1414. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(20),math.rad(90),math.rad(-20)),.3)
  1415. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(20)),.3)
  1416. JointHandleAweld.C0=clerp(JointHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1417. JointHandleBweld.C0=clerp(JointHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1418. GunHandleAweld.C0=clerp(GunHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1419. GunHandleBweld.C0=clerp(GunHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1420. end
  1421. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1422. Anim="Fall"
  1423. if attack==false then
  1424. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1425. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1426. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.3)
  1427. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1428. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(20)),.3)
  1429. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(-20)),.3)
  1430. JointHandleAweld.C0=clerp(JointHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1431. JointHandleBweld.C0=clerp(JointHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1432. GunHandleAweld.C0=clerp(GunHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1433. GunHandleBweld.C0=clerp(GunHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1434. end
  1435. elseif torvel<1 and hitfloor~=nil then
  1436. Anim="Idle"
  1437. if attack==false then
  1438. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(-10)),.3)
  1439. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(10)),.3)
  1440. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(20), math.rad(-20)), 0.3)
  1441. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(-20), math.rad(30)), 0.3)
  1442. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10)),.3)
  1443. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-20)),.3)
  1444. JointHandleAweld.C0=clerp(JointHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1445. JointHandleBweld.C0=clerp(JointHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1446. GunHandleAweld.C0=clerp(GunHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1447. GunHandleBweld.C0=clerp(GunHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1448. end
  1449. elseif torvel>2 and hitfloor~=nil then
  1450. Anim="Walk"
  1451. if attack==false then
  1452. change=3
  1453. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(00)),.3)
  1454. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1455. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(20)), 0.3)
  1456. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1457. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1458. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),.3)
  1459. JointHandleAweld.C0=clerp(JointHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1460. JointHandleBweld.C0=clerp(JointHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1461. GunHandleAweld.C0=clerp(GunHandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1462. GunHandleBweld.C0=clerp(GunHandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1463. end
  1464. end
  1465. end
  1466. if #Effects>0 then
  1467. --table.insert(Effects,{prt,"Block1",delay})
  1468. for e=1,#Effects do
  1469. if Effects[e]~=nil then
  1470. --for j=1,#Effects[e] do
  1471. local Thing=Effects[e]
  1472. if Thing~=nil then
  1473. local Part=Thing[1]
  1474. local Mode=Thing[2]
  1475. local Delay=Thing[3]
  1476. local IncX=Thing[4]
  1477. local IncY=Thing[5]
  1478. local IncZ=Thing[6]
  1479. if Thing[1].Transparency<=1 then
  1480. if Thing[2]=="Block1" then
  1481. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1482. Mesh=Thing[1].Mesh
  1483. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1484. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1485. elseif Thing[2]=="Cylinder" then
  1486. --local TheCF=Thing[1].CFrame
  1487. --Thing[1].CFrame=TheCF
  1488. Mesh=Thing[1].Mesh
  1489. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1490. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1491. elseif Thing[2]=="Elec" then
  1492. Mesh=Thing[1].Mesh
  1493. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1494. --Thing[3]=Thing[3]+Delay
  1495. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1496. --print(Thing[1].Transparency)
  1497.  
  1498. --[[local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  1499. prt.Anchored=true
  1500. game:GetService("Debris"):AddItem(prt,2)
  1501. xval=math.random()
  1502. yval=math.random()
  1503. zval=math.random()
  1504. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1505. Effects[#Effects+1]={prt,"Elec",0.05,x,y,z,xval,yval,zval}]]
  1506. --[[coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
  1507. Part.CFrame=cf(Frame)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1508. for i=0,1,0.05 do
  1509. swait()
  1510. xvaal=xvaal-0.1
  1511. yvaal=yvaal-0.1
  1512. zvaal=zvaal-0.1
  1513. Mesh.Scale=vt(xvaal,yvaal,zvaal)
  1514. Part.Transparency=i
  1515. end
  1516. Part.Parent=nil
  1517. end),prt,msh,cff,xval,yval,zval)]]
  1518. end
  1519. else
  1520. Part.Parent=nil
  1521. table.remove(Effects,e)
  1522. end
  1523. end
  1524. --end
  1525. end
  1526. end
  1527. end
  1528. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement