Advertisement
Laith8888

Roblox BOOM Shotguns script

Feb 20th, 2018
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.76 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51. mana=0
  52. cam = workspace.CurrentCamera
  53. ZTarget = nil
  54. RocketTarget = nil
  55.  
  56. mouse=Player:GetMouse()
  57. --save shoulders
  58. RSH, LSH=nil, nil
  59. --welds
  60. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  61. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  62. LH=Torso["Left Hip"]
  63. RH=Torso["Right Hip"]
  64. TorsoColor=Torso.BrickColor
  65. function NoOutline(Part)
  66. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  67. end
  68. player=Player
  69. ch=Character
  70. RSH=ch.Torso["Right Shoulder"]
  71. LSH=ch.Torso["Left Shoulder"]
  72. --
  73. RSH.Parent=nil
  74. LSH.Parent=nil
  75. --
  76. RW.Name="Right Shoulder"
  77. RW.Part0=ch.Torso
  78. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  79. RW.C1=cf(0, 0.5, 0)
  80. RW.Part1=ch["Right Arm"]
  81. RW.Parent=ch.Torso
  82. --
  83. LW.Name="Left Shoulder"
  84. LW.Part0=ch.Torso
  85. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  86. LW.C1=cf(0, 0.5, 0)
  87. LW.Part1=ch["Left Arm"]
  88. LW.Parent=ch.Torso
  89.  
  90. Player=game:GetService('Players').LocalPlayer
  91. Character=Player.Character
  92. Mouse=Player:GetMouse()
  93. m=Instance.new('Model',Character)
  94.  
  95.  
  96. local function weldBetween(a, b)
  97. local weldd = Instance.new("ManualWeld")
  98. weldd.Part0 = a
  99. weldd.Part1 = b
  100. weldd.C0 = CFrame.new()
  101. weldd.C1 = b.CFrame:inverse() * a.CFrame
  102. weldd.Parent = a
  103. return weldd
  104. end
  105.  
  106. function swait(num)
  107. if num==0 or num==nil then
  108. game:service'RunService'.Heartbeat:wait(0)
  109. else
  110. for i=0,num do
  111. game:service'RunService'.Heartbeat:wait(0)
  112. end
  113. end
  114. end
  115.  
  116. function nooutline(part)
  117. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  118. end
  119.  
  120. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  121. local fp=it("Part")
  122. fp.formFactor=formfactor
  123. fp.Parent=parent
  124. fp.Reflectance=reflectance
  125. fp.Transparency=transparency
  126. fp.CanCollide=false
  127. fp.Locked=true
  128. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  129. fp.Name=name
  130. fp.Size=size
  131. fp.Position=Character.Torso.Position
  132. nooutline(fp)
  133. fp.Material=material
  134. fp:BreakJoints()
  135. return fp
  136. end
  137.  
  138. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  139. local mesh=it(Mesh)
  140. mesh.Parent=part
  141. if Mesh=="SpecialMesh" then
  142. mesh.MeshType=meshtype
  143. mesh.MeshId=meshid
  144. end
  145. mesh.Offset=offset
  146. mesh.Scale=scale
  147. return mesh
  148. end
  149.  
  150. function weld(parent,part0,part1,c0,c1)
  151. local weld=it("Weld")
  152. weld.Parent=parent
  153. weld.Part0=part0
  154. weld.Part1=part1
  155. weld.C0=c0
  156. weld.C1=c1
  157. return weld
  158. end
  159.  
  160.  
  161. local function CFrameFromTopBack(at, top, back)
  162. local right = top:Cross(back)
  163. return CFrame.new(at.x, at.y, at.z,
  164. right.x, top.x, back.x,
  165. right.y, top.y, back.y,
  166. right.z, top.z, back.z)
  167. end
  168.  
  169. function Triangle(a, b, c)
  170. local edg1 = (c-a):Dot((b-a).unit)
  171. local edg2 = (a-b):Dot((c-b).unit)
  172. local edg3 = (b-c):Dot((a-c).unit)
  173. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  174. a, b, c = a, b, c
  175. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  176. a, b, c = b, c, a
  177. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  178. a, b, c = c, a, b
  179. else
  180. assert(false, "unreachable")
  181. end
  182.  
  183. local len1 = (c-a):Dot((b-a).unit)
  184. local len2 = (b-a).magnitude - len1
  185. local width = (a + (b-a).unit*len1 - c).magnitude
  186.  
  187. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  188.  
  189. local list = {}
  190.  
  191. local TrailColor = ("Dark grey")
  192.  
  193. if len1 > 0.01 then
  194. local w1 = Instance.new('WedgePart', m)
  195. game:GetService("Debris"):AddItem(w1,5)
  196. w1.Material = "SmoothPlastic"
  197. w1.FormFactor = 'Custom'
  198. w1.BrickColor = BrickColor.new(TrailColor)
  199. w1.Transparency = 0
  200. w1.Reflectance = 0
  201. w1.Material = "SmoothPlastic"
  202. w1.CanCollide = false
  203. NoOutline(w1)
  204. local sz = Vector3.new(0.2, width, len1)
  205. w1.Size = sz
  206. local sp = Instance.new("SpecialMesh",w1)
  207. sp.MeshType = "Wedge"
  208. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  209. w1:BreakJoints()
  210. w1.Anchored = true
  211. w1.Parent = workspace
  212. w1.Transparency = 0.7
  213. table.insert(Effects,{w1,"Disappear",.01})
  214. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  215. table.insert(list,w1)
  216. end
  217.  
  218. if len2 > 0.01 then
  219. local w2 = Instance.new('WedgePart', m)
  220. game:GetService("Debris"):AddItem(w2,5)
  221. w2.Material = "SmoothPlastic"
  222. w2.FormFactor = 'Custom'
  223. w2.BrickColor = BrickColor.new(TrailColor)
  224. w2.Transparency = 0
  225. w2.Reflectance = 0
  226. w2.Material = "SmoothPlastic"
  227. w2.CanCollide = false
  228. NoOutline(w2)
  229. local sz = Vector3.new(0.2, width, len2)
  230. w2.Size = sz
  231. local sp = Instance.new("SpecialMesh",w2)
  232. sp.MeshType = "Wedge"
  233. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  234. w2:BreakJoints()
  235. w2.Anchored = true
  236. w2.Parent = workspace
  237. w2.Transparency = 0.7
  238. table.insert(Effects,{w2,"Disappear",.01})
  239. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  240. table.insert(list,w2)
  241. end
  242. return unpack(list)
  243. end
  244.  
  245.  
  246. so = function(id,par,vol,pit)
  247. coroutine.resume(coroutine.create(function()
  248. local sou = Instance.new("Sound",par or workspace)
  249. sou.Volume=vol
  250. sou.Pitch=pit or 1
  251. sou.SoundId=id
  252. swait()
  253. sou:play()
  254. game:GetService("Debris"):AddItem(sou,6)
  255. end))
  256. end
  257.  
  258. function clerp(a,b,t)
  259. local qa = {QuaternionFromCFrame(a)}
  260. local qb = {QuaternionFromCFrame(b)}
  261. local ax, ay, az = a.x, a.y, a.z
  262. local bx, by, bz = b.x, b.y, b.z
  263. local _t = 1-t
  264. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  265. end
  266.  
  267. function QuaternionFromCFrame(cf)
  268. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  269. local trace = m00 + m11 + m22
  270. if trace > 0 then
  271. local s = math.sqrt(1 + trace)
  272. local recip = 0.5/s
  273. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  274. else
  275. local i = 0
  276. if m11 > m00 then
  277. i = 1
  278. end
  279. if m22 > (i == 0 and m00 or m11) then
  280. i = 2
  281. end
  282. if i == 0 then
  283. local s = math.sqrt(m00-m11-m22+1)
  284. local recip = 0.5/s
  285. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  286. elseif i == 1 then
  287. local s = math.sqrt(m11-m22-m00+1)
  288. local recip = 0.5/s
  289. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  290. elseif i == 2 then
  291. local s = math.sqrt(m22-m00-m11+1)
  292. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  293. end
  294. end
  295. end
  296.  
  297. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  298. local xs, ys, zs = x + x, y + y, z + z
  299. local wx, wy, wz = w*xs, w*ys, w*zs
  300. local xx = x*xs
  301. local xy = x*ys
  302. local xz = x*zs
  303. local yy = y*ys
  304. local yz = y*zs
  305. local zz = z*zs
  306. 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))
  307. end
  308.  
  309. function QuaternionSlerp(a, b, t)
  310. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  311. local startInterp, finishInterp;
  312. if cosTheta >= 0.0001 then
  313. if (1 - cosTheta) > 0.0001 then
  314. local theta = math.acos(cosTheta)
  315. local invSinTheta = 1/math.sin(theta)
  316. startInterp = math.sin((1-t)*theta)*invSinTheta
  317. finishInterp = math.sin(t*theta)*invSinTheta
  318. else
  319. startInterp = 1-t
  320. finishInterp = t
  321. end
  322. else
  323. if (1+cosTheta) > 0.0001 then
  324. local theta = math.acos(-cosTheta)
  325. local invSinTheta = 1/math.sin(theta)
  326. startInterp = math.sin((t-1)*theta)*invSinTheta
  327. finishInterp = math.sin(t*theta)*invSinTheta
  328. else
  329. startInterp = t-1
  330. finishInterp = t
  331. end
  332. end
  333. 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
  334. end
  335.  
  336. --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)
  337.  
  338.  
  339. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  340. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  341. end
  342.  
  343. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  344. if hit.Parent==nil then
  345. return
  346. end
  347. local h=hit.Parent:FindFirstChild("Humanoid")
  348. for _,v in pairs(hit.Parent:children()) do
  349. if v:IsA("Humanoid") then
  350. h=v
  351. end
  352. end
  353. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  354. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  355. end
  356. if hit.Parent.className=="Hat" then
  357. hit=hit.Parent.Parent:findFirstChild("Head")
  358. end
  359. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  360. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  361. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  362. return
  363. end]]
  364. -- hs(hit,1.2)
  365. local c=Instance.new("ObjectValue")
  366. c.Name="creator"
  367. c.Value=game:service("Players").LocalPlayer
  368. c.Parent=h
  369. game:GetService("Debris"):AddItem(c,.5)
  370. local Damage=math.random(minim,maxim)
  371. -- h:TakeDamage(Damage)
  372. local blocked=false
  373. local block=hit.Parent:findFirstChild("Block")
  374. if block~=nil then
  375. print(block.className)
  376. if block.className=="NumberValue" then
  377. if block.Value>0 then
  378. blocked=true
  379. if decreaseblock==nil then
  380. block.Value=block.Value-1
  381. end
  382. end
  383. end
  384. if block.className=="IntValue" then
  385. if block.Value>0 then
  386. blocked=true
  387. if decreaseblock~=nil then
  388. block.Value=block.Value-1
  389. end
  390. end
  391. end
  392. end
  393. if blocked==false then
  394. -- h:TakeDamage(Damage)
  395. h.Health=h.Health-Damage
  396. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5,BrickColor.new("Dark blue").Color)
  397. else
  398. h.Health=h.Health-(Damage/2)
  399. 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)
  400. end
  401. if Type=="Knockdown" then
  402. local hum=hit.Parent.Humanoid
  403. hum.PlatformStand=true
  404. coroutine.resume(coroutine.create(function(HHumanoid)
  405. swait(1)
  406. HHumanoid.PlatformStand=false
  407. end),hum)
  408. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  409. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  410. local bodvol=Instance.new("BodyVelocity")
  411. bodvol.velocity=angle*knockback
  412. bodvol.P=5000
  413. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  414. bodvol.Parent=hit
  415. local rl=Instance.new("BodyAngularVelocity")
  416. rl.P=3000
  417. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  418. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  419. rl.Parent=hit
  420. game:GetService("Debris"):AddItem(bodvol,.5)
  421. game:GetService("Debris"):AddItem(rl,.5)
  422. elseif Type=="Normal" then
  423. local vp=Instance.new("BodyVelocity")
  424. vp.P=500
  425. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  426. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  427. if KnockbackType==1 then
  428. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  429. elseif KnockbackType==2 then
  430. vp.velocity=Property.CFrame.lookVector*knockback
  431. end
  432. if knockback>0 then
  433. vp.Parent=hit.Parent.Torso
  434. end
  435. game:GetService("Debris"):AddItem(vp,.5)
  436. elseif Type=="Up" then
  437. local bodyVelocity=Instance.new("BodyVelocity")
  438. bodyVelocity.velocity=vt(0,60,0)
  439. bodyVelocity.P=5000
  440. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  441. bodyVelocity.Parent=hit
  442. game:GetService("Debris"):AddItem(bodyVelocity,1)
  443. local rl=Instance.new("BodyAngularVelocity")
  444. rl.P=3000
  445. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  446. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  447. rl.Parent=hit
  448. game:GetService("Debris"):AddItem(rl,.5)
  449. elseif Type=="Snare" then
  450. local bp=Instance.new("BodyPosition")
  451. bp.P=2000
  452. bp.D=100
  453. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  454. bp.position=hit.Parent.Torso.Position
  455. bp.Parent=hit.Parent.Torso
  456. game:GetService("Debris"):AddItem(bp,1)
  457. elseif Type=="Target" then
  458. local Targetting = false
  459. if Targetting==false then
  460. ZTarget=hit.Parent.Torso
  461. coroutine.resume(coroutine.create(function(Part)
  462. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  463. swait(5)
  464. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  465. end),ZTarget)
  466. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  467. local targetgui=Instance.new("BillboardGui")
  468. targetgui.Parent=ZTarget
  469. targetgui.Size=UDim2.new(10,100,10,100)
  470. local targ=Instance.new("ImageLabel")
  471. targ.Parent=targetgui
  472. targ.BackgroundTransparency=1
  473. targ.Image="rbxassetid://4834067"
  474. targ.Size=UDim2.new(1,0,1,0)
  475. cam.CameraType="Scriptable"
  476. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  477. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  478. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  479. Targetting=true
  480. RocketTarget=ZTarget
  481. for i=1,Property do
  482. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  483. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  484. swait()
  485. end
  486. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  487. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  488. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  489. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  490. end
  491. Targetting=false
  492. RocketTarget=nil
  493. targetgui.Parent=nil
  494. cam.CameraType="Custom"
  495. end
  496. end
  497. local debounce=Instance.new("BoolValue")
  498. debounce.Name="DebounceHit"
  499. debounce.Parent=hit.Parent
  500. debounce.Value=true
  501. game:GetService("Debris"):AddItem(debounce,Delay)
  502. c=Instance.new("ObjectValue")
  503. c.Name="creator"
  504. c.Value=Player
  505. c.Parent=h
  506. game:GetService("Debris"):AddItem(c,.5)
  507. end
  508. end
  509.  
  510.  
  511. function ShowDamage(Pos, Text, Time, Color)
  512. local Rate = (1 / 30)
  513. local Pos = (Pos or Vector3.new(0, 0, 0))
  514. local Text = (Text or "")
  515. local Time = (Time or 2)
  516. local Color = (Color or Color3.new(1, 0, 0))
  517. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  518. EffectPart.Anchored = true
  519. local BillboardGui = Instance.new("BillboardGui")
  520. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  521. BillboardGui.Adornee = EffectPart
  522. local TextLabel = Instance.new("TextLabel")
  523. TextLabel.BackgroundTransparency = 1
  524. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  525. TextLabel.Text = Text
  526. TextLabel.TextColor3 = Color
  527. TextLabel.TextScaled = true
  528. TextLabel.Font = Enum.Font.ArialBold
  529. TextLabel.Parent = BillboardGui
  530. BillboardGui.Parent = EffectPart
  531. game.Debris:AddItem(EffectPart, (Time + 0.1))
  532. EffectPart.Parent = game:GetService("Workspace")
  533. Delay(0, function()
  534. local Frames = (Time / Rate)
  535. for Frame = 1, Frames do
  536. wait(Rate)
  537. local Percent = (Frame / Frames)
  538. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  539. TextLabel.TextTransparency = Percent
  540. end
  541. if EffectPart and EffectPart.Parent then
  542. EffectPart:Destroy()
  543. end
  544. end)
  545. end
  546.  
  547. HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleA",Vector3.new(0.6209023, 0.354801297, 0.263675183))
  548. HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.712272644, -0.658613205, -0.0450134277, 0, -0.499999821, -0.86602509, 0, -0.866024971, 0.499999881, -1, 0, 0))
  549. BarrelA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BarrelA",Vector3.new(0.266101122, 0.263675213, 0.354801387))
  550. BarrelAweld=weld(m,HandleA,BarrelA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.65196991, -3.61154366, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  551. mesh("CylinderMesh",BarrelA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 1))
  552. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.798303008, 0.532201946, 0.709602773))
  553. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.47013092, -1.24765587, -4.57763672e-005, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  554. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  555. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.443501562, 0.263675213, 0.6209023))
  556. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.115322113, 0, 0.316355348, 0.866025031, -0.499999583, -0, -0, 0, 1, -0.499999583, -0.866025031, 0))
  557. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672799945, 1))
  558. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.354801446, 0.270536005, 0.354801387))
  559. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.651966095, -3.5117569, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  560. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  561. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  562. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.647537231, 0.228363037, -0.582419634, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  563. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  564. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.44350177, 1.86270726, 0.532202065))
  565. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.647533417, -2.71123719, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  566. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  567. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.6209023, 0.263675213, 0.798303008))
  568. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, 0.223937988, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  569. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.353219956, 1))
  570. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.798303008, 0.263675213, 0.798303008))
  571. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, 0.221725464, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  572. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 1))
  573. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  574. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.470134735, 0.228363037, -0.405021667, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  575. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  577. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.470134735, 0.228363037, -0.759824157, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  578. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  579. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.6209023, 0.263675213, 0.798303008))
  580. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, 0.223937988, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  581. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.353219956, 1))
  582. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  583. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.292743683, 0.228363037, -0.582422733, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  584. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  585. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.798303008, 0.263675213, 0.798303008))
  586. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, -0.22177124, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  587. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 1))
  588. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  589. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.470134735, -0.228408813, -0.405021667, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  590. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  591. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  592. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.647537231, -0.228408813, -0.582419634, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  593. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  594. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  595. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.292743683, -0.228408813, -0.582422733, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  596. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  597. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.6209023, 0.263675213, 0.798303008))
  598. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, -0.223960876, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  599. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.353219956, 1))
  600. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  601. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.470134735, -0.228408813, -0.759824157, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  602. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  603. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.6209023, 0.263675213, 0.263675183))
  604. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00384521484, 0.00221633911, 0, 0.999999344, 0, -0, 0, 0.999999344, 0, -0, 0, 1))
  605. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672799945, 0.70644027))
  606. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.266100973, 0.263675183))
  607. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.957988739, -0.493718386, -0.133056641, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  608. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672799945, 1, 0.336399972))
  609. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.6209023, 0.263675213, 0.354801387))
  610. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.470127106, -0.094623208, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  611. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672799945, 1))
  612. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.798303008, 0.354801387))
  613. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.824935913, -0.582421541, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  614. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 1))
  615. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.798303068, 0.263675183))
  616. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.913650513, -0.582422614, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  617. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 0.672800243))
  618. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.266100973, 0.263675183))
  619. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.957988739, -0.493718386, 0.133049011, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  620. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672799945, 1, 0.336399972))
  621. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.354801267, 0.263675213, 0.354801387))
  622. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.306606293, 0, -0.00222206116, 0.999999583, 1.1920929e-007, -0, -0, 0, 1, 1.1920929e-007, -0.999999583, 0))
  623. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672799945, 1))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.354801267, 0.266100973, 0.363671392))
  625. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.514480591, -0.138983727, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  626. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 1.86270726, 0.263675183))
  627. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.869281769, -2.71124148, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  628. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672800481, 1, 0.672800243))
  629. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.354801297, 0.263675213, 0.263675183))
  630. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.306606293, 0, -0.00222206116, 0.999999583, 1.1920929e-007, -0, -0, 0, 1, 1.1920929e-007, -0.999999583, 0))
  631. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.706439912, 0.672800243))
  632. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 1.86270726, 0.263675183))
  633. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.425792694, -2.71124005, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  634. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672800481, 1, 0.672800243))
  635. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.354801446, 0.443501711, 0.263675183))
  636. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.159671783, -3.33218336, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  637. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.672800243))
  638. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.266101062, 0.263675183))
  639. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00234604, -3.33218288, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  640. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 0.672800243))
  641. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.354801446, 1.33050513, 0.263675183))
  642. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.337085724, -2.44513679, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  643. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.672800243))
  644. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.798303068, 0.263675213, 0.354801387))
  645. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.47013092, -1.55811501, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  646. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 1))
  647. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.532201946, 0.354801387))
  648. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.824932098, -1.24765778, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  649. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 1))
  650. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.6209023, 0.798303008, 0.354801387))
  651. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.470127106, -0.582418799, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  652. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.798303068, 0.263675183))
  653. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.913650513, -1.38070595, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  654. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 0.672800243))
  655. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.532202065, 0.263675213, 0.354801387))
  656. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.603176117, -1.69116795, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  657. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672800183, 1))
  658. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.443501592, 0.354801387))
  659. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.115318298, -1.29201102, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  660. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 1))
  661. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.354801297, 0.263675183))
  662. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.115318298, 0, 0.9815588, 0.866024911, -0.499999762, -0, -0, 0, 1, -0.499999762, -0.866024911, 0))
  663. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 0.672800183))
  664. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.354801297, 0.263675183))
  665. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0709648132, 0, 0.981558442, 0.866024911, -0.499999762, -0, -0, 0, 1, -0.499999762, -0.866024911, 0))
  666. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672799706, 1, 0.672800183))
  667. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.354801327, 0.263675213, 0.263675183))
  668. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.824932098, -0.0946245193, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  669. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 0.672799885))
  670. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Wedge",Vector3.new(0.363671362, 0.263675213, 0.263675183))
  671. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.425788879, 0.0384018421, 5.16191072e-008, -2.98023082e-008, -0.999999702, -0.866024613, 0.499999583, -5.96046448e-008, 0.499999762, 0.866024911, 0))
  672. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.672800004, 0.336399972))
  673. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Wedge",Vector3.new(0.363671362, 0.263675213, 0.263675183))
  674. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.603176117, 0.0384008884, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  675. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.672800004, 0.336399972))
  676. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.354801327, 0.354801297, 0.263675183))
  677. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.337089539, 0.0383994579, 3.87143366e-008, -2.23517329e-008, -0.999999583, -0.866024613, 0.499999613, -4.47034836e-008, 0.499999762, 0.866024911, 0))
  678. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.336399972))
  679. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.354801297, 0.354801297))
  680. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.306602478, 0.17517662, 0, 0, -1, 0.999999583, 1.1920929e-007, -0, 1.1920929e-007, -0.999999583, 0))
  681. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672799945, 1, 1))
  682. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.354801297, 0.263675183))
  683. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.159656525, -3.0217073, 4.16935109e-007, 5.17906784e-008, -0.999999404, -0.866022944, 0.500002921, -3.35181227e-007, 0.500002861, 0.866022885, 1.04308128e-007))
  684. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672800004, 1, 0.672799945))
  685. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  686. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.00234604, 3.55395985, -7.45057704e-009, -1.29047768e-008, -0.999999762, 0.866024911, -0.499999762, -0, -0.499999613, -0.866024792, 1.49011612e-008))
  687. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672800004, 0.336399972, 0.672799885))
  688. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  689. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.00234604, -3.11040449, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  690. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672800004, 0.336399972, 0.672799885))
  691. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  692. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.869285583, -0.0946269035, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  693. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672800004, 0.672799945, 0.672799885))
  694. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  695. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.133049011, -0.957988739, -0.272016048, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  696. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.672799945, 0.672799885))
  697. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  698. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.133056641, -0.957988739, -0.272016048, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  699. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.672799945, 0.672799885))
  700. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.354801327, 0.266100973, 0.263675183))
  701. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.204036713, 1.69116926, 7.38661754e-009, -1.06415222e-007, 0.999999702, -0.866022885, 0.500002861, 5.96046448e-008, -0.50000298, -0.866023242, -8.84652422e-008))
  702. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.672799945))
  703. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.354801327, 0.266100973, 0.263675183))
  704. Wedgeweld=weld(m,HandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.647533417, 0.038402319, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  705. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.336399972))
  706. mesh("BlockMesh",HandleA,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.672800243))
  707.  
  708. HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleB",Vector3.new(0.6209023, 0.354801297, 0.263675183))
  709. HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.712272644, -0.658613205, 0.044960022, 0, -0.499999821, -0.86602509, 0, -0.866024971, 0.499999881, -1, 0, 0))
  710. BarrelB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BarrelB",Vector3.new(0.266101122, 0.263675213, 0.354801387))
  711. BarrelBweld=weld(m,HandleB,BarrelB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.65196991, -3.61154366, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  712. mesh("CylinderMesh",BarrelB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 1))
  713. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.798303008, 0.532201946, 0.709602773))
  714. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.47013092, -1.24765587, -4.57763672e-005, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  715. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  716. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.443501562, 0.263675213, 0.6209023))
  717. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.115322113, 0, 0.316355348, 0.866025031, -0.499999583, -0, -0, 0, 1, -0.499999583, -0.866025031, 0))
  718. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672799945, 1))
  719. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.354801446, 0.270536005, 0.354801387))
  720. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.651966095, -3.5117569, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  721. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  722. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  723. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.647537231, 0.228363037, -0.582419634, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  724. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  725. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.44350177, 1.86270726, 0.532202065))
  726. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.647533417, -2.71123719, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  727. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  728. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.6209023, 0.263675213, 0.798303008))
  729. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, 0.223937988, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  730. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.353219956, 1))
  731. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.798303008, 0.263675213, 0.798303008))
  732. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, 0.221725464, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  733. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 1))
  734. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  735. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.470134735, 0.228363037, -0.405021667, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  736. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  737. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  738. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.470134735, 0.228363037, -0.759824157, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  739. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  740. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.6209023, 0.263675213, 0.798303008))
  741. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, 0.223937988, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  742. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.353219956, 1))
  743. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  744. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.292743683, 0.228363037, -0.582422733, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  745. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  746. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.798303008, 0.263675213, 0.798303008))
  747. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, -0.22177124, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  748. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 1))
  749. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  750. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.470134735, -0.228408813, -0.405021667, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  751. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  752. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  753. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.647537231, -0.228408813, -0.582419634, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  754. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  755. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  756. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.292743683, -0.228408813, -0.582422733, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  757. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  758. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.6209023, 0.263675213, 0.798303008))
  759. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.47013092, -0.223960876, -0.582418919, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  760. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.353219956, 1))
  761. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.263675213, 0.798303008))
  762. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.470134735, -0.228408813, -0.759824157, -0.866024315, 0.499999404, 0, -0, 0, 0.999999642, 0.499999553, 0.866024554, 0))
  763. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.353219956, 1))
  764. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.6209023, 0.263675213, 0.263675183))
  765. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00384521484, 0.00221633911, 0, 0.999999344, 0, -0, 0, 0.999999344, 0, -0, 0, 1))
  766. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672799945, 0.70644027))
  767. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.266100973, 0.263675183))
  768. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.957988739, -0.493718386, -0.133056641, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  769. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672799945, 1, 0.336399972))
  770. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.6209023, 0.263675213, 0.354801387))
  771. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.470127106, -0.094623208, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  772. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672799945, 1))
  773. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.798303008, 0.354801387))
  774. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.824935913, -0.582421541, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  775. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 1))
  776. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.798303068, 0.263675183))
  777. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.913650513, -0.582422614, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  778. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 0.672800243))
  779. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.266100973, 0.263675183))
  780. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.957988739, -0.493718386, 0.133049011, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  781. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672799945, 1, 0.336399972))
  782. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.354801267, 0.263675213, 0.354801387))
  783. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.306606293, 0, -0.00222206116, 0.999999583, 1.1920929e-007, -0, -0, 0, 1, 1.1920929e-007, -0.999999583, 0))
  784. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672799945, 1))
  785. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.354801267, 0.266100973, 0.363671392))
  786. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.514480591, -0.138983727, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  787. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 1.86270726, 0.263675183))
  788. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.869281769, -2.71124148, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  789. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672800481, 1, 0.672800243))
  790. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Part",Vector3.new(0.354801297, 0.263675213, 0.263675183))
  791. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.306606293, 0, -0.00222206116, 0.999999583, 1.1920929e-007, -0, -0, 0, 1, 1.1920929e-007, -0.999999583, 0))
  792. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.706439912, 0.672800243))
  793. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 1.86270726, 0.263675183))
  794. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.425792694, -2.71124005, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  795. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672800481, 1, 0.672800243))
  796. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.354801446, 0.443501711, 0.263675183))
  797. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.159671783, -3.33218336, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  798. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.672800243))
  799. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.266101062, 0.263675183))
  800. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00234604, -3.33218288, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  801. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 0.672800243))
  802. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.354801446, 1.33050513, 0.263675183))
  803. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.337085724, -2.44513679, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  804. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.672800243))
  805. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.798303068, 0.263675213, 0.354801387))
  806. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.47013092, -1.55811501, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  807. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 1))
  808. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.532201946, 0.354801387))
  809. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.824932098, -1.24765778, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  810. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 1))
  811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.6209023, 0.798303008, 0.354801387))
  812. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.470127106, -0.582418799, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  813. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.798303068, 0.263675183))
  814. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.913650513, -1.38070595, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  815. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 0.672800243))
  816. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.532202065, 0.263675213, 0.354801387))
  817. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.603176117, -1.69116795, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  818. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672800183, 1))
  819. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.443501592, 0.354801387))
  820. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.115318298, -1.29201102, 0, 0.866024852, -0.499999672, -0, 0.499999672, 0.866024852, 0, -0, 0, 1))
  821. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 1))
  822. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.354801297, 0.263675183))
  823. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.115318298, 0, 0.9815588, 0.866024911, -0.499999762, -0, -0, 0, 1, -0.499999762, -0.866024911, 0))
  824. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 1, 0.672800183))
  825. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.263675183, 0.354801297, 0.263675183))
  826. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0709648132, 0, 0.981558442, 0.866024911, -0.499999762, -0, -0, 0, 1, -0.499999762, -0.866024911, 0))
  827. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.672799706, 1, 0.672800183))
  828. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.354801327, 0.263675213, 0.263675183))
  829. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.824932098, -0.0946245193, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  830. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.336399972, 0.672799885))
  831. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Wedge",Vector3.new(0.363671362, 0.263675213, 0.263675183))
  832. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.425788879, 0.0384018421, 5.16191072e-008, -2.98023082e-008, -0.999999702, -0.866024613, 0.499999583, -5.96046448e-008, 0.499999762, 0.866024911, 0))
  833. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.672800004, 0.336399972))
  834. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark blue","Wedge",Vector3.new(0.363671362, 0.263675213, 0.263675183))
  835. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.603176117, 0.0384008884, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  836. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.672800004, 0.336399972))
  837. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.354801327, 0.354801297, 0.263675183))
  838. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.337089539, 0.0383994579, 3.87143366e-008, -2.23517329e-008, -0.999999583, -0.866024613, 0.499999613, -4.47034836e-008, 0.499999762, 0.866024911, 0))
  839. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.336399972))
  840. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.354801297, 0.354801297))
  841. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.306602478, 0.17517662, 0, 0, -1, 0.999999583, 1.1920929e-007, -0, 1.1920929e-007, -0.999999583, 0))
  842. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672799945, 1, 1))
  843. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.354801297, 0.263675183))
  844. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.159656525, -3.0217073, 4.16935109e-007, 5.17906784e-008, -0.999999404, -0.866022944, 0.500002921, -3.35181227e-007, 0.500002861, 0.866022885, 1.04308128e-007))
  845. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672800004, 1, 0.672799945))
  846. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  847. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.00234604, 3.55395985, -7.45057704e-009, -1.29047768e-008, -0.999999762, 0.866024911, -0.499999762, -0, -0.499999613, -0.866024792, 1.49011612e-008))
  848. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672800004, 0.336399972, 0.672799885))
  849. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  850. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.00234604, -3.11040449, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  851. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672800004, 0.336399972, 0.672799885))
  852. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  853. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.869285583, -0.0946269035, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  854. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.672800004, 0.672799945, 0.672799885))
  855. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  856. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.133049011, -0.957988739, -0.272016048, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  857. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.672799945, 0.672799885))
  858. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.263675183, 0.263675213, 0.263675183))
  859. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.133056641, -0.957988739, -0.272016048, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  860. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.336399972, 0.672799945, 0.672799885))
  861. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.354801327, 0.266100973, 0.263675183))
  862. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.204036713, 1.69116938, 7.38661754e-009, -1.06415222e-007, 0.999999702, -0.866022885, 0.500002861, 5.96046448e-008, -0.50000298, -0.866023242, -8.84652422e-008))
  863. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.672799945))
  864. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.354801327, 0.266100973, 0.263675183))
  865. Wedgeweld=weld(m,HandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.647533417, 0.038402319, -0, 0, 1, 0.866024911, -0.499999762, -0, 0.499999762, 0.866024911, 0))
  866. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.336399972))
  867. mesh("BlockMesh",HandleB,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.672800243))
  868.  
  869. function effect(Color,Ref,LP,P1,returnn)
  870. if LP==nil or P1==nil then return end
  871. local effectsmsh=Instance.new("CylinderMesh")
  872. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  873. effectsmsh.Name="Mesh"
  874. local effectsg=Instance.new("Part")
  875. NoOutline(effectsg)
  876. effectsg.formFactor=3
  877. effectsg.CanCollide=false
  878. effectsg.Name="Eff"
  879. effectsg.Locked=true
  880. effectsg.Anchored=true
  881. effectsg.Size=Vector3.new(0.5,1,0.5)
  882. effectsg.Parent=workspace
  883. effectsmsh.Parent=effectsg
  884. effectsg.BrickColor=BrickColor.new(Color)
  885. effectsg.Reflectance=Ref
  886. local point1=P1
  887. local mg=(LP.p - point1.p).magnitude
  888. effectsg.Size=Vector3.new(0.5,mg,0.5)
  889. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  890. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  891. game:GetService("Debris"):AddItem(effectsg,2)
  892. if returnn then return effectsg end
  893. if not returnn then
  894. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  895. end
  896. end
  897.  
  898. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  899. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  900. prt.Anchored=true
  901. prt.CFrame=cframe
  902. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  903. game:GetService("Debris"):AddItem(prt,2)
  904. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  905. end
  906.  
  907. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  908. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  909. prt.Anchored=true
  910. prt.CFrame=cframe
  911. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  912. game:GetService("Debris"):AddItem(prt,2)
  913. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  914. end
  915.  
  916. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  917. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  918. prt.Anchored=true
  919. prt.CFrame=cframe
  920. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  921. game:GetService("Debris"):AddItem(prt,2)
  922. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  923. end
  924.  
  925. function LaserBarrage(Prt,Parent)
  926. attack=true
  927. --so("BeamLockon",Prt,1,1)
  928. local efprt=part(3,Parent,"SmoothPlastic",0,0.5,BrickColor.new("Dark blue"),"Effect",vt(0.2,0.2,0.2))
  929. efprt.Anchored=true
  930. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  931. local spread=vt((math.random(-1,0)+math.random())*0,(math.random(-1,0)+math.random())*0,(math.random(-1,0)+math.random())*0)*(Prt.Position-Mouse.Hit.p).magnitude/100
  932. --spread=vt(0,0,0)
  933. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  934. game:GetService("Debris"):AddItem(Part,6)
  935. local TheHit=Mouse.Hit.p
  936. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  937. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  938. so("Elec",Prt,0.2,1)
  939. local tefprt=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  940. tefprt.CFrame=cf(pos)
  941. MagicCircle(BrickColor.new("Dark blue"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  942. so("Elec",tefprt,0.3,1)
  943. game:GetService("Debris"):AddItem(tefprt,3)
  944. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  945. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  946. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  947. hit.Parent.Humanoid:TakeDamage(40)
  948. end
  949. end
  950. local mag=(Prt.Position-pos).magnitude
  951. MagicCylinder(BrickColor.new("Dark blue"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
  952. Part.Parent=nil
  953. end),efprt,efmsh,spread)
  954. end
  955.  
  956. function MagniDamage(Part,magni,Dam)
  957. for _,c in pairs(workspace:children()) do
  958. local hum=c:findFirstChild("Humanoid")
  959. if hum~=nil then
  960. local head=c:findFirstChild("Torso")
  961. if head~=nil then
  962. local targ=head.Position-Part.Position
  963. local mag=targ.magnitude
  964. if mag<=magni and c.Name~=Player.Name then
  965. hum:TakeDamage(Dam)
  966. end
  967. end
  968. end
  969. end
  970. end
  971.  
  972. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  973. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  974. prt.Anchored=true
  975. prt.CFrame=cframe
  976. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  977. coroutine.resume(coroutine.create(function(Part,Mesh)
  978. for i=0,1,0.03 do
  979. wait()
  980. Part.CFrame=Part.CFrame
  981. Part.Transparency=i
  982. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  983. end
  984. Part.Parent=nil
  985. end),prt,msh)
  986. end
  987.  
  988. function attackone()
  989. attack = true
  990. for i = 0,1,0.1 do
  991. swait()
  992. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  993. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  994. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  995. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), 0.3)
  996. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(10)),.3)
  997. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(10)),.3)
  998. end
  999. LaserBarrage(BarrelA,m)
  1000. so("http://www.roblox.com/asset/?id=141679994",BarrelA,1,1)
  1001. for i = 0,1,0.1 do
  1002. swait()
  1003. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1004. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1005. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 1, 0) * angles(math.rad(60), math.rad(60), math.rad(90)), 0.3)
  1006. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  1007. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(10)),.3)
  1008. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(10)),.3)
  1009. end
  1010. attack = false
  1011. end
  1012.  
  1013. function attacktwo()
  1014. attack = true
  1015. for i = 0,1,0.1 do
  1016. swait()
  1017. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1018. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1019. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(10)), 0.3)
  1020. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  1021. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0)),.3)
  1022. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1023. end
  1024. LaserBarrage(BarrelB,m)
  1025. so("http://www.roblox.com/asset/?id=141679994",BarrelB,1,1)
  1026. for i = 0,1,0.1 do
  1027. swait()
  1028. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1029. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1030. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(40)), 0.3)
  1031. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(130), math.rad(-30), math.rad(-50)), 0.3)
  1032. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0)),.3)
  1033. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1034. end
  1035. attack = false
  1036. end
  1037.  
  1038. function CloseRangeBlast()
  1039. attack = true
  1040. for i = 0,1,0.1 do
  1041. swait()
  1042. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1043. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1044. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(60), math.rad(90)), 0.3)
  1045. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-60), math.rad(-90)), 0.3)
  1046. 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)
  1047. 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)
  1048. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,-0.5,0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1049. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,-0.5,0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1050. end
  1051. local RefDamage=part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new("Dark blue"),"DamagePrt",Vector3.new(5,5,5))
  1052. RefDamage.Anchored = true
  1053. RefDamage.CFrame = Torso.CFrame*CFrame.new(0,0,-5)
  1054. MagniDamage(RefDamage,5,30)
  1055. for i=1,4 do
  1056. MagicRing(BrickColor.new("Dark blue"),Torso.CFrame*CFrame.new(0,0,-5)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,.6,.6,.6)
  1057. end
  1058. MagicCircle(BrickColor.new("Dark blue"),Torso.CFrame*CFrame.new(0,0,-5),1,1,1,2,2,2,0.05)
  1059. so("http://www.roblox.com/asset/?id=141679994",BarrelA,1,.9)
  1060. so("http://www.roblox.com/asset/?id=141679994",BarrelB,1,.9)
  1061. for i = 0,1,0.1 do
  1062. swait()
  1063. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1064. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1065. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(90)), 0.3)
  1066. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-90)), 0.3)
  1067. 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)
  1068. 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)
  1069. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
  1070. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
  1071. end
  1072. attack = false
  1073. RefDamage:remove()
  1074. end
  1075.  
  1076. function HolyShitBulletDive()
  1077. attack = true
  1078. for i = 0,1,0.1 do
  1079. swait()
  1080. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1081. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1082. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1083. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1084. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1085. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1086. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1087. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1088. end
  1089. Humanoid.Jump = true
  1090. Humanoid.WalkSpeed= 100
  1091. for i = 0,1,0.5 do
  1092. swait()
  1093. for i = 0,1,0.1 do
  1094. swait()
  1095. so("http://www.roblox.com/asset/?id=141679994",BarrelA,1,.9)
  1096. so("http://www.roblox.com/asset/?id=141679994",BarrelB,1,.9)
  1097. local RefDamage=part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new("Dark blue"),"DamagePrt",Vector3.new(5,5,5))
  1098. RefDamage.Anchored = true
  1099. RefDamage.CFrame = Torso.CFrame*CFrame.new(0,0,-5)
  1100. MagniDamage(RefDamage,5,30)
  1101. MagicRing(BrickColor.new("Dark blue"),Torso.CFrame*CFrame.new(0,0,-5)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.5,.5,.5,.6,.6,.6)
  1102. MagicCircle(BrickColor.new("Dark blue"),Torso.CFrame*CFrame.new(0,0,-5),1,1,1,2,2,2,0.05)
  1103. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,3)* angles(math.rad(90),math.rad(0),6*i),.3)
  1104. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1105. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  1106. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
  1107. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20)),.3)
  1108. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.3)
  1109. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1110. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1111. RefDamage:remove()
  1112. end
  1113. end
  1114. Humanoid.WalkSpeed = 16
  1115. attack = false
  1116. end
  1117.  
  1118. mouse.Button1Down:connect(function()
  1119. if attack == false and attacktype == 1 then
  1120. attacktype = 2
  1121. attackone()
  1122. elseif attack == false and attacktype == 2 then
  1123. attacktype = 1
  1124. attacktwo()
  1125. end
  1126. end)
  1127.  
  1128. mouse.KeyDown:connect(function(k)
  1129. k=k:lower()
  1130. if attack == false and k == 'q' then
  1131. CloseRangeBlast()
  1132. elseif attack == false and k == 'e' then
  1133. HolyShitBulletDive()
  1134. end
  1135. end)
  1136.  
  1137.  
  1138. local sine = 0
  1139. local change = 1
  1140. local val = 0
  1141.  
  1142. while true do
  1143. swait()
  1144. sine = sine + change
  1145. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1146. local velderp=RootPart.Velocity.y
  1147. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1148. if equipped==true or equipped==false then
  1149. if attack==false then
  1150. idle=idle+1
  1151. else
  1152. idle=0
  1153. end
  1154. if idle>=500 then
  1155. if attack==false then
  1156. --Sheath()
  1157. end
  1158. end
  1159. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1160. Anim="Jump"
  1161. if attack==false then
  1162. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1163. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1164. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1165. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1166. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1167. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.3)
  1168. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1169. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1170. end
  1171. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1172. Anim="Fall"
  1173. if attack==false then
  1174. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1175. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1176. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1177. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1178. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(30)),.3)
  1179. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(30)),.3)
  1180. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1181. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1182. end
  1183. elseif torvel<1 and hitfloor~=nil then
  1184. Anim="Idle"
  1185. if attack==false then
  1186. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1187. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-20)),.3)
  1188. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.3)
  1189. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-20)), 0.3)
  1190. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(5)),.3)
  1191. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(5)),.3)
  1192. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1193. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1194. end
  1195. elseif torvel>2 and hitfloor~=nil then
  1196. Anim="Walk"
  1197. if attack==false then
  1198. change=3
  1199. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1200. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1201. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(10)), 0.3)
  1202. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(-10)), 0.3)
  1203. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1204. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.3)
  1205. HandleAweld.C0=clerp(HandleAweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1206. HandleBweld.C0=clerp(HandleBweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1207. end
  1208. end
  1209. end
  1210. if #Effects>0 then
  1211. --table.insert(Effects,{prt,"Block1",delay})
  1212. for e=1,#Effects do
  1213. if Effects[e]~=nil then
  1214. --for j=1,#Effects[e] do
  1215. local Thing=Effects[e]
  1216. if Thing~=nil then
  1217. local Part=Thing[1]
  1218. local Mode=Thing[2]
  1219. local Delay=Thing[3]
  1220. local IncX=Thing[4]
  1221. local IncY=Thing[5]
  1222. local IncZ=Thing[6]
  1223. if Thing[2]=="DecreaseStat" then
  1224. Thing[5]=Thing[5]-1
  1225. if Thing[5]<=0 then
  1226. if Thing[1]:findFirstChild("Stats")~=nil then
  1227. Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  1228. end
  1229. table.remove(Effects,e)
  1230. end
  1231. end
  1232. if Thing[2]=="Shoot" then
  1233. local Look=Thing[1]
  1234. local hit,pos = rayCast(Thing[4],Look,20,m)
  1235. local mag=(Thing[4]-pos).magnitude
  1236. MagicHead(BrickColor.new("Dark blue"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,0.1)
  1237. Thing[4]=Thing[4]+(Look*20)
  1238. Thing[3]=Thing[3]-1
  1239. if hit~=nil then
  1240. Thing[3]=0
  1241. if Thing[8]==1 then
  1242. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,5),nil,nil,true)
  1243. elseif Thing[8]==2 then
  1244. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"NormalDecreaseMvmt1",RootPart,0,2,math.random(1,5),nil,nil,true)
  1245. end
  1246. ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Dark blue"),"Reference",vt())
  1247. ref.Anchored=true
  1248. ref.CFrame=cf(pos)
  1249. MagicCircle(BrickColor.new("Lime green"),cf(pos),5,5,5,1,1,1,0.03)
  1250. game:GetService("Debris"):AddItem(ref,1)
  1251. end
  1252. if Thing[3]<=0 then
  1253. table.remove(Effects,e)
  1254. end
  1255. end
  1256. if Thing[2]=="CylinderClang" then
  1257. if Thing[3]<=1 then
  1258. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  1259. Thing[7]=Thing[1].CFrame
  1260. effect("New Yeller",0,Thing[8],Thing[7])
  1261. Thing[8]=Thing[7]
  1262. Thing[3]=Thing[3]+Thing[4]
  1263. else
  1264. Part.Parent=nil
  1265. table.remove(Effects,e)
  1266. end
  1267. --[[Mesh=Thing[7]
  1268. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1269. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  1270. end
  1271. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" then
  1272. if Thing[1].Transparency<=1 then
  1273. if Thing[2]=="Block1" then
  1274. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1275. Mesh=Thing[7]
  1276. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1277. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1278. elseif Thing[2]=="Block2" then
  1279. Thing[1].CFrame=Thing[1].CFrame
  1280. Mesh=Thing[7]
  1281. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1282. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1283. elseif Thing[2]=="Cylinder" then
  1284. Mesh=Thing[7]
  1285. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1286. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1287. elseif Thing[2]=="Blood" then
  1288. Mesh=Thing[7]
  1289. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1290. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1291. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1292. elseif Thing[2]=="Elec" then
  1293. Mesh=Thing[1].Mesh
  1294. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1295. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1296. elseif Thing[2]=="Disappear" then
  1297. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1298. end
  1299. else
  1300. Part.Parent=nil
  1301. table.remove(Effects,e)
  1302. end
  1303. end
  1304. end
  1305. --end
  1306. end
  1307. end
  1308. end
  1309. end
  1310.  
  1311. --truta193
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement