lololololololololo

Untitled

Jul 20th, 2016
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 88.58 KB | None | 0 0
  1. -- the A.X.R FS-627-SENDER is a short-ranged close combat railgun (SUCH OP O3O)
  2. Player=game:GetService("Players").LocalPlayer
  3. Character=Player.Character
  4. PlayerGui=Player.PlayerGui
  5. Backpack=Player.Backpack
  6. Torso=Character.Torso
  7. Head=Character.Head
  8. Humanoid=Character.Humanoid
  9. m=Instance.new('Model',Character)
  10. LeftArm=Character["Left Arm"]
  11. LeftLeg=Character["Left Leg"]
  12. RightArm=Character["Right Arm"]
  13. RightLeg=Character["Right Leg"]
  14. LS=Torso["Left Shoulder"]
  15. LH=Torso["Left Hip"]
  16. RS=Torso["Right Shoulder"]
  17. RH=Torso["Right Hip"]
  18. Face = Head.face
  19. Neck=Torso.Neck
  20. it=Instance.new
  21. attacktype=1
  22. vt=Vector3.new
  23. cf=CFrame.new
  24. euler=CFrame.fromEulerAnglesXYZ
  25. angles=CFrame.Angles
  26. cloaked=false
  27. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  30. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  31. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RootPart=Character.HumanoidRootPart
  34. RootJoint=RootPart.RootJoint
  35. RootCF=euler(-1.57,0,3.14)
  36. attack = false
  37. attackdebounce = false
  38. deb=false
  39. equipped=true
  40. hand=false
  41. MMouse=nil
  42. combo=0
  43. mana=0
  44. trispeed=1
  45. pathtrans=.7
  46. attackmode='none'
  47. local idle=0
  48. local Anim="Idle"
  49. local Effects={}
  50. local gun=false
  51. local shoot=false
  52. player=nil
  53. cloak=false
  54. lightcolor='Bright blue'
  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. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  91. local fp=it("Part")
  92. fp.formFactor=formfactor
  93. fp.Parent=parent
  94. fp.Reflectance=reflectance
  95. fp.Transparency=transparency
  96. fp.CanCollide=false
  97. fp.Locked=true
  98. fp.BrickColor=brickcolor
  99. fp.Name=name
  100. fp.Size=size
  101. fp.Position=Torso.Position
  102. NoOutline(fp)
  103. fp.Material="SmoothPlastic"
  104. fp:BreakJoints()
  105. return fp
  106. end
  107.  
  108. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  109. local mesh=it(Mesh)
  110. mesh.Parent=part
  111. if Mesh=="SpecialMesh" then
  112. mesh.MeshType=meshtype
  113. if meshid~="nil" then
  114. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  115. end
  116. end
  117. mesh.Offset=offset
  118. mesh.Scale=scale
  119. return mesh
  120. end
  121.  
  122. function weld(parent,part0,part1,c0)
  123. local weld=it("Weld")
  124. weld.Parent=parent
  125. weld.Part0=part0
  126. weld.Part1=part1
  127. weld.C0=c0
  128. return weld
  129. end
  130.  
  131. local Color1=Torso.BrickColor
  132.  
  133. local bodvel=Instance.new("BodyVelocity")
  134. local bg=Instance.new("BodyGyro")
  135.  
  136. function swait(num)
  137. if num==0 or num==nil then
  138. game:service'RunService'.Stepped:wait(0)
  139. else
  140. for i=0,num do
  141. game:service'RunService'.Stepped:wait(0)
  142. end
  143. end
  144. end
  145.  
  146.  
  147. so = function(id,par,vol,pit)
  148. coroutine.resume(coroutine.create(function()
  149. local sou = Instance.new("Sound",par or workspace)
  150. sou.Volume=vol
  151. sou.Pitch=pit or 1
  152. sou.SoundId=id
  153. swait()
  154. sou:play()
  155. game:GetService("Debris"):AddItem(sou,6)
  156. end))
  157. end
  158.  
  159. function clerp(a,b,t)
  160. local qa = {QuaternionFromCFrame(a)}
  161. local qb = {QuaternionFromCFrame(b)}
  162. local ax, ay, az = a.x, a.y, a.z
  163. local bx, by, bz = b.x, b.y, b.z
  164. local _t = 1-t
  165. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  166. end
  167.  
  168. function QuaternionFromCFrame(cf)
  169. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  170. local trace = m00 + m11 + m22
  171. if trace > 0 then
  172. local s = math.sqrt(1 + trace)
  173. local recip = 0.5/s
  174. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  175. else
  176. local i = 0
  177. if m11 > m00 then
  178. i = 1
  179. end
  180. if m22 > (i == 0 and m00 or m11) then
  181. i = 2
  182. end
  183. if i == 0 then
  184. local s = math.sqrt(m00-m11-m22+1)
  185. local recip = 0.5/s
  186. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  187. elseif i == 1 then
  188. local s = math.sqrt(m11-m22-m00+1)
  189. local recip = 0.5/s
  190. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  191. elseif i == 2 then
  192. local s = math.sqrt(m22-m00-m11+1)
  193. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  194. end
  195. end
  196. end
  197.  
  198. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  199. local xs, ys, zs = x + x, y + y, z + z
  200. local wx, wy, wz = w*xs, w*ys, w*zs
  201. local xx = x*xs
  202. local xy = x*ys
  203. local xz = x*zs
  204. local yy = y*ys
  205. local yz = y*zs
  206. local zz = z*zs
  207. 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))
  208. end
  209.  
  210. function QuaternionSlerp(a, b, t)
  211. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  212. local startInterp, finishInterp;
  213. if cosTheta >= 0.0001 then
  214. if (1 - cosTheta) > 0.0001 then
  215. local theta = math.acos(cosTheta)
  216. local invSinTheta = 1/math.sin(theta)
  217. startInterp = math.sin((1-t)*theta)*invSinTheta
  218. finishInterp = math.sin(t*theta)*invSinTheta
  219. else
  220. startInterp = 1-t
  221. finishInterp = t
  222. end
  223. else
  224. if (1+cosTheta) > 0.0001 then
  225. local theta = math.acos(-cosTheta)
  226. local invSinTheta = 1/math.sin(theta)
  227. startInterp = math.sin((t-1)*theta)*invSinTheta
  228. finishInterp = math.sin(t*theta)*invSinTheta
  229. else
  230. startInterp = t-1
  231. finishInterp = t
  232. end
  233. end
  234. 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
  235. end
  236.  
  237. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  238. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  239. end
  240.  
  241. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  242. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  243. prt.Anchored=true
  244. prt.CFrame=cframe
  245. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  246. --http://www.roblox.com/asset/?id=4770560
  247. game:GetService("Debris"):AddItem(prt,2)
  248. CF=prt.CFrame
  249. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  250. for i=0,1,0.2 do
  251. wait()
  252. Part.CFrame=CF*cf(0,0,-0.4)
  253. end
  254. for i=0,1,delay do
  255. wait()
  256. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  257. Mesh.Scale=Mesh.Scale
  258. end
  259. for i=0,1,0.1 do
  260. wait()
  261. Part.Transparency=i
  262. end
  263. Part.Parent=nil
  264. end),prt,msh,CF)
  265. end
  266.  
  267. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  268. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  269. prt.Anchored=true
  270. prt.CFrame=cframe
  271. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  272. game:GetService("Debris"):AddItem(prt,5)
  273. coroutine.resume(coroutine.create(function(Part,Mesh)
  274. for i=0,1,delay do
  275. wait()
  276. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  277. Part.Transparency=i
  278. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  279. end
  280. Part.Parent=nil
  281. end),prt,msh)
  282. end
  283.  
  284. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  285. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  286. prt.Anchored=false
  287. prt.CFrame=cframe
  288. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  289. local wld=weld(prt,prt,Parent,cframe)
  290. game:GetService("Debris"):AddItem(prt,5)
  291. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  292. for i=0,1,delay do
  293. wait()
  294. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  295. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  296. Part.Transparency=i
  297. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  298. end
  299. Part.Parent=nil
  300. end),prt,msh,wld)
  301. end
  302.  
  303. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  304. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  305. prt.Anchored=false
  306. prt.CFrame=cframe
  307. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  308. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  309. game:GetService("Debris"):AddItem(prt,5)
  310. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  311. for i=0,1,delay do
  312. wait()
  313. Weld.C0=euler(i*20,0,0)
  314. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  315. Part.Transparency=i
  316. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  317. end
  318. Part.Parent=nil
  319. end),prt,msh,wld)
  320. end
  321.  
  322. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  323. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  324. prt.Anchored=true
  325. prt.CFrame=cframe
  326. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  327. game:GetService("Debris"):AddItem(prt,2)
  328. coroutine.resume(coroutine.create(function(Part,Mesh)
  329. for i=0,1,delay do
  330. wait()
  331. Part.CFrame=Part.CFrame
  332. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  333. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  334. prt2.Anchored=true
  335. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  336. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  337. game:GetService("Debris"):AddItem(prt2,2)
  338. coroutine.resume(coroutine.create(function(Part,Mesh)
  339. for i=0,1,0.1 do
  340. wait()
  341. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  342. end
  343. Part.Parent=nil
  344. end),prt2,msh2)
  345. end
  346. for i=0,1,delay*2 do
  347. wait()
  348. Part.CFrame=Part.CFrame
  349. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  350. end
  351. Part.Parent=nil
  352. end),prt,msh)
  353. end
  354.  
  355. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  356. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  357. prt.Anchored=true
  358. prt.CFrame=cframe
  359. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  360. game:GetService("Debris"):AddItem(prt,2)
  361. coroutine.resume(coroutine.create(function(Part,Mesh)
  362. for i=0,1,delay do
  363. wait()
  364. Part.CFrame=Part.CFrame
  365. Part.Transparency=i
  366. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  367. end
  368. Part.Parent=nil
  369. end),prt,msh)
  370. end
  371.  
  372. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged)
  373. if hit.Parent==nil then
  374. return
  375. end
  376. if hit.Name=="Hitbox" and hit.Parent~=modelzorz then
  377. StaggerHit.Value=true
  378. end
  379. h=hit.Parent:FindFirstChild("Humanoid")
  380. for _,v in pairs(hit.Parent:children()) do
  381. if v:IsA("Humanoid") then
  382. h=v
  383. end
  384. end
  385. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  386. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  387. end
  388. if hit.Parent.className=="Hat" then
  389. hit=hit.Parent.Parent:findFirstChild("Head")
  390. end
  391. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  392. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  393. c=Instance.new("ObjectValue")
  394. c.Name="creator"
  395. c.Value=game:service("Players").LocalPlayer
  396. c.Parent=h
  397. RecentEnemy.Value=hit.Parent
  398. game:GetService("Debris"):AddItem(c,.5)
  399. minim=minim*Atk.Value
  400. maxim=maxim*Atk.Value
  401. Damage=math.random(minim,maxim)
  402. blocked=false
  403. enblock=nil
  404. Stats=hit.Parent:findFirstChild("Stats")
  405. if Stats~=nil then
  406. enblock=Stats:findFirstChild("Block")
  407. if Stats:findFirstChild("Defense")~=nil then
  408. Damage=Damage/Stats.Defense.Value
  409. if Damage<=3 and staghit==true then
  410. if ranged~=true then
  411. StaggerHit.Value=true
  412. end
  413. end
  414. end
  415. if Stats:findFirstChild("Stun")~=nil then
  416. Stats.Stun.Value=Stats.Stun.Value+incstun
  417. end
  418. if Stats:findFirstChild("Stagger")~=nil then
  419. if stagger==true then
  420. Stats.Stagger.Value=true
  421. end
  422. end
  423. end
  424. if enblock~=nil then
  425. if enblock.Value==true then
  426. blocked=true
  427. end
  428. end
  429. if blocked==true then
  430. showDamage(hit.Parent,"Block",.5,BrickColor.new("Bright blue"))
  431. if ranged~=true then
  432. enblock.Value=false
  433. Stagger.Value=true
  434. end
  435. else
  436. Damage=math.floor(Damage)
  437. h.Health=h.Health-Damage
  438. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  439. if Type=="NormalDecreaseMvmt1" then
  440. DecreaseStat(hit.Parent,"Movement",.1,200)
  441. end
  442. if Type=="Knockdown" then
  443. hum=hit.Parent.Humanoid
  444. hum.PlatformStand=true
  445. coroutine.resume(coroutine.create(function(HHumanoid)
  446. swait(1)
  447. HHumanoid.PlatformStand=false
  448. end),hum)
  449. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  450. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  451. local bodvol=Instance.new("BodyVelocity")
  452. bodvol.velocity=angle*knockback
  453. bodvol.P=5000
  454. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  455. bodvol.Parent=hit
  456. rl=Instance.new("BodyAngularVelocity")
  457. rl.P=3000
  458. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  459. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  460. rl.Parent=hit
  461. game:GetService("Debris"):AddItem(bodvol,.5)
  462. game:GetService("Debris"):AddItem(rl,.5)
  463. elseif Type=="Knockdown2" then
  464. hum=hit.Parent.Humanoid
  465. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  466. local bodvol=Instance.new("BodyVelocity")
  467. bodvol.velocity=angle*knockback
  468. bodvol.P=5000
  469. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  470. bodvol.Parent=hit
  471. game:GetService("Debris"):AddItem(bodvol,.5)
  472. elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
  473. vp=Instance.new("BodyVelocity")
  474. vp.P=500
  475. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  476. if KnockbackType==1 then
  477. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  478. elseif KnockbackType==2 then
  479. vp.velocity=Property.CFrame.lookVector*knockback
  480. end
  481. game:GetService("Debris"):AddItem(vp,.5)
  482. if knockback>0 then
  483. vp.Parent=hit.Parent.Torso
  484. end
  485. end
  486. end
  487. debounce=Instance.new("BoolValue")
  488. debounce.Name="DebounceHit"
  489. debounce.Parent=hit.Parent
  490. debounce.Value=true
  491. game:GetService("Debris"):AddItem(debounce,Delay)
  492. c=Instance.new("ObjectValue")
  493. c.Name="creator"
  494. c.Value=Player
  495. c.Parent=h
  496. game:GetService("Debris"):AddItem(c,.5)
  497. CRIT=false
  498. end
  499. end
  500.  
  501. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  502. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  503. prt.Anchored=true
  504. prt.CFrame=cframe
  505. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  506. game:GetService("Debris"):AddItem(prt,2)
  507. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  508. end
  509.  
  510. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  511. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt())
  512. prt.Anchored=true
  513. prt.CFrame=cframe
  514. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  515. game:GetService("Debris"):AddItem(prt,2)
  516. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  517. end
  518.  
  519. showDamage=function(Char,Dealt,du,Color)
  520. m=Instance.new("Model")
  521. m.Name=tostring(Dealt)
  522. h=Instance.new("Humanoid")
  523. h.Health=0
  524. h.MaxHealth=0
  525. h.Parent=m
  526. c=Instance.new("Part")
  527. c.Transparency=0
  528. c.BrickColor=Color
  529. c.Name="Head"
  530. c.TopSurface=0
  531. c.BottomSurface=0
  532. c.formFactor="Plate"
  533. c.Size=Vector3.new(1,.4,1)
  534. ms=Instance.new("CylinderMesh")
  535. ms.Scale=Vector3.new(.8,.8,.8)
  536. if CRIT==true then
  537. ms.Scale=Vector3.new(1,1.25,1)
  538. end
  539. ms.Parent=c
  540. c.Reflectance=0
  541. Instance.new("BodyGyro").Parent=c
  542. c.Parent=m
  543. if Char:findFirstChild("Head")~=nil then
  544. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  545. elseif Char.Parent:findFirstChild("Head")~=nil then
  546. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  547. end
  548. f=Instance.new("BodyPosition")
  549. f.P=2000
  550. f.D=100
  551. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  552. f.position=c.Position+Vector3.new(0,3,0)
  553. f.Parent=c
  554. game:GetService("Debris"):AddItem(m,.5+du)
  555. c.CanCollide=false
  556. m.Parent=workspace
  557. c.CanCollide=false
  558. end
  559.  
  560. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  561. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  562. prt.Anchored=true
  563. prt.CFrame=cframe*euler(x2,y2,z2)
  564. --"http://www.roblox.com/asset/?id=168892465"
  565. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  566. game:GetService("Debris"):AddItem(prt,2)
  567. coroutine.resume(coroutine.create(function(Part,Mesh)
  568. for i=0,1,0.03 do
  569. wait()
  570. Part.CFrame=Part.CFrame
  571. Part.Transparency=i
  572. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  573. end
  574. Part.Parent=nil
  575. end),prt,msh)
  576. end
  577.  
  578. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  579. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  580. prt.Anchored=true
  581. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  582. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  583. game:GetService("Debris"):AddItem(prt,2)
  584. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  585. CF=Part.CFrame
  586. Numbb=0
  587. randnumb=math.random()/10
  588. rand1=math.random()/10
  589. for i=0,1,rand1 do
  590. wait()
  591. CF=CF*cf(0,math.random()/2,0)
  592. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  593. Part.CFrame=CF*euler(Numbb,0,0)
  594. Part.Transparency=i
  595. Numbb=Numbb+randnumb
  596. end
  597. Part.Parent=nil
  598. end),prt,CF,Numbb,randnumb)
  599. end
  600.  
  601. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  602. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  603. prt.Anchored=true
  604. prt.CFrame=cframe
  605. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  606. game:GetService("Debris"):AddItem(prt,5)
  607. coroutine.resume(coroutine.create(function(Part,Mesh)
  608. for i=0,1,delay do
  609. wait()
  610. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  611. Part.Transparency=i
  612. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  613. end
  614. Part.Parent=nil
  615. end),prt,msh)
  616. end
  617.  
  618. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  619. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  620. prt.Anchored=true
  621. prt.CFrame=cframe
  622. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  623. game:GetService("Debris"):AddItem(prt,2)
  624. coroutine.resume(coroutine.create(function(Part,Mesh)
  625. for i=0,1,delay do
  626. wait()
  627. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  628. Part.Transparency=i
  629. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  630. end
  631. Part.Parent=nil
  632. end),prt,msh)
  633. end
  634.  
  635. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  636. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  637. prt.Anchored=true
  638. prt.CFrame=cframe*cf(x,y,z)
  639. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  640. game:GetService("Debris"):AddItem(prt,5)
  641. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  642. local num=math.random()
  643. local num2=math.random(-3,2)+math.random()
  644. local numm=0
  645. for i=0,1,delay*2 do
  646. swait()
  647. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  648. Part.Transparency=i
  649. numm=numm+0.01
  650. end
  651. Part.Parent=nil
  652. Mesh.Parent=nil
  653. end),prt,msh,x,y,z)
  654. end
  655.  
  656. function dmgstart(dmg,what)
  657. hitcon = what.Touched:connect(function(hit)
  658. local hum = hit.Parent:FindFirstChild("Humanoid")
  659. if hum and not hum:IsDescendantOf(Character) then
  660. hum:TakeDamage(dmg)
  661. end
  662. end)
  663. end
  664.  
  665. function dmgstop()
  666. hitcon:disconnect()
  667. end
  668.  
  669. local function CFrameFromTopBack(at, top, back)
  670. local right = top:Cross(back)
  671. return CFrame.new(at.x, at.y, at.z,
  672. right.x, top.x, back.x,
  673. right.y, top.y, back.y,
  674. right.z, top.z, back.z)
  675. end
  676.  
  677. function Triangle(a, b, c)
  678. pathcolor=BrickColor.new('Bright violet')
  679. local edg1 = (c-a):Dot((b-a).unit)
  680. local edg2 = (a-b):Dot((c-b).unit)
  681. local edg3 = (b-c):Dot((a-c).unit)
  682. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  683. a, b, c = a, b, c
  684. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  685. a, b, c = b, c, a
  686. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  687. a, b, c = c, a, b
  688. else
  689. assert(false, "unreachable")
  690. end
  691.  
  692. local len1 = (c-a):Dot((b-a).unit)
  693. local len2 = (b-a).magnitude - len1
  694. local width = (a + (b-a).unit*len1 - c).magnitude
  695.  
  696. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  697.  
  698. local list = {}
  699.  
  700. if len1 > 0.01 then
  701. local w1 = Instance.new('WedgePart', m)
  702. game:GetService("Debris"):AddItem(w1,5)
  703. w1.Material = "SmoothPlastic"
  704. w1.FormFactor = 'Custom'
  705. w1.BrickColor = pathcolor
  706. w1.Transparency = pathtrans
  707. w1.Reflectance = 0
  708. w1.Name='w1'
  709. w1.Material = "SmoothPlastic"
  710. w1.CanCollide = false
  711. NoOutline(w1)
  712. local sz = Vector3.new(0.2, width, len1)
  713. w1.Size = sz
  714. local sp = Instance.new("SpecialMesh",w1)
  715. sp.MeshType = "Wedge"
  716. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  717. sp.Name='Mesh'
  718. w1:BreakJoints()
  719. w1.Anchored = true
  720. w1.Parent = workspace
  721. w1.Transparency = pathtrans
  722. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  723. end
  724.  
  725. if len2 > 0.01 then
  726. local w2 = Instance.new('WedgePart', m)
  727. game:GetService("Debris"):AddItem(w2,5)
  728. w2.Material = "SmoothPlastic"
  729. w2.FormFactor = 'Custom'
  730. w2.BrickColor = pathcolor
  731. w2.Transparency = pathtrans
  732. w2.Reflectance = 0
  733. w2.Name='w2'
  734. w2.Material = "SmoothPlastic"
  735. w2.CanCollide = false
  736. NoOutline(w2)
  737. local sz = Vector3.new(0.2, width, len2)
  738. w2.Size = sz
  739. local sp = Instance.new("SpecialMesh",w2)
  740. sp.MeshType = "Wedge"
  741. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  742. sp.Name='Mesh'
  743. w2:BreakJoints()
  744. w2.Anchored = true
  745. w2.Parent = workspace
  746. w2.Transparency = pathtrans
  747. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  748. end
  749. end
  750.  
  751. function NoOutline(Part)
  752. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  753. end
  754.  
  755.  
  756. user=game.Players.localPlayer
  757. char=user.Character
  758. mouse=user:GetMouse()
  759. m=Instance.new('Model',char)
  760.  
  761. blocks = {}
  762. function Part(Type, Parent, Name, Transparency, Reflectance, Size, CFrame, Material, BrickColor3)
  763. prt = Instance.new(Type,Parent)
  764. prt.Name = Name
  765. prt.FormFactor = "Custom"
  766. prt.Transparency = Transparency
  767. prt.Reflectance = Reflectance
  768. prt.Size = Size
  769. prt.CFrame = CFrame
  770. prt.Material = Material
  771. prt.TopSurface = 'SmoothNoOutlines'
  772. prt.BottomSurface = 'SmoothNoOutlines'
  773. prt.LeftSurface = 'SmoothNoOutlines'
  774. prt.RightSurface = 'SmoothNoOutlines'
  775. prt.FrontSurface = 'SmoothNoOutlines'
  776. prt.BackSurface = 'SmoothNoOutlines'
  777. prt.BrickColor = BrickColor.new(tostring(BrickColor3))
  778. prt.Anchored = false
  779. prt.CanCollide = false
  780. table.insert(blocks, prt)
  781. return #blocks
  782. end
  783.  
  784. function weldBetween(a, b)
  785. weld = Instance.new("ManualWeld")
  786. weld.Part0 = a
  787. weld.Part1 = b
  788. weld.C0 = CFrame.new()
  789. weld.C1 = b.CFrame:inverse() * a.CFrame
  790. weld.Parent = a
  791. return weld;
  792. end
  793.  
  794. local Handle = Instance.new("Part", m)
  795. Handle:BreakJoints()
  796. Handle.TopSurface = "Smooth"
  797. Handle.Material = "SmoothPlastic"
  798. Handle.Name = 'Handle'
  799. Handle.BottomSurface = "Smooth"
  800. Handle.FormFactor = "Custom" Handle.CanCollide = false
  801. Handle.BrickColor = BrickColor.new("Really black")
  802. Handle.Size = Vector3.new(0.24000001, 0.24000001, 0.484415978)
  803. local Handleweld = Instance.new("ManualWeld")
  804. Handleweld.Part0 = char["Right Arm"]
  805. Handleweld.Part1 = Handle Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  806. Handleweld.C1 = CFrame.new(-0.174468994, -1.12192941, 0.137905121, -0.999999762, 0, 0, 0, -0.999999285, 1.49011612e-008, 0, 2.98023188e-008, 0.999999523)
  807. Handleweld.Parent = char["Right Arm"]
  808.  
  809. local HandleMesh = Instance.new("BlockMesh",Handle)
  810. HandleMesh.Name = "Mesh"
  811. HandleMesh.Offset = Vector3.new(0, 0, 0)
  812. HandleMesh.Scale = Vector3.new(0.672800004, 0.672800004, 1)
  813.  
  814. local Part = Instance.new("Part", m)
  815. Part:BreakJoints()
  816. Part.TopSurface = "Smooth"
  817. Part.Material = "SmoothPlastic"
  818. Part.Name = 'Part'
  819. Part.BottomSurface = "Smooth"
  820. Part.FormFactor = "Custom" Part.CanCollide = false
  821. Part.BrickColor = BrickColor.new("Cyan")
  822. Part.Transparency = 0.5
  823. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  824. local Partweld = Instance.new("ManualWeld")
  825. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  826. Partweld.C1 = CFrame.new(0, 0.040365696, 1.13027573, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  827. Partweld.Parent = Part
  828. local PartMesh = Instance.new("CylinderMesh",Part)
  829. PartMesh.Name = "Mesh"
  830. PartMesh.Offset = Vector3.new(0, 0, 0)
  831. PartMesh.Scale = Vector3.new(0.168199986, 0.168199986, 0.336399972)
  832.  
  833. local Part = Instance.new("Part", m)
  834. Part:BreakJoints()
  835. Part.TopSurface = "Smooth"
  836. Part.Material = "SmoothPlastic"
  837. Part.Name = 'Part'
  838. Part.BottomSurface = "Smooth"
  839. Part.FormFactor = "Custom" Part.CanCollide = false
  840. Part.BrickColor = BrickColor.new("Mid gray")
  841. Part.Size = Vector3.new(0.242207989, 0.24000001, 0.242207989)
  842. local Partweld = Instance.new("ManualWeld")
  843. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  844. Partweld.C1 = CFrame.new(0, -8.34465027e-007, 0.928440094, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  845. Partweld.Parent = Part
  846. local PartMesh = Instance.new("BlockMesh",Part)
  847. PartMesh.Name = "Mesh"
  848. PartMesh.Offset = Vector3.new(0, 0, 0)
  849. PartMesh.Scale = Vector3.new(1, 0.672799945, 1)
  850.  
  851. local Part = Instance.new("Part", m)
  852. Part:BreakJoints()
  853. Part.TopSurface = "Smooth"
  854. Part.Material = "SmoothPlastic"
  855. Part.Name = 'Part'
  856. Part.BottomSurface = "Smooth"
  857. Part.FormFactor = "Custom" Part.CanCollide = false
  858. Part.BrickColor = BrickColor.new("Mid gray")
  859. Part.Size = Vector3.new(0.403679997, 0.24000001, 0.24000001)
  860. local Partweld = Instance.new("ManualWeld")
  861. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  862. Partweld.C1 = CFrame.new(0, 0.040365696, 1.25137329, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  863. Partweld.Parent = Part
  864. local PartMesh = Instance.new("BlockMesh",Part)
  865. PartMesh.Name = "Mesh"
  866. PartMesh.Offset = Vector3.new(0, 0, 0)
  867. PartMesh.Scale = Vector3.new(1, 0.336399972, 0.336399972)
  868.  
  869. local Part = Instance.new("Part", m)
  870. Part:BreakJoints()
  871. Part.TopSurface = "Smooth"
  872. Part.Material = "SmoothPlastic"
  873. Part.Name = 'Part'
  874. Part.BottomSurface = "Smooth"
  875. Part.FormFactor = "Custom" Part.CanCollide = false
  876. Part.BrickColor = BrickColor.new("Cyan")
  877. Part.Transparency = 0.5
  878. Part.Size = Vector3.new(0.242207989, 0.24000001, 0.24000001)
  879. local Partweld = Instance.new("ManualWeld")
  880. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  881. Partweld.C1 = CFrame.new(0, 0.040365696, 1.13027573, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  882. Partweld.Parent = Part
  883. local PartMesh = Instance.new("BlockMesh",Part)
  884. PartMesh.Name = "Mesh"
  885. PartMesh.Offset = Vector3.new(0, 0, 0)
  886. PartMesh.Scale = Vector3.new(1, 0.336399972, 0.672800004)
  887.  
  888. local Part = Instance.new("Part", m)
  889. Part:BreakJoints()
  890. Part.TopSurface = "Smooth"
  891. Part.Material = "SmoothPlastic"
  892. Part.Name = 'Part'
  893. Part.BottomSurface = "Smooth"
  894. Part.FormFactor = "Custom" Part.CanCollide = false
  895. Part.BrickColor = BrickColor.new("Mid gray")
  896. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.403679997)
  897. local Partweld = Instance.new("ManualWeld")
  898. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  899. Partweld.C1 = CFrame.new(0.161472321, 0.0403690338, 1.00917816, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  900. Partweld.Parent = Part
  901. local PartMesh = Instance.new("BlockMesh",Part)
  902. PartMesh.Name = "Mesh"
  903. PartMesh.Offset = Vector3.new(0, 0, 0)
  904. PartMesh.Scale = Vector3.new(0.336399972, 0.336399972, 1)
  905.  
  906. local Part = Instance.new("Part", m)
  907. Part:BreakJoints()
  908. Part.TopSurface = "Smooth"
  909. Part.Material = "SmoothPlastic"
  910. Part.Name = 'Part'
  911. Part.BottomSurface = "Smooth"
  912. Part.FormFactor = "Custom" Part.CanCollide = false
  913. Part.BrickColor = BrickColor.new("Mid gray")
  914. Part.Size = Vector3.new(0.24000001, 0.645888031, 0.24000001)
  915. local Partweld = Instance.new("ManualWeld")
  916. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  917. Partweld.C1 = CFrame.new(-0.0847702026, 1.13030529, 0.645874023, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  918. Partweld.Parent = Part
  919. local PartMesh = Instance.new("BlockMesh",Part)
  920. PartMesh.Name = "Mesh"
  921. PartMesh.Offset = Vector3.new(0, 0, 0)
  922. PartMesh.Scale = Vector3.new(0.336399972, 1, 0.672799945)
  923.  
  924. local Part = Instance.new("Part", m)
  925. Part:BreakJoints()
  926. Part.TopSurface = "Smooth"
  927. Part.Material = "SmoothPlastic"
  928. Part.Name = 'Part'
  929. Part.BottomSurface = "Smooth"
  930. Part.FormFactor = "Custom" Part.CanCollide = false
  931. Part.BrickColor = BrickColor.new("Really black")
  932. Part.Size = Vector3.new(0.242207989, 1.37251198, 0.565152049)
  933. local Partweld = Instance.new("ManualWeld")
  934. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  935. Partweld.C1 = CFrame.new(0, 1.25140238, 0.5247612, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  936. Partweld.Parent = Part
  937. local Part = Instance.new("Part", m)
  938. Part:BreakJoints()
  939. Part.TopSurface = "Smooth"
  940. Part.Material = "SmoothPlastic"
  941. Part.Name = 'Part'
  942. Part.BottomSurface = "Smooth"
  943. Part.FormFactor = "Custom" Part.CanCollide = false
  944. Part.BrickColor = BrickColor.new("Really black")
  945. Part.Size = Vector3.new(0.968831837, 0.565151989, 0.242207989)
  946. local Partweld = Instance.new("ManualWeld")
  947. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  948. Partweld.C1 = CFrame.new(-0.000302553177, -0.524497986, 1.71661377e-005, 3.41909945e-009, -0.999999166, 7.00354235e-007, -6.2322151e-008, -6.85453017e-007, -0.999999285, 0.999999762, 3.41905149e-009, -6.23221297e-008)
  949. Partweld.Parent = Part
  950. local Part = Instance.new("Part", m)
  951. Part:BreakJoints()
  952. Part.TopSurface = "Smooth"
  953. Part.Material = "SmoothPlastic"
  954. Part.Name = 'Part'
  955. Part.BottomSurface = "Smooth"
  956. Part.FormFactor = "Custom" Part.CanCollide = false
  957. Part.BrickColor = BrickColor.new("Institutional white")
  958. Part.Size = Vector3.new(0.24000001, 0.403679997, 0.242207989)
  959. local Partweld = Instance.new("ManualWeld")
  960. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  961. Partweld.C1 = CFrame.new(0.564851403, -0.605224609, 1.71661377e-005, 3.42300255e-009, -0.999999166, 5.66243898e-007, -6.23248653e-008, -5.51342623e-007, -0.999999285, 0.999999762, 3.41591266e-009, -6.23193586e-008)
  962. Partweld.Parent = Part
  963. local PartMesh = Instance.new("BlockMesh",Part)
  964. PartMesh.Name = "Mesh"
  965. PartMesh.Offset = Vector3.new(0, 0, 0)
  966. PartMesh.Scale = Vector3.new(0.672799468, 1, 1)
  967.  
  968. local Part = Instance.new("Part", m)
  969. Part:BreakJoints()
  970. Part.TopSurface = "Smooth"
  971. Part.Material = "SmoothPlastic"
  972. Part.Name = 'Part'
  973. Part.BottomSurface = "Smooth"
  974. Part.FormFactor = "Custom" Part.CanCollide = false
  975. Part.BrickColor = BrickColor.new("Mid gray")
  976. Part.Size = Vector3.new(0.242207989, 0.565151989, 0.24000001)
  977. local Partweld = Instance.new("ManualWeld")
  978. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  979. Partweld.C1 = CFrame.new(0, -0.36332202, 1.00917816, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  980. Partweld.Parent = Part
  981. local PartMesh = Instance.new("BlockMesh",Part)
  982. PartMesh.Name = "Mesh"
  983. PartMesh.Offset = Vector3.new(0, 0, 0)
  984. PartMesh.Scale = Vector3.new(1, 1, 0.336399972)
  985.  
  986. local Part = Instance.new("Part", m)
  987. Part:BreakJoints()
  988. Part.TopSurface = "Smooth"
  989. Part.Material = "SmoothPlastic"
  990. Part.Name = 'Part'
  991. Part.BottomSurface = "Smooth"
  992. Part.FormFactor = "Custom" Part.CanCollide = false
  993. Part.BrickColor = BrickColor.new("Really black")
  994. Part.Size = Vector3.new(0.242207989, 0.24000001, 0.565152109)
  995. local Partweld = Instance.new("ManualWeld")
  996. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  997. Partweld.C1 = CFrame.new(0, 0.524785042, 0.524765015, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  998. Partweld.Parent = Part
  999. local PartMesh = Instance.new("BlockMesh",Part)
  1000. PartMesh.Name = "Mesh"
  1001. PartMesh.Offset = Vector3.new(0, 0, 0)
  1002. PartMesh.Scale = Vector3.new(1, 0.336399972, 1)
  1003.  
  1004. local Part = Instance.new("Part", m)
  1005. Part:BreakJoints()
  1006. Part.TopSurface = "Smooth"
  1007. Part.Material = "SmoothPlastic"
  1008. Part.Name = 'Part'
  1009. Part.BottomSurface = "Smooth"
  1010. Part.FormFactor = "Custom" Part.CanCollide = false
  1011. Part.BrickColor = BrickColor.new("Mid gray")
  1012. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.403679997)
  1013. local Partweld = Instance.new("ManualWeld")
  1014. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1015. Partweld.C1 = CFrame.new(-0.161476135, 0.0403690338, 1.00917816, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1016. Partweld.Parent = Part
  1017. local PartMesh = Instance.new("BlockMesh",Part)
  1018. PartMesh.Name = "Mesh"
  1019. PartMesh.Offset = Vector3.new(0, 0, 0)
  1020. PartMesh.Scale = Vector3.new(0.336399972, 0.336399972, 1)
  1021.  
  1022. local Part = Instance.new("Part", m)
  1023. Part:BreakJoints()
  1024. Part.TopSurface = "Smooth"
  1025. Part.Material = "SmoothPlastic"
  1026. Part.Name = 'Part'
  1027. Part.BottomSurface = "Smooth"
  1028. Part.FormFactor = "Custom" Part.CanCollide = false
  1029. Part.BrickColor = BrickColor.new("Really black")
  1030. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1031. local Partweld = Instance.new("ManualWeld")
  1032. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1033. Partweld.C1 = CFrame.new(-0.121109009, 0.847726583, 0.645870209, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1034. Partweld.Parent = Part
  1035. local PartMesh = Instance.new("BlockMesh",Part)
  1036. PartMesh.Name = "Mesh"
  1037. PartMesh.Offset = Vector3.new(0, 0, 0)
  1038. PartMesh.Scale = Vector3.new(0.672799945, 0.336399972, 0.672799945)
  1039.  
  1040. local Part = Instance.new("Part", m)
  1041. Part:BreakJoints()
  1042. Part.TopSurface = "Smooth"
  1043. Part.Material = "SmoothPlastic"
  1044. Part.Name = 'Part'
  1045. Part.BottomSurface = "Smooth"
  1046. Part.FormFactor = "Custom" Part.CanCollide = false
  1047. Part.BrickColor = BrickColor.new("Really black")
  1048. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1049. local Partweld = Instance.new("ManualWeld")
  1050. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1051. Partweld.C1 = CFrame.new(0.201835632, -0.847726464, 0.645870209, -0.999999166, 0, 0, -2.98023153e-008, -0.999998808, 1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1052. Partweld.Parent = Part
  1053. local PartMesh = Instance.new("CylinderMesh",Part)
  1054. PartMesh.Name = "Mesh"
  1055. PartMesh.Offset = Vector3.new(0, 0, 0)
  1056. PartMesh.Scale = Vector3.new(0.672800004, 0.336399972, 0.672800004)
  1057.  
  1058. local Part = Instance.new("Part", m)
  1059. Part:BreakJoints()
  1060. Part.TopSurface = "Smooth"
  1061. Part.Material = "SmoothPlastic"
  1062. Part.Name = 'Part'
  1063. Part.BottomSurface = "Smooth"
  1064. Part.FormFactor = "Custom" Part.CanCollide = false
  1065. Part.BrickColor = BrickColor.new("Really black")
  1066. Part.Size = Vector3.new(0.242207989, 0.24000001, 0.807359993)
  1067. local Partweld = Instance.new("ManualWeld")
  1068. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1069. Partweld.C1 = CFrame.new(0, 2.01840067, 0.403663635, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1070. Partweld.Parent = Part
  1071. local PartMesh = Instance.new("BlockMesh",Part)
  1072. PartMesh.Name = "Mesh"
  1073. PartMesh.Offset = Vector3.new(0, 0, 0)
  1074. PartMesh.Scale = Vector3.new(1, 0.672799945, 1)
  1075.  
  1076. local Part = Instance.new("Part", m)
  1077. Part:BreakJoints()
  1078. Part.TopSurface = "Smooth"
  1079. Part.Material = "SmoothPlastic"
  1080. Part.Name = 'Part'
  1081. Part.BottomSurface = "Smooth"
  1082. Part.FormFactor = "Custom" Part.CanCollide = false
  1083. Part.BrickColor = BrickColor.new("Really black")
  1084. Part.Size = Vector3.new(0.726623893, 0.403679997, 0.242207989)
  1085. local Partweld = Instance.new("ManualWeld")
  1086. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1087. Partweld.C1 = CFrame.new(1.00869358, -0.443649292, 1.71661377e-005, 4.07053946e-009, -0.999999166, 5.66243898e-007, -6.28389856e-008, -5.51342623e-007, -0.999999285, 0.999999762, 4.07049461e-009, -6.28389785e-008)
  1088. Partweld.Parent = Part
  1089. local Part = Instance.new("Part", m)
  1090. Part:BreakJoints()
  1091. Part.TopSurface = "Smooth"
  1092. Part.Material = "SmoothPlastic"
  1093. Part.Name = 'Part'
  1094. Part.BottomSurface = "Smooth"
  1095. Part.FormFactor = "Custom" Part.CanCollide = false
  1096. Part.BrickColor = BrickColor.new("Really black")
  1097. Part.Size = Vector3.new(0.56515187, 0.24000001, 0.242207989)
  1098. local Partweld = Instance.new("ManualWeld")
  1099. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1100. Partweld.C1 = CFrame.new(0.927964807, -0.726226807, 1.71661377e-005, 4.08707823e-009, -0.999999166, 7.00354235e-007, -6.28523367e-008, -6.85453017e-007, -0.999999285, 0.999999762, 4.08702894e-009, -6.28523296e-008)
  1101. Partweld.Parent = Part
  1102. local PartMesh = Instance.new("BlockMesh",Part)
  1103. PartMesh.Name = "Mesh"
  1104. PartMesh.Offset = Vector3.new(0, 0, 0)
  1105. PartMesh.Scale = Vector3.new(1, 0.672799945, 1)
  1106.  
  1107. local Part = Instance.new("Part", m)
  1108. Part:BreakJoints()
  1109. Part.TopSurface = "Smooth"
  1110. Part.Material = "SmoothPlastic"
  1111. Part.Name = 'Part'
  1112. Part.BottomSurface = "Smooth"
  1113. Part.FormFactor = "Custom" Part.CanCollide = false
  1114. Part.BrickColor = BrickColor.new("Mid gray")
  1115. Part.Size = Vector3.new(0.24000001, 0.645888031, 0.24000001)
  1116. local Partweld = Instance.new("ManualWeld")
  1117. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1118. Partweld.C1 = CFrame.new(0.0888137817, 1.13030529, 0.645874023, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1119. Partweld.Parent = Part
  1120. local PartMesh = Instance.new("BlockMesh",Part)
  1121. PartMesh.Name = "Mesh"
  1122. PartMesh.Offset = Vector3.new(0, 0, 0)
  1123. PartMesh.Scale = Vector3.new(0.336399972, 1, 0.672799945)
  1124.  
  1125. local Part = Instance.new("Part", m)
  1126. Part:BreakJoints()
  1127. Part.TopSurface = "Smooth"
  1128. Part.Material = "SmoothPlastic"
  1129. Part.Name = 'Part'
  1130. Part.BottomSurface = "Smooth"
  1131. Part.FormFactor = "Custom" Part.CanCollide = false
  1132. Part.BrickColor = BrickColor.new("Mid gray")
  1133. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.242204159)
  1134. local Partweld = Instance.new("ManualWeld")
  1135. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1136. Partweld.C1 = CFrame.new(0, -0.444043756, 0.121101379, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1137. Partweld.Parent = Part
  1138. local PartMesh = Instance.new("BlockMesh",Part)
  1139. PartMesh.Name = "Mesh"
  1140. PartMesh.Offset = Vector3.new(0, 0, 0)
  1141. PartMesh.Scale = Vector3.new(0.336394608, 0.336394608, 1)
  1142.  
  1143. local Part = Instance.new("Part", m)
  1144. Part:BreakJoints()
  1145. Part.TopSurface = "Smooth"
  1146. Part.Material = "SmoothPlastic"
  1147. Part.Name = 'Part'
  1148. Part.BottomSurface = "Smooth"
  1149. Part.FormFactor = "Custom" Part.CanCollide = false
  1150. Part.BrickColor = BrickColor.new("Really black")
  1151. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.242207989)
  1152. local Partweld = Instance.new("ManualWeld")
  1153. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1154. Partweld.C1 = CFrame.new(0.564820051, -0.322605133, 9.53674316e-006, 3.68191255e-009, -0.999999166, 3.87430021e-007, -6.25298284e-008, -3.72528802e-007, -0.999999285, 0.999999762, 3.68189346e-009, -6.25298071e-008)
  1155. Partweld.Parent = Part
  1156. local PartMesh = Instance.new("BlockMesh",Part)
  1157. PartMesh.Name = "Mesh"
  1158. PartMesh.Offset = Vector3.new(0, 0, 0)
  1159. PartMesh.Scale = Vector3.new(0.672799468, 0.672799945, 1)
  1160.  
  1161. local Part = Instance.new("Part", m)
  1162. Part:BreakJoints()
  1163. Part.TopSurface = "Smooth"
  1164. Part.Material = "SmoothPlastic"
  1165. Part.Name = 'Part'
  1166. Part.BottomSurface = "Smooth"
  1167. Part.FormFactor = "Custom" Part.CanCollide = false
  1168. Part.BrickColor = BrickColor.new("Mid gray")
  1169. Part.Size = Vector3.new(0.24000001, 0.645887971, 0.24000001)
  1170. local Partweld = Instance.new("ManualWeld")
  1171. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1172. Partweld.C1 = CFrame.new(-0.0040397644, -0.968837023, 0.282566071, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1173. Partweld.Parent = Part
  1174. local PartMesh = Instance.new("BlockMesh",Part)
  1175. PartMesh.Name = "Mesh"
  1176. PartMesh.Offset = Vector3.new(0, 0, 0)
  1177. PartMesh.Scale = Vector3.new(0.672799945, 1, 0.336399972)
  1178.  
  1179. local Part = Instance.new("Part", m)
  1180. Part:BreakJoints()
  1181. Part.TopSurface = "Smooth"
  1182. Part.Material = "SmoothPlastic"
  1183. Part.Name = 'Part'
  1184. Part.BottomSurface = "Smooth"
  1185. Part.FormFactor = "Custom" Part.CanCollide = false
  1186. Part.BrickColor = BrickColor.new("Really black")
  1187. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.484416097)
  1188. local Partweld = Instance.new("ManualWeld")
  1189. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1190. Partweld.C1 = CFrame.new(0.0807342529, 0.484410524, 0, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1191. Partweld.Parent = Part
  1192. local PartMesh = Instance.new("BlockMesh",Part)
  1193. PartMesh.Name = "Mesh"
  1194. PartMesh.Offset = Vector3.new(0, 0, 0)
  1195. PartMesh.Scale = Vector3.new(0.336399972, 0.672799945, 1)
  1196.  
  1197. local Part = Instance.new("Part", m)
  1198. Part:BreakJoints()
  1199. Part.TopSurface = "Smooth"
  1200. Part.Material = "SmoothPlastic"
  1201. Part.Name = 'Part'
  1202. Part.BottomSurface = "Smooth"
  1203. Part.FormFactor = "Custom" Part.CanCollide = false
  1204. Part.BrickColor = BrickColor.new("Light stone grey")
  1205. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.322943985)
  1206. local Partweld = Instance.new("ManualWeld")
  1207. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1208. Partweld.C1 = CFrame.new(-0.0040397644, 0.928459883, 0.0807228088, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1209. Partweld.Parent = Part
  1210. local PartMesh = Instance.new("BlockMesh",Part)
  1211. PartMesh.Name = "Mesh"
  1212. PartMesh.Offset = Vector3.new(0, 0, 0)
  1213. PartMesh.Scale = Vector3.new(0.672799945, 0.336399972, 1)
  1214.  
  1215. local Part = Instance.new("Part", m)
  1216. Part:BreakJoints()
  1217. Part.TopSurface = "Smooth"
  1218. Part.Material = "SmoothPlastic"
  1219. Part.Name = 'Part'
  1220. Part.BottomSurface = "Smooth"
  1221. Part.FormFactor = "Custom" Part.CanCollide = false
  1222. Part.BrickColor = BrickColor.new("Really black")
  1223. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.484416097)
  1224. local Partweld = Instance.new("ManualWeld")
  1225. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1226. Partweld.C1 = CFrame.new(-0.0807342529, 0.484410524, 0, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1227. Partweld.Parent = Part
  1228. local PartMesh = Instance.new("BlockMesh",Part)
  1229. PartMesh.Name = "Mesh"
  1230. PartMesh.Offset = Vector3.new(0, 0, 0)
  1231. PartMesh.Scale = Vector3.new(0.336399972, 0.672799945, 1)
  1232.  
  1233. local Part = Instance.new("Part", m)
  1234. Part:BreakJoints()
  1235. Part.TopSurface = "Smooth"
  1236. Part.Material = "SmoothPlastic"
  1237. Part.Name = 'Part'
  1238. Part.BottomSurface = "Smooth"
  1239. Part.FormFactor = "Custom" Part.CanCollide = false
  1240. Part.BrickColor = BrickColor.new("Really black")
  1241. Part.Size = Vector3.new(0.24000001, 0.403679907, 0.322943985)
  1242. local Partweld = Instance.new("ManualWeld")
  1243. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1244. Partweld.C1 = CFrame.new(-0.0040397644, 1.17067337, 0.0807228088, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1245. Partweld.Parent = Part
  1246. local PartMesh = Instance.new("BlockMesh",Part)
  1247. PartMesh.Name = "Mesh"
  1248. PartMesh.Offset = Vector3.new(0, 0, 0)
  1249. PartMesh.Scale = Vector3.new(0.672799945, 1, 1)
  1250.  
  1251. local Part = Instance.new("Part", m)
  1252. Part:BreakJoints()
  1253. Part.TopSurface = "Smooth"
  1254. Part.Material = "SmoothPlastic"
  1255. Part.Name = 'Part'
  1256. Part.BottomSurface = "Smooth"
  1257. Part.FormFactor = "Custom" Part.CanCollide = false
  1258. Part.BrickColor = BrickColor.new("Light stone grey")
  1259. Part.Size = Vector3.new(0.24000001, 0.484415948, 0.24000001)
  1260. local Partweld = Instance.new("ManualWeld")
  1261. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1262. Partweld.C1 = CFrame.new(-0.0040397644, 1.13030529, -0.121105194, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1263. Partweld.Parent = Part
  1264. local PartMesh = Instance.new("BlockMesh",Part)
  1265. PartMesh.Name = "Mesh"
  1266. PartMesh.Offset = Vector3.new(0, 0, 0)
  1267. PartMesh.Scale = Vector3.new(0.672799945, 1, 0.336399972)
  1268.  
  1269. local Part = Instance.new("Part", m)
  1270. Part:BreakJoints()
  1271. Part.TopSurface = "Smooth"
  1272. Part.Material = "SmoothPlastic"
  1273. Part.Name = 'Part'
  1274. Part.BottomSurface = "Smooth"
  1275. Part.FormFactor = "Custom" Part.CanCollide = false
  1276. Part.BrickColor = BrickColor.new("Light stone grey")
  1277. Part.Size = Vector3.new(0.24000001, 0.24000001, 0.403679997)
  1278. local Partweld = Instance.new("ManualWeld")
  1279. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1280. Partweld.C1 = CFrame.new(-0.0040397644, 1.41286731, 0.0403594971, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1281. Partweld.Parent = Part
  1282. local PartMesh = Instance.new("BlockMesh",Part)
  1283. PartMesh.Name = "Mesh"
  1284. PartMesh.Offset = Vector3.new(0, 0, 0)
  1285. PartMesh.Scale = Vector3.new(0.672800004, 0.336399972, 1)
  1286.  
  1287. local Part = Instance.new("Part", m)
  1288. Part:BreakJoints()
  1289. Part.TopSurface = "Smooth"
  1290. Part.Material = "SmoothPlastic"
  1291. Part.Name = 'Part'
  1292. Part.BottomSurface = "Smooth"
  1293. Part.FormFactor = "Custom" Part.CanCollide = false
  1294. Part.BrickColor = BrickColor.new("Really black")
  1295. Part.Size = Vector3.new(0.242207989, 0.24000001, 0.322943985)
  1296. local Partweld = Instance.new("ManualWeld")
  1297. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1298. Partweld.C1 = CFrame.new(0, -2.01839542, -3.81469727e-006, -0.999999166, 0, 0, -2.98023153e-008, -0.999998808, 1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1299. Partweld.Parent = Part
  1300. local PartMesh = Instance.new("CylinderMesh",Part)
  1301. PartMesh.Name = "Mesh"
  1302. PartMesh.Offset = Vector3.new(0, 0, 0)
  1303. PartMesh.Scale = Vector3.new(1, 0.672799945, 1)
  1304.  
  1305. local Part = Instance.new("Part", m)
  1306. Part:BreakJoints()
  1307. Part.TopSurface = "Smooth"
  1308. Part.Material = "SmoothPlastic"
  1309. Part.Name = 'Part'
  1310. Part.BottomSurface = "Smooth"
  1311. Part.FormFactor = "Custom" Part.CanCollide = false
  1312. Part.BrickColor = BrickColor.new("Mid gray")
  1313. Part.Size = Vector3.new(0.24000001, 0.403673619, 0.24000001)
  1314. local Partweld = Instance.new("ManualWeld")
  1315. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1316. Partweld.C1 = CFrame.new(0, -0.282573819, -0.0403747559, 0.99999845, 0, 0, 0, 0.99999851, -1.49011417e-008, 0, 7.45057491e-008, 0.999998331)
  1317. Partweld.Parent = Part
  1318. local PartMesh = Instance.new("BlockMesh",Part)
  1319. PartMesh.Name = "Mesh"
  1320. PartMesh.Offset = Vector3.new(0, 0, 0)
  1321. PartMesh.Scale = Vector3.new(0.336394608, 1, 0.336394608)
  1322.  
  1323. local Part = Instance.new("Part", m)
  1324. Part:BreakJoints()
  1325. Part.TopSurface = "Smooth"
  1326. Part.Material = "SmoothPlastic"
  1327. Part.Name = 'Part'
  1328. Part.BottomSurface = "Smooth"
  1329. Part.FormFactor = "Custom" Part.CanCollide = false
  1330. Part.BrickColor = BrickColor.new("Really black")
  1331. Part.Size = Vector3.new(0.24000001, 0.322944015, 0.24000001)
  1332. local Partweld = Instance.new("ManualWeld")
  1333. Partweld.Part0 = Handle Partweld.Part1 = Part Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1334. Partweld.C1 = CFrame.new(0, 0.242222786, -0.201854706, 0.999999523, 0, 0, 0, 0.999998808, -1.49011505e-008, 0, -1.49011505e-008, 0.999999046)
  1335. Partweld.Parent = Part
  1336. local PartMesh = Instance.new("BlockMesh",Part)
  1337. PartMesh.Name = "Mesh"
  1338. PartMesh.Offset = Vector3.new(0, 0, 0)
  1339. PartMesh.Scale = Vector3.new(0.672800004, 1, 0.336399972)
  1340.  
  1341. local Wedge = Instance.new("WedgePart", m)
  1342. Wedge:BreakJoints()
  1343. Wedge.TopSurface = "Smooth"
  1344. Wedge.Material = "SmoothPlastic"
  1345. Wedge.Name = 'Wedge'
  1346. Wedge.BottomSurface = "Smooth"
  1347. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1348. Wedge.BrickColor = BrickColor.new("Mid gray")
  1349. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1350. local Wedgeweld = Instance.new("ManualWeld")
  1351. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1352. Wedgeweld.C1 = CFrame.new(0.0807342529, 0.888065338, 0.121109843, 0.999999583, 4.47034552e-008, 4.60395855e-009, -4.60396654e-009, 0, 0.999998927, 2.98023153e-008, -0.999998808, 1.49011505e-008)
  1353. Wedgeweld.Parent = Wedge
  1354. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1355. WedgeMesh.MeshId = ""
  1356. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1357. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1358. WedgeMesh.Scale = Vector3.new(0.336399972, 0.672800004, 0.336399972)
  1359.  
  1360. local Wedge = Instance.new("WedgePart", m)
  1361. Wedge:BreakJoints()
  1362. Wedge.TopSurface = "Smooth"
  1363. Wedge.Material = "SmoothPlastic"
  1364. Wedge.Name = 'Wedge'
  1365. Wedge.BottomSurface = "Smooth"
  1366. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1367. Wedge.BrickColor = BrickColor.new("Mid gray")
  1368. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1369. local Wedgeweld = Instance.new("ManualWeld")
  1370. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1371. Wedgeweld.C1 = CFrame.new(0.565147519, -0.847709656, 0.0403728485, -8.88527651e-009, -0.99998951, 2.08615873e-007, 5.60383628e-010, 1.78813934e-007, -0.999991715, 0.999995291, -8.89951668e-009, 5.71418912e-010)
  1372. Wedgeweld.Parent = Wedge
  1373. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1374. WedgeMesh.MeshId = ""
  1375. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1376. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1377. WedgeMesh.Scale = Vector3.new(0.672799945, 0.336399972, 0.672799945)
  1378.  
  1379. local Wedge = Instance.new("WedgePart", m)
  1380. Wedge:BreakJoints()
  1381. Wedge.TopSurface = "Smooth"
  1382. Wedge.Material = "SmoothPlastic"
  1383. Wedge.Name = 'Wedge'
  1384. Wedge.BottomSurface = "Smooth"
  1385. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1386. Wedge.BrickColor = BrickColor.new("Mid gray")
  1387. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1388. local Wedgeweld = Instance.new("ManualWeld")
  1389. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1390. Wedgeweld.C1 = CFrame.new(-0.565150857, 0.888065338, 0.0403671265, -2.58195172e-008, 0.999998808, -4.47034587e-008, -8.30144131e-009, 2.98023046e-008, 0.999998927, 0.999999464, 2.58194763e-008, 8.30144931e-009)
  1391. Wedgeweld.Parent = Wedge
  1392. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1393. WedgeMesh.MeshId = ""
  1394. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1395. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1396. WedgeMesh.Scale = Vector3.new(0.672799945, 0.672800004, 0.672799945)
  1397.  
  1398. local Wedge = Instance.new("WedgePart", m)
  1399. Wedge:BreakJoints()
  1400. Wedge.TopSurface = "Smooth"
  1401. Wedge.Material = "SmoothPlastic"
  1402. Wedge.Name = 'Wedge'
  1403. Wedge.BottomSurface = "Smooth"
  1404. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1405. Wedge.BrickColor = BrickColor.new("Mid gray")
  1406. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1407. local Wedgeweld = Instance.new("ManualWeld")
  1408. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1409. Wedgeweld.C1 = CFrame.new(-0.56514895, -0.84771347, 0.0403556824, 2.97951193e-008, 0.999992609, 2.53319797e-007, 1.83762872e-008, 5.21540358e-007, -0.999994338, -0.999996781, 2.98092466e-008, -1.83872881e-008)
  1410. Wedgeweld.Parent = Wedge
  1411. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1412. WedgeMesh.MeshId = ""
  1413. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1414. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1415. WedgeMesh.Scale = Vector3.new(0.672799945, 0.336399972, 0.672799945)
  1416.  
  1417. local Wedge = Instance.new("WedgePart", m)
  1418. Wedge:BreakJoints()
  1419. Wedge.TopSurface = "Smooth"
  1420. Wedge.Material = "SmoothPlastic"
  1421. Wedge.Name = 'Wedge'
  1422. Wedge.BottomSurface = "Smooth"
  1423. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1424. Wedge.BrickColor = BrickColor.new("Mid gray")
  1425. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1426. local Wedgeweld = Instance.new("ManualWeld")
  1427. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1428. Wedgeweld.C1 = CFrame.new(0.565150976, 0.888069153, 0.0403556824, 3.24812177e-009, -0.999999106, 2.38418465e-007, 1.19303067e-010, 2.2351729e-007, 0.999999225, -0.999999762, -3.24812044e-009, 1.19303553e-010)
  1429. Wedgeweld.Parent = Wedge
  1430. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1431. WedgeMesh.MeshId = ""
  1432. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1433. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1434. WedgeMesh.Scale = Vector3.new(0.672799945, 0.672800004, 0.672799945)
  1435.  
  1436. local Wedge = Instance.new("WedgePart", m)
  1437. Wedge:BreakJoints()
  1438. Wedge.TopSurface = "Smooth"
  1439. Wedge.Material = "SmoothPlastic"
  1440. Wedge.Name = 'Wedge'
  1441. Wedge.BottomSurface = "Smooth"
  1442. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1443. Wedge.BrickColor = BrickColor.new("Mid gray")
  1444. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1445. local Wedgeweld = Instance.new("ManualWeld")
  1446. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1447. Wedgeweld.C1 = CFrame.new(0.0403671265, 0.766975403, 0.161476135, 1.75833657e-006, 0.99999845, 1.23679581e-006, -1.51448177e-007, -1.29640023e-006, 0.999998629, 0.999998927, -1.75833577e-006, 1.51446713e-007)
  1448. Wedgeweld.Parent = Wedge
  1449. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1450. WedgeMesh.MeshId = ""
  1451. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1452. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1453. WedgeMesh.Scale = Vector3.new(0.336399972, 0.336399972, 0.336399972)
  1454.  
  1455. local Wedge = Instance.new("WedgePart", m)
  1456. Wedge:BreakJoints()
  1457. Wedge.TopSurface = "Smooth"
  1458. Wedge.Material = "SmoothPlastic"
  1459. Wedge.Name = 'Wedge'
  1460. Wedge.BottomSurface = "Smooth"
  1461. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1462. Wedge.BrickColor = BrickColor.new("Mid gray")
  1463. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1464. local Wedgeweld = Instance.new("ManualWeld")
  1465. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1466. Wedgeweld.C1 = CFrame.new(-0.0807342529, 0.888065338, 0.121109843, 0.999999583, 4.47034552e-008, 4.60395855e-009, -4.60396654e-009, 0, 0.999998927, 2.98023153e-008, -0.999998808, 1.49011505e-008)
  1467. Wedgeweld.Parent = Wedge
  1468. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1469. WedgeMesh.MeshId = ""
  1470. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1471. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1472. WedgeMesh.Scale = Vector3.new(0.336399972, 0.672800004, 0.336399972)
  1473.  
  1474. local Wedge = Instance.new("WedgePart", m)
  1475. Wedge:BreakJoints()
  1476. Wedge.TopSurface = "Smooth"
  1477. Wedge.Material = "SmoothPlastic"
  1478. Wedge.Name = 'Wedge'
  1479. Wedge.BottomSurface = "Smooth"
  1480. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1481. Wedge.BrickColor = BrickColor.new("Mid gray")
  1482. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1483. local Wedgeweld = Instance.new("ManualWeld")
  1484. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1485. Wedgeweld.C1 = CFrame.new(-0.0403660536, 0.766975403, 0.161474228, -1.90734818e-006, -0.999998391, -5.21540414e-007, -2.12964278e-006, -6.55650695e-007, 0.999998748, -0.999998808, 1.90734693e-006, -2.12964187e-006)
  1486. Wedgeweld.Parent = Wedge
  1487. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1488. WedgeMesh.MeshId = ""
  1489. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1490. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1491. WedgeMesh.Scale = Vector3.new(0.336399972, 0.336399972, 0.336399972)
  1492.  
  1493. local Wedge = Instance.new("WedgePart", m)
  1494. Wedge:BreakJoints()
  1495. Wedge.TopSurface = "Smooth"
  1496. Wedge.Material = "SmoothPlastic"
  1497. Wedge.Name = 'Wedge'
  1498. Wedge.BottomSurface = "Smooth"
  1499. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1500. Wedge.BrickColor = BrickColor.new("Mid gray")
  1501. Wedge.Size = Vector3.new(0.24000001, 0.32293883, 0.24000001)
  1502. local Wedgeweld = Instance.new("ManualWeld")
  1503. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1504. Wedgeweld.C1 = CFrame.new(0, 0.0807228088, 0.524776578, 0.999999762, 2.22044406e-016, -6.61744293e-024, 0, 1.49011568e-008, 0.999999225, -2.22044552e-016, -0.999999106, 2.98023135e-008)
  1505. Wedgeweld.Parent = Wedge
  1506. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1507. WedgeMesh.MeshId = ""
  1508. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1509. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1510. WedgeMesh.Scale = Vector3.new(0.336394608, 1, 0.336394608)
  1511.  
  1512. local Wedge = Instance.new("WedgePart", m)
  1513. Wedge:BreakJoints()
  1514. Wedge.TopSurface = "Smooth"
  1515. Wedge.Material = "SmoothPlastic"
  1516. Wedge.Name = 'Wedge'
  1517. Wedge.BottomSurface = "Smooth"
  1518. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1519. Wedge.BrickColor = BrickColor.new("Really black")
  1520. Wedge.Size = Vector3.new(0.242207929, 0.322943985, 0.565151989)
  1521. local Wedgeweld = Instance.new("ManualWeld")
  1522. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1523. Wedgeweld.C1 = CFrame.new(-1.71661377e-005, -1.53342938, -0.524398804, -0.999999762, -2.96754621e-008, -4.22277964e-008, -2.96754372e-008, 0.999999166, -1.04308083e-006, 4.22278283e-008, -1.02817955e-006, -0.999999285)
  1524. Wedgeweld.Parent = Wedge
  1525. local Wedge = Instance.new("WedgePart", m)
  1526. Wedge:BreakJoints()
  1527. Wedge.TopSurface = "Smooth"
  1528. Wedge.Material = "SmoothPlastic"
  1529. Wedge.Name = 'Wedge'
  1530. Wedge.BottomSurface = "Smooth"
  1531. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1532. Wedge.BrickColor = BrickColor.new("Institutional white")
  1533. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.322943985)
  1534. local Wedgeweld = Instance.new("ManualWeld")
  1535. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1536. Wedgeweld.C1 = CFrame.new(-3.43322754e-005, -1.52188849, -0.654647827, -0.999999762, -2.81731118e-008, -1.76508408e-009, -2.82281221e-008, 0.998300195, 0.0582647361, 1.2058414e-010, 0.0582647435, -0.998300314)
  1537. Wedgeweld.Parent = Wedge
  1538. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1539. WedgeMesh.MeshId = ""
  1540. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1541. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1542. WedgeMesh.Scale = Vector3.new(0.672799706, 0.672799945, 1)
  1543.  
  1544. local Wedge = Instance.new("WedgePart", m)
  1545. Wedge:BreakJoints()
  1546. Wedge.TopSurface = "Smooth"
  1547. Wedge.Material = "SmoothPlastic"
  1548. Wedge.Name = 'Wedge'
  1549. Wedge.BottomSurface = "Smooth"
  1550. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1551. Wedge.BrickColor = BrickColor.new("Really black")
  1552. Wedge.Size = Vector3.new(0.24000001, 0.242208049, 0.24000001)
  1553. local Wedgeweld = Instance.new("ManualWeld")
  1554. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1555. Wedgeweld.C1 = CFrame.new(-0.0807495117, 0.282576442, -0.201824188, -0.999990225, -1.00713677e-007, 1.16830087e-007, -1.00710402e-007, 0.999992847, 9.53674032e-007, -9.18240133e-008, 9.23871596e-007, -0.999989867)
  1556. Wedgeweld.Parent = Wedge
  1557. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1558. WedgeMesh.MeshId = ""
  1559. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1560. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1561. WedgeMesh.Scale = Vector3.new(0.336399972, 1, 0.336399972)
  1562.  
  1563. local Wedge = Instance.new("WedgePart", m)
  1564. Wedge:BreakJoints()
  1565. Wedge.TopSurface = "Smooth"
  1566. Wedge.Material = "SmoothPlastic"
  1567. Wedge.Name = 'Wedge'
  1568. Wedge.BottomSurface = "Smooth"
  1569. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1570. Wedge.BrickColor = BrickColor.new("Really black")
  1571. Wedge.Size = Vector3.new(0.242207989, 0.403680027, 0.242208049)
  1572. local Wedgeweld = Instance.new("ManualWeld")
  1573. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1574. Wedgeweld.C1 = CFrame.new(0, 1.73581016, -0.121101379, -0.999990225, -1.00713677e-007, 1.16830087e-007, -1.00710402e-007, 0.999992847, 9.53674032e-007, -9.18240133e-008, 9.23871596e-007, -0.999989867)
  1575. Wedgeweld.Parent = Wedge
  1576. local Wedge = Instance.new("WedgePart", m)
  1577. Wedge:BreakJoints()
  1578. Wedge.TopSurface = "Smooth"
  1579. Wedge.Material = "SmoothPlastic"
  1580. Wedge.Name = 'Wedge'
  1581. Wedge.BottomSurface = "Smooth"
  1582. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1583. Wedge.BrickColor = BrickColor.new("Really black")
  1584. Wedge.Size = Vector3.new(0.24000001, 0.242208049, 0.24000001)
  1585. local Wedgeweld = Instance.new("ManualWeld")
  1586. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1587. Wedgeweld.C1 = CFrame.new(0.0807323456, 0.282576442, -0.201824188, -0.999990225, -1.00713677e-007, 1.16830087e-007, -1.00710402e-007, 0.999992847, 9.53674032e-007, -9.18240133e-008, 9.23871596e-007, -0.999989867)
  1588. Wedgeweld.Parent = Wedge
  1589. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1590. WedgeMesh.MeshId = ""
  1591. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1592. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1593. WedgeMesh.Scale = Vector3.new(0.336399972, 1, 0.336399972)
  1594.  
  1595. local Wedge = Instance.new("WedgePart", m)
  1596. Wedge:BreakJoints()
  1597. Wedge.TopSurface = "Smooth"
  1598. Wedge.Material = "SmoothPlastic"
  1599. Wedge.Name = 'Wedge'
  1600. Wedge.BottomSurface = "Smooth"
  1601. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1602. Wedge.BrickColor = BrickColor.new("Really black")
  1603. Wedge.Size = Vector3.new(0.242207989, 0.322944015, 0.484415978)
  1604. local Wedgeweld = Instance.new("ManualWeld")
  1605. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1606. Wedgeweld.C1 = CFrame.new(0, -0.726620436, 0, 0.999990046, 5.96045879e-008, 4.60624449e-007, 7.45057847e-008, -0.999992669, -1.16229023e-006, 4.85630551e-007, 1.10268536e-006, -0.999989867)
  1607. Wedgeweld.Parent = Wedge
  1608. local Wedge = Instance.new("WedgePart", m)
  1609. Wedge:BreakJoints()
  1610. Wedge.TopSurface = "Smooth"
  1611. Wedge.Material = "SmoothPlastic"
  1612. Wedge.Name = 'Wedge'
  1613. Wedge.BottomSurface = "Smooth"
  1614. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1615. Wedge.BrickColor = BrickColor.new("Mid gray")
  1616. Wedge.Size = Vector3.new(0.24000001, 0.242202863, 0.24000001)
  1617. local Wedgeweld = Instance.new("ManualWeld")
  1618. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1619. Wedgeweld.C1 = CFrame.new(0, 0.121101379, 0.121091723, 0.999999285, 0, 0, 0, 0, 0.999998927, 0, -0.999998808, 1.49011505e-008)
  1620. Wedgeweld.Parent = Wedge
  1621. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1622. WedgeMesh.MeshId = ""
  1623. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1624. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1625. WedgeMesh.Scale = Vector3.new(0.336399972, 1, 0.336399972)
  1626.  
  1627. local Wedge = Instance.new("WedgePart", m)
  1628. Wedge:BreakJoints()
  1629. Wedge.TopSurface = "Smooth"
  1630. Wedge.Material = "SmoothPlastic"
  1631. Wedge.Name = 'Wedge'
  1632. Wedge.BottomSurface = "Smooth"
  1633. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1634. Wedge.BrickColor = BrickColor.new("Institutional white")
  1635. Wedge.Size = Vector3.new(0.24000001, 0.24000001, 0.24000001)
  1636. local Wedgeweld = Instance.new("ManualWeld")
  1637. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1638. Wedgeweld.C1 = CFrame.new(-3.43322754e-005, -1.44644547, -0.0206298828, -0.999999762, -2.74245586e-008, 5.41266987e-009, -2.79530816e-008, 0.979856133, -0.199700639, 1.73066353e-010, -0.199700594, -0.979856253)
  1639. Wedgeweld.Parent = Wedge
  1640. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1641. WedgeMesh.MeshId = ""
  1642. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1643. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1644. WedgeMesh.Scale = Vector3.new(0.672799706, 0.336399972, 0.336399972)
  1645.  
  1646. local Wedge = Instance.new("WedgePart", m)
  1647. Wedge:BreakJoints()
  1648. Wedge.TopSurface = "Smooth"
  1649. Wedge.Material = "SmoothPlastic"
  1650. Wedge.Name = 'Wedge'
  1651. Wedge.BottomSurface = "Smooth"
  1652. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1653. Wedge.BrickColor = BrickColor.new("Mid gray")
  1654. Wedge.Size = Vector3.new(0.24000001, 0.242202863, 0.24000001)
  1655. local Wedgeweld = Instance.new("ManualWeld")
  1656. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1657. Wedgeweld.C1 = CFrame.new(0, -0.121101379, 0.121091485, -0.999997437, 1.77635684e-015, -5.96045062e-008, 5.96045098e-008, 1.49011754e-008, -0.999997318, 0, -0.999997377, 2.9802262e-008)
  1658. Wedgeweld.Parent = Wedge
  1659. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1660. WedgeMesh.MeshId = ""
  1661. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1662. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1663. WedgeMesh.Scale = Vector3.new(0.336399972, 1, 0.336399972)
  1664.  
  1665. local Wedge = Instance.new("WedgePart", m)
  1666. Wedge:BreakJoints()
  1667. Wedge.TopSurface = "Smooth"
  1668. Wedge.Material = "SmoothPlastic"
  1669. Wedge.Name = 'Wedge'
  1670. Wedge.BottomSurface = "Smooth"
  1671. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1672. Wedge.BrickColor = BrickColor.new("Really black")
  1673. Wedge.Size = Vector3.new(0.24000001, 0.484415978, 0.24000001)
  1674. local Wedgeweld = Instance.new("ManualWeld")
  1675. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1676. Wedgeweld.C1 = CFrame.new(0, 0, 0.12110734, 0.999990106, 2.20054312e-006, 5.96047229e-008, 5.96036323e-008, 1.96695237e-006, -0.999989748, -2.20053425e-006, 0.999992788, 2.08616189e-006)
  1677. Wedgeweld.Parent = Wedge
  1678. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1679. WedgeMesh.MeshId = ""
  1680. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1681. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1682. WedgeMesh.Scale = Vector3.new(0.672800004, 1, 0.336399972)
  1683.  
  1684. local Wedge = Instance.new("WedgePart", m)
  1685. Wedge:BreakJoints()
  1686. Wedge.TopSurface = "Smooth"
  1687. Wedge.Material = "SmoothPlastic"
  1688. Wedge.Name = 'Wedge'
  1689. Wedge.BottomSurface = "Smooth"
  1690. Wedge.FormFactor = "Custom" Wedge.CanCollide = false
  1691. Wedge.BrickColor = BrickColor.new("Really black")
  1692. Wedge.Size = Vector3.new(0.24000001, 0.484415978, 0.24000001)
  1693. local Wedgeweld = Instance.new("ManualWeld")
  1694. Wedgeweld.Part0 = Handle Wedgeweld.Part1 = Wedge Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1695. Wedgeweld.C1 = CFrame.new(0, 0, 0.12110734, -0.999990225, -9.18315521e-008, -7.57092593e-008, -1.00715447e-007, -9.23871596e-007, 0.999989867, -9.18284897e-008, 0.999992847, 9.53674032e-007)
  1696. Wedgeweld.Parent = Wedge
  1697. local WedgeMesh = Instance.new("SpecialMesh",Wedge)
  1698. WedgeMesh.MeshId = ""
  1699. WedgeMesh.MeshType = Enum.MeshType.Wedge WedgeMesh.Name = "Mesh"
  1700. WedgeMesh.Offset = Vector3.new(0, 0, 0)
  1701. WedgeMesh.Scale = Vector3.new(0.672800004, 1, 0.336399972)
  1702.  
  1703. local Barrel = Instance.new("Part", m)
  1704. Barrel:BreakJoints()
  1705. Barrel.Transparency = 1
  1706. Barrel.TopSurface = "Smooth"
  1707. Barrel.Material = "SmoothPlastic"
  1708. Barrel.Name = 'Barrel'
  1709. Barrel.BottomSurface = "Smooth"
  1710. Barrel.FormFactor = "Custom" Barrel.CanCollide = false
  1711. Barrel.BrickColor = BrickColor.new("Really black")
  1712. Barrel.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1713. local Barrelweld = Instance.new("ManualWeld")
  1714. Barrelweld.Part0 = Handle Barrelweld.Part1 = Barrel Barrelweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1715. Barrelweld.C1 = CFrame.new(0.0255336761, -1.47806406, -0.462097168, -0.999999762, 1.05895552e-007, -3.57058312e-008, 1.0589563e-007, 0.999999106, -4.61935798e-007, 3.57056962e-008, -4.4703458e-007, -0.999999225)
  1716. Barrelweld.Parent = Barrel
  1717.  
  1718. local Ammo=25
  1719. local Clip=math.huge
  1720. local MaxAmmo=25
  1721.  
  1722.  
  1723. local g1 = Instance.new("ScreenGui", player.PlayerGui)
  1724. g1.Name = "AmmoGui"
  1725. local o1 = Instance.new("TextLabel", g1)
  1726. o1.BackgroundColor3 = Color3.new(0, 0, 0)
  1727. o1.BackgroundTransparency = 0.69999998807907
  1728. o1.BorderColor3 = Color3.new(0.498039, 1, 0.027451)
  1729. o1.BorderSizePixel = 3
  1730. o1.Name = "Ammo"
  1731. o1.Size = UDim2.new(0, 200, 0, 50)
  1732. o1.Text = "Ammo: "..Ammo..'/'..MaxAmmo
  1733. o1.TextWrapped = true
  1734. o1.TextColor3 = Color3.new(0.282353, 0, 1)
  1735. o1.TextStrokeColor3 = Color3.new(0.0666667, 1, 0)
  1736. o1.TextStrokeTransparency = 0.30000001192093
  1737. o1.Font = Enum.Font.ArialBold
  1738. o1.FontSize = Enum.FontSize.Size36
  1739. local o2 = Instance.new("TextLabel", g1)
  1740. o2.BackgroundColor3 = Color3.new(0,0,0)
  1741. o2.BackgroundTransparency = 0.69999998807907
  1742. o2.BorderColor3 = Color3.new(0.498039, 1, 0.027451)
  1743. o2.BorderSizePixel = 3
  1744. o2.Name = "Ammo"
  1745. o2.Size = UDim2.new(0, 200, 0, 50)
  1746. o2.Position=UDim2.new(0, 200, 0, 0)
  1747. o2.Text = "Clip: "..Clip
  1748. o2.TextWrapped = true
  1749. o2.TextColor3 = Color3.new(0.282353, 0, 1)
  1750. o2.TextStrokeColor3 = Color3.new(0.0666667, 1, 0)
  1751. o2.TextStrokeTransparency = 0.30000001192093
  1752. o2.Font = Enum.Font.ArialBold
  1753. o2.FontSize = Enum.FontSize.Size36
  1754.  
  1755. function makeAmmoGui()
  1756. g1 = Instance.new("ScreenGui", player.PlayerGui)
  1757. g1.Name = "AmmoGui"
  1758. o1 = Instance.new("TextLabel", g1)
  1759. o1.BackgroundColor3 = Color3.new(1,1,1)
  1760. o1.BackgroundTransparency = 0.69999998807907
  1761. o1.BorderColor3 = Color3.new(1, 1, 1)
  1762. o1.BorderSizePixel = 3
  1763. o1.Name = "Ammo"
  1764. o1.Size = UDim2.new(0, 200, 0, 50)
  1765. o1.Text = "Ammo: "..Ammo..'/'..MaxAmmo
  1766. o1.TextWrapped = true
  1767. o1.TextColor3 = Color3.new(1, 1, 1)
  1768. o1.TextStrokeColor3 = Color3.new(1, 1, 1)
  1769. o1.TextStrokeTransparency = 0.30000001192093
  1770. o1.Font = Enum.Font.ArialBold
  1771. o1.FontSize = Enum.FontSize.Size36
  1772. o2 = Instance.new("TextLabel", g1)
  1773. o2.BackgroundColor3 = Color3.new(1, 1, 1)
  1774. o2.BackgroundTransparency = 0.69999998807907
  1775. o2.BorderColor3 = Color3.new(0.498039, 1, 0.027451)
  1776. o2.BorderSizePixel = 3
  1777. o2.Name = "Ammo"
  1778. o2.Size = UDim2.new(0, 200, 0, 50)
  1779. o2.Position=UDim2.new(0, 200, 0, 0)
  1780. o2.Text = "Clip: "..Clip
  1781. o2.TextWrapped = true
  1782. o2.TextColor3 = Color3.new(1, 1, 1)
  1783. o2.TextStrokeColor3 = Color3.new(1, 1, 1)
  1784. o2.TextStrokeTransparency = 0.30000001192093
  1785. o2.Font = Enum.Font.ArialBold
  1786. o2.FontSize = Enum.FontSize.Size36
  1787. end
  1788.  
  1789. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1790. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1791. end
  1792. function Laser(Part,Dmg)
  1793. sp = Part.Position
  1794. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  1795. local hit,pos = rayCast(sp,dirr.lookVector,500,Character)
  1796. local las=Instance.new("Part",Character)
  1797. las.Anchored=true
  1798. las.Locked=true
  1799. las.CanCollide=false
  1800. las.TopSurface=0
  1801. las.BottomSurface=0
  1802. las.FormFactor = "Custom"
  1803. las.BrickColor=BrickColor.new("Cyan")
  1804. las.Size=Vector3.new(1,1,1)
  1805. las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  1806. local msh=Instance.new("SpecialMesh",las)
  1807. mag = (Part.Position-pos).magnitude
  1808. msh.Scale=Vector3.new(0.1,mag,0.1)
  1809. coroutine.resume(coroutine.create(function(Part,Mesh)
  1810. for i = 0,1,0.1 do
  1811. wait()
  1812. Part.Transparency = Part.Transparency + 0.1
  1813. Mesh.Scale = Mesh.Scale + Vector3.new(0.15,0.7,0.15)
  1814. end
  1815. Part.Parent = nil
  1816. end),las,msh)
  1817. if pos ~= nil then
  1818. local las2=Instance.new("Part",Character)
  1819. las2.Anchored=true
  1820. las2.Locked=true
  1821. las2.CanCollide=false
  1822. las2.TopSurface=0
  1823. las2.BottomSurface=0
  1824. las2.FormFactor = "Custom"
  1825. las2.BrickColor=BrickColor.new("Cyan")
  1826. las2.Size=Vector3.new(1,1,1)
  1827. --las2.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  1828. las2.CFrame=CFrame.new(pos) *CFrame.Angles(math.rad(90),0,0)
  1829. local msh=Instance.new("SpecialMesh",las2)
  1830. msh.MeshType = "Sphere"
  1831. mag = (Part.Position-pos).magnitude
  1832. msh.Scale=Vector3.new(0.1,0.1,0.1)
  1833. coroutine.resume(coroutine.create(function(Part,Mesh)
  1834. --wait(10)
  1835. for i = 0,1,0.1 do
  1836. wait()
  1837. Part.Transparency = Part.Transparency + 0.1
  1838. Mesh.Scale = Mesh.Scale + Vector3.new(0.5,0,0.5)
  1839. end
  1840. Part.Parent = nil
  1841. end),las2,msh)
  1842. end
  1843. if hit ~= nil and pos ~= nil then
  1844. if hit.Parent.className == "Hat" then
  1845. hit:BreakJoints()
  1846. hit.Velocity = Vector3.new(math.random(-5,5),20,math.random(-5,5))
  1847. end
  1848. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1849. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1850. hit.Parent.Humanoid:TakeDamage(Dmg)
  1851. end
  1852. end
  1853. --[[if hit.className == "Part" and hit.Parent:findFirstChild("Humanoid") == nil then
  1854. end ]]
  1855. end
  1856. end
  1857.  
  1858. FireSounds = {233370753, 233370772}
  1859.  
  1860. function PlaySound(id, pitch, parent, volume)
  1861. if volume == nil then volume=tonumber(1) end
  1862. epicsound = Instance.new("Sound")
  1863. epicsound.Name = "Epicosound"
  1864. epicsound.SoundId = "rbxassetid://"..id
  1865. epicsound.Volume = volume
  1866. epicsound.Pitch = pitch
  1867. epicsound.Looped = false
  1868. epicsound.Parent = parent
  1869. wait()
  1870. epicsound:Play()
  1871. game:service'Debris':AddItem(epicsound, 8)
  1872. end
  1873.  
  1874. FireSound = function(part)
  1875. local shot=math.random(0.9, #FireSounds)
  1876. PlaySound(FireSounds[shot], 1, part)
  1877. end
  1878.  
  1879. function shoot()
  1880. if Ammo > 0 then
  1881. Ammo = Ammo -1
  1882. o1.Text = "Ammo: "..Ammo..'/'..MaxAmmo
  1883. if attack==false then
  1884. attack=true
  1885. FireSound(Barrel)
  1886. Laser(Barrel,13)
  1887. for i=0,1,0.3 do
  1888. swait()
  1889. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-5),math.rad(0),math.rad(-80)),.5)
  1890. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1891. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(180),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1892. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(65),math.rad(90))*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1893. 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)
  1894. 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)
  1895. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1896. end
  1897. attack=false
  1898. end
  1899. end
  1900. end
  1901.  
  1902. function Reload()
  1903. if Ammo < MaxAmmo then
  1904. if Clip > 0 then
  1905. if Clip >= MaxAmmo then
  1906. local rload=MaxAmmo - Ammo
  1907. Clip = Clip - rload
  1908. Ammo = Ammo + rload
  1909. --print'reloaded!'
  1910. o1.Text = "Ammo: "..Ammo..'/'..MaxAmmo
  1911. o2.Text = "Clip: "..Clip
  1912. elseif Clip <= MaxAmmo then
  1913. local rload=Clip - Ammo
  1914. if Ammo < rload then
  1915. Ammo = rload
  1916. else
  1917. Ammo = Ammo - rload
  1918. end
  1919. o1.Text = "Ammo: "..Ammo..'/'..MaxAmmo
  1920. o2.Text = "Clip: "..Clip
  1921. end
  1922. else
  1923. --print'No clip!'
  1924. end
  1925. end
  1926. if attack==false then
  1927. attack=true
  1928. so("http://roblox.com/asset/?id=233370781",Torso,1,1)
  1929. for i=0,1,0.1 do
  1930. swait()
  1931. --RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-5),math.rad(0),math.rad(-80)),.5)
  1932. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1933. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(150),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1934. --LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(65),math.rad(90))*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1935. 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)
  1936. 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)
  1937. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(80),math.rad(0),math.rad(0)),.3)
  1938. end
  1939. so("http://roblox.com/asset/?id=200289883",Torso,1,1)
  1940. for i=0,1,0.1 do
  1941. swait()
  1942. --RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-5),math.rad(0),math.rad(-80)),.5)
  1943. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1944. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(150),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1945. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(120),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1946. 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)
  1947. 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)
  1948. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(80),math.rad(0),math.rad(0)),.3)
  1949. end
  1950. for i=0,1,0.1 do
  1951. swait()
  1952. --RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-5),math.rad(0),math.rad(-80)),.5)
  1953. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1954. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(150),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1955. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(65),math.rad(90))*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1956. 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)
  1957. 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)
  1958. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(80),math.rad(0),math.rad(0)),.3)
  1959. end
  1960. for i=0,1,0.3 do
  1961. swait()
  1962. --RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-5),math.rad(0),math.rad(-80)),.5)
  1963. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1964. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(150),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1965. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(120),math.rad(90))*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1966. 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)
  1967. 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)
  1968. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1969. end
  1970. for i=0,1,0.3 do
  1971. swait()
  1972. --RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-5),math.rad(0),math.rad(-80)),.5)
  1973. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1974. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(150),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1975. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(120),math.rad(90))*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1976. 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)
  1977. 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)
  1978. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1979. end
  1980. attack=false
  1981. end
  1982. end
  1983.  
  1984. function shoot2()
  1985. if Ammo > 0 then
  1986. Ammo = Ammo -6
  1987. o1.Text = "Ammo: "..Ammo..'/'..MaxAmmo
  1988. if attack==false then
  1989. attack=true
  1990. --FireSound(Barrel)
  1991. for i=0,1,0.3 do
  1992. swait()
  1993. --Laser(Barrel,13)
  1994. --FireSound(Barrel)
  1995. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-10),math.rad(0),math.rad(-80)),.5)
  1996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  1997. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(180),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  1998. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1999. 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)
  2000. 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)
  2001. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  2002. end
  2003. for i=0,1,0.2 do
  2004. swait()
  2005. Laser(Barrel,13)
  2006. FireSound(Barrel)
  2007. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-80)),.5)
  2008. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-5),math.rad(90)),.5)
  2009. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(50),math.rad(90))*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  2010. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2011. 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)
  2012. 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)
  2013. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  2014. end
  2015. attack=false
  2016. end
  2017. end
  2018. end
  2019.  
  2020.  
  2021.  
  2022. mouse.Button1Down:connect(function()
  2023. if attack==false then
  2024. shoot()
  2025. end
  2026. end)
  2027.  
  2028. mouse.KeyDown:connect(function(k)
  2029. k=k:lower()
  2030. if k=='q' then
  2031. if attack==false then
  2032. shoot2()
  2033. end
  2034. elseif k=='r' then
  2035. if attack==false then
  2036. Reload()
  2037. end
  2038. end
  2039. end)
  2040.  
  2041. local sine = 0
  2042. local change = 1
  2043. local val = 0
  2044.  
  2045. while true do
  2046. swait()
  2047. sine = sine + change
  2048. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2049. local velderp=RootPart.Velocity.y
  2050. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2051. if equipped==true or equipped==false then
  2052. if attack==false then
  2053. idle=idle+1
  2054. else
  2055. idle=0
  2056. end
  2057. if idle>=500 then
  2058. if attack==false then
  2059. --Sheath()
  2060. end
  2061. end
  2062. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2063. Anim="Jump"
  2064. if attack==false then
  2065. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2066. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2067. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2068. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  2069. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2070. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2071. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2072. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2073. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2074. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2075. end
  2076. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2077. Anim="Fall"
  2078. if attack==false then
  2079. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2080. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2081. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2082. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  2083. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2084. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2085. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2086. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2087. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2088. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2089. end
  2090. elseif torvel<1 and hitfloor~=nil then
  2091. Anim="Idle"
  2092. if attack==false then
  2093. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(-80)),.5)
  2094. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  2095. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(180),math.rad(90)),.3)
  2096. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(75),math.rad(90)),.3)
  2097. 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)
  2098. 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)
  2099. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2100. end
  2101. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2102. Anim="Walk"
  2103. if attack==false then
  2104. change=3
  2105. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(10),math.rad(0),math.rad(-80)),.5)
  2106. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-10),math.rad(90)),.5)
  2107. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(180),math.rad(90)),.3)
  2108. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(65),math.rad(90)),.3)
  2109. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2110. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2111. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2112. end
  2113. elseif torvel>=22 and hitfloor~=nil then
  2114. Anim="Run"
  2115. if attack==false then
  2116. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(10),math.rad(0),math.rad(-80)),.5)
  2117. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-10),math.rad(90)),.5)
  2118. RW.C0=clerp(RW.C0,cf(.5,0.5,-1)*angles(math.rad(-90),math.rad(180),math.rad(90)),.3)
  2119. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(65),math.rad(90)),.3)
  2120. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2121. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2122. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2123. end
  2124. end
  2125. end
  2126. end
Add Comment
Please, Sign In to add comment