Advertisement
deadropz

Untitled

Jan 20th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.11 KB | None | 0 0
  1. --[pastebin url: http://pastebin.com/raw/vJmtAYPe]]--
  2.  
  3. function clerp(c1,c2,al)
  4. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  5. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  6. for i,v in pairs(com1) do
  7. com1[i] = v+(com2[i]-v)*al
  8. end
  9. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  10. end
  11.  
  12. gui = Instance.new("BillboardGui", head)
  13. fra = Instance.new("TextLabel", gui)
  14. plr = game:service'Players'.LocalPlayer
  15. plrgui = plr:findFirstChild'PlayerGui'
  16. plrmouse = plr:GetMouse()
  17. char = plr.Character
  18. humanoid = char:findFirstChild("Humanoid")
  19. torso = char:findFirstChild("Torso")
  20. head = char.Head
  21. humanoid.Health = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  22. humanoid.WalkSpeed = 25
  23. ra = char:findFirstChild("Right Arm")
  24. la = char:findFirstChild("Left Arm")
  25. rl = char:findFirstChild("Right Leg")
  26. ll = char:findFirstChild("Left Leg")
  27. rs = torso:findFirstChild("Right Shoulder")
  28. ls = torso:findFirstChild("Left Shoulder")
  29. rh = torso:findFirstChild("Right Hip")
  30. lh = torso:findFirstChild("Left Hip")
  31. neck = torso:findFirstChild("Neck")
  32. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  33. rootpart = char:findFirstChild("HumanoidRootPart")
  34. camera = workspace.CurrentCamera
  35. anim = char:findFirstChild("Animate")
  36.  
  37.  
  38. local rm = Instance.new("Weld")
  39. rm.C0 = CFrame.new(1.5, 0.5, 0)
  40. rm.C1 = CFrame.new(0, 0.5, 0)
  41. rm.Part0 = torso
  42. rm.Part1 = ra
  43. rm.Name = 'Right Shoulder'
  44.  
  45. local lm = Instance.new("Weld")
  46. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  47. lm.C1 = CFrame.new(0, 0.5, 0)
  48. lm.Part0 = torso
  49. lm.Part1 = la
  50. lm.Name = 'Left Shoulder'
  51.  
  52. local tool = Instance.new('HopperBin', plr.Backpack)
  53. tool.Name = 'Dual Blue Gusters'
  54.  
  55. function scan(parent)
  56. local parts,last = {}
  57. for _,v in pairs(parent:GetChildren()) do
  58. if (v:IsA("BasePart")) then
  59. v.Anchored = true
  60. if (last) then
  61. local w = Instance.new("Weld")
  62. w.Name = ("%s_Weld"):format(v.Name)
  63. w.Part0,w.Part1 = last,v
  64. w.C0 = last.CFrame:inverse()
  65. w.C1 = v.CFrame:inverse()
  66. w.Parent = last
  67. end
  68. last = v
  69. table.insert(parts,v)
  70. end
  71. scan(v)
  72. end
  73. for _,v in pairs(parts) do
  74. v.Anchored = false
  75. v.Locked = true
  76. v.CanCollide = false
  77. end
  78. end
  79.  
  80. --1-Torso
  81. holsters=Instance.new("Model")
  82. holsters.Name="Torso"
  83. holsters.Parent=char
  84. --2-HolsterWeldTo2
  85. obj2=Instance.new("Part")
  86. obj2.CFrame=CFrame.new(Vector3.new(14.8519955,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  87. obj2.FormFactor=Enum.FormFactor.Custom
  88. obj2.LeftSurface=10
  89. obj2.Transparency=1
  90. obj2.TopSurface=10
  91. obj2.RightSurface=10
  92. obj2.Material="SmoothPlastic"
  93. obj2.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  94. obj2.FrontSurface=10
  95. obj2.BottomSurface=10
  96. obj2.BackSurface=10
  97. obj2.BrickColor=BrickColor.new("Really blue")
  98. obj2.Name="HolsterWeldTo2"
  99. obj2.Parent=holsters
  100. --3-Mesh
  101. obj3=Instance.new("BlockMesh")
  102. obj3.Scale=Vector3.new(0.999499977,1,1)
  103. obj3.Parent=obj2
  104. --4-Belt
  105. obj4=Instance.new("Part")
  106. obj4.CFrame=CFrame.new(Vector3.new(13.6000061,1.49000156,35.8999977)) * CFrame.Angles(-1.4901162970204e-008,0,-0)
  107. obj4.FormFactor=Enum.FormFactor.Custom
  108. obj4.LeftSurface=10
  109. obj4.TopSurface=10
  110. obj4.RightSurface=10
  111. obj4.Material="SmoothPlastic"
  112. obj4.Size=Vector3.new(2,0.200000003,1)
  113. obj4.FrontSurface=10
  114. obj4.BottomSurface=10
  115. obj4.BackSurface=10
  116. obj4.BrickColor=BrickColor.new("Really blue")
  117. obj4.Name="Belt"
  118. obj4.Parent=holsters
  119. --5-Mesh
  120. obj5=Instance.new("BlockMesh")
  121. obj5.Scale=Vector3.new(1.10000002,1,1.10000002)
  122. obj5.Parent=obj4
  123. --6-Hold2
  124. obj6=Instance.new("Part")
  125. obj6.CFrame=CFrame.new(Vector3.new(14.8000011,1.0950017,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  126. obj6.FormFactor=Enum.FormFactor.Custom
  127. obj6.LeftSurface=10
  128. obj6.TopSurface=10
  129. obj6.RightSurface=10
  130. obj6.Material="SmoothPlastic"
  131. obj6.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  132. obj6.FrontSurface=10
  133. obj6.BottomSurface=10
  134. obj6.BackSurface=10
  135. obj6.BrickColor=BrickColor.new("Really blue")
  136. obj6.Name="Hold2"
  137. obj6.Parent=holsters
  138. --7-TorsoWeld
  139. obj7=Instance.new("Part")
  140. obj7.CFrame=CFrame.new(Vector3.new(13.6000061,1.99000168,35.8999939)) * CFrame.Angles(-0,0,-0)
  141. obj7.FormFactor=Enum.FormFactor.Custom
  142. obj7.LeftSurface=10
  143. obj7.Transparency=1
  144. obj7.TopSurface=10
  145. obj7.RightSurface=10
  146. obj7.Size=Vector3.new(2,2,1)
  147. obj7.FrontSurface=10
  148. obj7.BottomSurface=10
  149. obj7.BackSurface=10
  150. obj7.BrickColor=BrickColor.new("Bright blue")
  151. obj7.Name="TorsoWeld"
  152. obj7.Parent=holsters
  153. --8-HolsterWeldTo
  154. obj8=Instance.new("Part")
  155. obj8.CFrame=CFrame.new(Vector3.new(12.342,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  156. obj8.FormFactor=Enum.FormFactor.Custom
  157. obj8.LeftSurface=10
  158. obj8.Transparency=1
  159. obj8.TopSurface=10
  160. obj8.RightSurface=10
  161. obj8.Material="SmoothPlastic"
  162. obj8.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  163. obj8.FrontSurface=10
  164. obj8.BottomSurface=10
  165. obj8.BackSurface=10
  166. obj8.BrickColor=BrickColor.new("Really blue")
  167. obj8.Name="HolsterWeldTo"
  168. obj8.Parent=holsters
  169. --9-Mesh
  170. obj9=Instance.new("BlockMesh")
  171. obj9.Scale=Vector3.new(0.999499977,1,1)
  172. obj9.Parent=obj8
  173. --10-Hold
  174. obj10=Instance.new("Part")
  175. obj10.CFrame=CFrame.new(Vector3.new(12.4000053,1.09500158,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  176. obj10.FormFactor=Enum.FormFactor.Custom
  177. obj10.LeftSurface=10
  178. obj10.TopSurface=10
  179. obj10.RightSurface=10
  180. obj10.Material="SmoothPlastic"
  181. obj10.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  182. obj10.FrontSurface=10
  183. obj10.BottomSurface=10
  184. obj10.BackSurface=10
  185. obj10.BrickColor=BrickColor.new("Really blue")
  186. obj10.Name="Hold"
  187. obj10.Parent=holsters
  188. holsters:MakeJoints()
  189. scan(holsters)
  190.  
  191. --1-M1911
  192. gun=Instance.new("Model")
  193. gun.Name="Blue Guster"
  194. gun.Parent=char
  195. --2-Handle
  196. obj2=Instance.new("Part")
  197. obj2.CFrame=CFrame.new(Vector3.new(12.3420238,1.86332655,36.3927727)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  198. obj2.FormFactor=Enum.FormFactor.Custom
  199. obj2.LeftSurface=10
  200. obj2.TopSurface=10
  201. obj2.RightSurface=10
  202. obj2.Material=Enum.Material.Neon
  203. obj2.Size=Vector3.new(0.200000003,0.99999994,0.400000036)
  204. obj2.FrontSurface=10
  205. obj2.BottomSurface=10
  206. obj2.BackSurface=10
  207. obj2.BrickColor=BrickColor.new("Really black")
  208. obj2.Name="Handle"
  209. obj2.Parent=gun
  210. --3-Decor
  211. obj3=Instance.new("Part")
  212. obj3.CFrame=CFrame.new(Vector3.new(12.3420143,2.28510284,35.9773712)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  213. obj3.FormFactor=Enum.FormFactor.Custom
  214. obj3.LeftSurface=10
  215. obj3.TopSurface=10
  216. obj3.RightSurface=10
  217. obj3.Material="SmoothPlastic"
  218. obj3.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  219. obj3.FrontSurface=10
  220. obj3.BottomSurface=10
  221. obj3.BackSurface=10
  222. obj3.BrickColor=BrickColor.new("Really blue")
  223. obj3.Name="Decor"
  224. obj3.Parent=gun
  225. --4-Mesh
  226. obj4=Instance.new("BlockMesh")
  227. obj4.Offset=Vector3.new(0,0.00999999978,0.0399999991)
  228. obj4.Scale=Vector3.new(0.699999988,0.200000003,0.800000012)
  229. obj4.Parent=obj3
  230. --5-Decor
  231. obj5=Instance.new("Part")
  232. obj5.CFrame=CFrame.new(Vector3.new(12.3420143,1.46716928,35.8617401)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  233. obj5.FormFactor=Enum.FormFactor.Custom
  234. obj5.LeftSurface=10
  235. obj5.TopSurface=10
  236. obj5.RightSurface=10
  237. obj5.Material="SmoothPlastic"
  238. obj5.Size=Vector3.new(0.200000003,0.400000006,0.200000003)
  239. obj5.FrontSurface=10
  240. obj5.BottomSurface=10
  241. obj5.BackSurface=10
  242. obj5.BrickColor=BrickColor.new("Really blue")
  243. obj5.Name="Decor"
  244. obj5.Parent=gun
  245. --6-Mesh
  246. obj6=Instance.new("BlockMesh")
  247. obj6.Scale=Vector3.new(0.600000024,1,0.200000003)
  248. obj6.Parent=obj5
  249. --7-Decor
  250. obj7=Instance.new("Part")
  251. obj7.CFrame=CFrame.new(Vector3.new(12.3420124,1.55429673,36.0928192)) * CFrame.Angles(0.45686540007591,-1.1175870895386e-008,3.141592502594)
  252. obj7.FormFactor=Enum.FormFactor.Custom
  253. obj7.LeftSurface=10
  254. obj7.TopSurface=10
  255. obj7.RightSurface=10
  256. obj7.Material="SmoothPlastic"
  257. obj7.Size=Vector3.new(0.200000003,0.310000002,0.200000003)
  258. obj7.FrontSurface=10
  259. obj7.BottomSurface=10
  260. obj7.BackSurface=10
  261. obj7.BrickColor=BrickColor.new("Really blue")
  262. obj7.Name="Decor"
  263. obj7.Parent=gun
  264. --8-Mesh
  265. obj8=Instance.new("BlockMesh")
  266. obj8.Scale=Vector3.new(0.600000024,1,0.200000003)
  267. obj8.Parent=obj7
  268. --9-Decor
  269. obj9=Instance.new("Part")
  270. obj9.CFrame=CFrame.new(Vector3.new(12.3420258,2.21372294,35.8965569)) * CFrame.Angles(0.76370096206665,-1.4901161193848e-008,-3.1415927410126)
  271. obj9.FormFactor=Enum.FormFactor.Custom
  272. obj9.LeftSurface=10
  273. obj9.TopSurface=10
  274. obj9.RightSurface=10
  275. obj9.Material="SmoothPlastic"
  276. obj9.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  277. obj9.FrontSurface=10
  278. obj9.BottomSurface=10
  279. obj9.BackSurface=10
  280. obj9.BrickColor=BrickColor.new("Really blue")
  281. obj9.Name="Decor"
  282. obj9.Parent=gun
  283. --10-Mesh
  284. obj10=Instance.new("BlockMesh")
  285. obj10.Scale=Vector3.new(0.400000006,0.200000003,1)
  286. obj10.Parent=obj9
  287. --11-Decor
  288. obj11=Instance.new("Part")
  289. obj11.CFrame=CFrame.new(Vector3.new(12.3420229,1.8633275,36.2927704)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  290. obj11.FormFactor=Enum.FormFactor.Custom
  291. obj11.LeftSurface=10
  292. obj11.TopSurface=10
  293. obj11.RightSurface=10
  294. obj11.Material="SmoothPlastic"
  295. obj11.Size=Vector3.new(0.200000003,1.20000005,0.400000036)
  296. obj11.FrontSurface=10
  297. obj11.BottomSurface=10
  298. obj11.BackSurface=10
  299. obj11.BrickColor=BrickColor.new("Really blue")
  300. obj11.Name="Decor"
  301. obj11.Parent=gun
  302. --12-Mesh
  303. obj12=Instance.new("BlockMesh")
  304. obj12.Offset=Vector3.new(0,-0.0700000003,0)
  305. obj12.Scale=Vector3.new(0.995000005,0.949999988,1.20000005)
  306. obj12.Parent=obj11
  307. --13-Decor
  308. obj13=Instance.new("Part")
  309. obj13.CFrame=CFrame.new(Vector3.new(12.3420258,2.30202365,35.8373909)) * CFrame.Angles(1.756756901741,-1.0430812835693e-007,3.1415927410126)
  310. obj13.FormFactor=Enum.FormFactor.Custom
  311. obj13.LeftSurface=10
  312. obj13.TopSurface=10
  313. obj13.RightSurface=10
  314. obj13.Material="SmoothPlastic"
  315. obj13.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  316. obj13.FrontSurface=10
  317. obj13.BottomSurface=10
  318. obj13.BackSurface=10
  319. obj13.BrickColor=BrickColor.new("Really blue")
  320. obj13.Name="Decor"
  321. obj13.Parent=gun
  322. --14-Mesh
  323. obj14=Instance.new("BlockMesh")
  324. obj14.Scale=Vector3.new(0.400000006,0.200000003,0.400000006)
  325. obj14.Parent=obj13
  326. --15-BulletCase
  327. obj15=Instance.new("Part")
  328. obj15.CFrame=CFrame.new(Vector3.new(12.3420229,1.44165683,35.6482697)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  329. obj15.FormFactor=Enum.FormFactor.Custom
  330. obj15.LeftSurface=10
  331. obj15.TopSurface=10
  332. obj15.RightSurface=10
  333. obj15.Material="SmoothPlastic"
  334. obj15.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  335. obj15.FrontSurface=10
  336. obj15.BottomSurface=10
  337. obj15.BackSurface=10
  338. obj15.BrickColor=BrickColor.new("Really blue")
  339. obj15.Name="BulletCase"
  340. obj15.Parent=gun
  341. --16-Mesh
  342. obj16=Instance.new("BlockMesh")
  343. obj16.Scale=Vector3.new(0.999499977,1,1)
  344. obj16.Parent=obj15
  345. --17-Flashlight
  346. obj17=Instance.new("Part")
  347. obj17.CFrame=CFrame.new(Vector3.new(12.3420115,0.729269207,35.601902)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  348. obj17.FormFactor=Enum.FormFactor.Custom
  349. obj17.LeftSurface=10
  350. obj17.TopSurface=10
  351. obj17.RightSurface=10
  352. obj17.Material="SmoothPlastic"
  353. obj17.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  354. obj17.FrontSurface=10
  355. obj17.BottomSurface=10
  356. obj17.BackSurface=10
  357. obj17.BrickColor=BrickColor.new("Pastel yellow")
  358. obj17.Name="Flashlight"
  359. obj17.Parent=gun
  360. --18-Mesh
  361. obj18=Instance.new("CylinderMesh")
  362. obj18.Offset=Vector3.new(0,0,0.0500000007)
  363. obj18.Scale=Vector3.new(0.5,1.01999998,0.5)
  364. obj18.Parent=obj17
  365. --19-Decor
  366. obj19=Instance.new("Part")
  367. obj19.CFrame=CFrame.new(Vector3.new(12.3420143,2.1178081,35.8290215)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  368. obj19.FormFactor=Enum.FormFactor.Custom
  369. obj19.LeftSurface=10
  370. obj19.TopSurface=10
  371. obj19.RightSurface=10
  372. obj19.Material="SmoothPlastic"
  373. obj19.Size=Vector3.new(0.200000003,0.400000036,0.200000003)
  374. obj19.FrontSurface=10
  375. obj19.BottomSurface=10
  376. obj19.BackSurface=10
  377. obj19.BrickColor=BrickColor.new("Really black")
  378. obj19.Name="Decor"
  379. obj19.Parent=gun
  380. --20-Mesh
  381. obj20=Instance.new("BlockMesh")
  382. obj20.Scale=Vector3.new(0.5,0.5,1.10000002)
  383. obj20.Parent=obj19
  384. --21-Decor
  385. obj21=Instance.new("Part")
  386. obj21.CFrame=CFrame.new(Vector3.new(12.2895117,2.05304575,35.6843338)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  387. obj21.FormFactor=Enum.FormFactor.Custom
  388. obj21.LeftSurface=10
  389. obj21.TopSurface=10
  390. obj21.RightSurface=10
  391. obj21.Material="SmoothPlastic"
  392. obj21.Size=Vector3.new(0.399999976,0.200000003,0.200000003)
  393. obj21.FrontSurface=10
  394. obj21.BottomSurface=10
  395. obj21.BackSurface=10
  396. obj21.BrickColor=BrickColor.new("Really blue")
  397. obj21.Name="Decor"
  398. obj21.Parent=gun
  399. --22-Mesh
  400. obj22=Instance.new("SpecialMesh")
  401. obj22.MeshType=Enum.MeshType.Wedge
  402. obj22.Scale=Vector3.new(1,0.25,0.50999999)
  403. obj22.Parent=obj21
  404. --23-Decor
  405. obj23=Instance.new("Part")
  406. obj23.CFrame=CFrame.new(Vector3.new(12.3420172,1.41577363,35.744442)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  407. obj23.FormFactor=Enum.FormFactor.Custom
  408. obj23.LeftSurface=10
  409. obj23.TopSurface=10
  410. obj23.RightSurface=10
  411. obj23.Material="SmoothPlastic"
  412. obj23.Size=Vector3.new(0.200000003,1.60000002,0.200000003)
  413. obj23.FrontSurface=10
  414. obj23.BottomSurface=10
  415. obj23.BackSurface=10
  416. obj23.BrickColor=BrickColor.new("Really blue")
  417. obj23.Name="Decor"
  418. obj23.Parent=gun
  419. --24-Mesh
  420. obj24=Instance.new("CylinderMesh")
  421. obj24.Parent=obj23
  422. --25-ShellCaseSpawner
  423. obj25=Instance.new("Part")
  424. obj25.CFrame=CFrame.new(Vector3.new(12.3420172,1.75731552,35.6289024)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  425. obj25.FormFactor=Enum.FormFactor.Custom
  426. obj25.LeftSurface=10
  427. obj25.TopSurface=10
  428. obj25.RightSurface=10
  429. obj25.Material="SmoothPlastic"
  430. obj25.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  431. obj25.FrontSurface=10
  432. obj25.BottomSurface=10
  433. obj25.BackSurface=10
  434. obj25.Name="ShellCaseSpawner"
  435. obj25.Parent=gun
  436. --26-Mesh
  437. obj26=Instance.new("CylinderMesh")
  438. obj26.Offset=Vector3.new(0.0149999997,0,-0.0350000001)
  439. obj26.Scale=Vector3.new(0.75,1,0.75)
  440. obj26.Parent=obj25
  441. --27-Decor
  442. obj27=Instance.new("Part")
  443. obj27.CFrame=CFrame.new(Vector3.new(12.3420115,0.765501678,35.4666672)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  444. obj27.FormFactor=Enum.FormFactor.Custom
  445. obj27.LeftSurface=10
  446. obj27.TopSurface=10
  447. obj27.RightSurface=10
  448. obj27.Material="SmoothPlastic"
  449. obj27.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  450. obj27.FrontSurface=10
  451. obj27.BottomSurface=10
  452. obj27.BackSurface=10
  453. obj27.BrickColor=BrickColor.new("Really black")
  454. obj27.Name="Decor"
  455. obj27.Parent=gun
  456. --28-Mesh
  457. obj28=Instance.new("CylinderMesh")
  458. obj28.Offset=Vector3.new(0,0,0.0500000007)
  459. obj28.Scale=Vector3.new(0.5,1.01999998,0.5)
  460. obj28.Parent=obj27
  461. --29-Decor
  462. obj29=Instance.new("Part")
  463. obj29.CFrame=CFrame.new(Vector3.new(12.3920164,1.4734931,35.5290413)) * CFrame.Angles(-1.3089969158173,-1.5701057910919,-0)
  464. obj29.FormFactor=Enum.FormFactor.Custom
  465. obj29.LeftSurface=10
  466. obj29.TopSurface=10
  467. obj29.RightSurface=10
  468. obj29.Material="SmoothPlastic"
  469. obj29.Size=Vector3.new(1.60000002,0.200000003,0.200000003)
  470. obj29.FrontSurface=10
  471. obj29.BottomSurface=10
  472. obj29.BackSurface=10
  473. obj29.BrickColor=BrickColor.new("Really blue")
  474. obj29.Name="Decor"
  475. obj29.Parent=gun
  476. --30-Mesh
  477. obj30=Instance.new("SpecialMesh")
  478. obj30.MeshType=Enum.MeshType.Wedge
  479. obj30.Scale=Vector3.new(1,0.25,0.5)
  480. obj30.Parent=obj29
  481. --31-Decor
  482. obj31=Instance.new("Part")
  483. obj31.CFrame=CFrame.new(Vector3.new(12.2895117,1.18371284,35.4513969)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  484. obj31.FormFactor=Enum.FormFactor.Custom
  485. obj31.LeftSurface=10
  486. obj31.TopSurface=10
  487. obj31.RightSurface=10
  488. obj31.Material="SmoothPlastic"
  489. obj31.Size=Vector3.new(1,0.200000003,0.200000003)
  490. obj31.FrontSurface=10
  491. obj31.BottomSurface=10
  492. obj31.BackSurface=10
  493. obj31.BrickColor=BrickColor.new("Really blue")
  494. obj31.Name="Decor"
  495. obj31.Parent=gun
  496. --32-Mesh
  497. obj32=Instance.new("SpecialMesh")
  498. obj32.MeshType=Enum.MeshType.Wedge
  499. obj32.Scale=Vector3.new(1,0.25,0.50999999)
  500. obj32.Parent=obj31
  501. gun:MakeJoints()
  502. scan(gun)
  503.  
  504. local gun2 = gun:clone()
  505. gun2.Parent = char
  506.  
  507. local torsoweld = Instance.new('Weld', char)
  508. torsoweld.Part0 = torso
  509. torsoweld.Part1 = holsters.TorsoWeld
  510. torsoweld.C1 = CFrame.Angles(0,math.pi,0)
  511.  
  512. local gunweld = Instance.new('Weld', char)
  513. gunweld.Part0 = gun.BulletCase
  514. gunweld.Part1 = holsters.HolsterWeldTo
  515.  
  516. local gunweld2 = Instance.new('Weld', char)
  517. gunweld2.Part0 = gun2.BulletCase
  518. gunweld2.Part1 = holsters.HolsterWeldTo2
  519.  
  520. local bodygyro = Instance.new('BodyGyro')
  521. bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
  522. bodygyro.P = 15000
  523.  
  524. local rsc0 = rm.C0
  525. local lsc0 = lm.C0
  526. local angle = 0
  527. local anglespeed = .5
  528. local speed = .3
  529. local side = 0
  530. local Equipped = false
  531. local origneckc0 = neck.C0
  532. local origneckc1 = neck.C1
  533. local neckc0 = CFrame.new(0, 1, 0)
  534. local firing = false
  535. local pistol = 1
  536. local light = false
  537.  
  538. local gunlight = Instance.new('SpotLight', gun.Flashlight)
  539. gunlight.Range = 40
  540. gunlight.Angle = 60
  541. gunlight.Face = 'Bottom'
  542. gunlight.Shadows = true
  543. gunlight.Enabled = false
  544.  
  545. local gunlight2 = gunlight:clone()
  546. gunlight2.Parent = gun2.Flashlight
  547.  
  548. local fire = Instance.new('Sound', head)
  549. fire.SoundId = "rbxassetid://260433746"
  550. fire.Volume = 18000000
  551.  
  552. local song = Instance.new('Sound', head)
  553. song.SoundId = "rbxassetid://142653441"
  554. song.Volume = 10000000
  555. song.Looped = true
  556.  
  557. local song2 = Instance.new('Sound', head)
  558. song2.SoundId = "rbxassetid://408386283"
  559. song2.Volume = 1000000
  560. song2.Looped = true
  561.  
  562. local reload = Instance.new('Sound', head)
  563. reload.SoundId = "rbxassetid://266022905"
  564. reload.Volume = 180000
  565.  
  566. local ammo = 40
  567. local scrgui = Instance.new('ScreenGui', plrgui)
  568. scrgui.Name = 'DualGunsGui'
  569.  
  570. local ammonution = Instance.new('TextLabel', scrgui)
  571. ammonution.Size = UDim2.new(0,150,0,50)
  572. ammonution.Position = UDim2.new(1, -250, 1, -70)
  573. ammonution.BackgroundTransparency = 1
  574. ammonution.TextColor3 = Color3.new(1,1,1)
  575. ammonution.TextStrokeTransparency = .1
  576. ammonution.Text = ('| '):rep(ammo)
  577. ammonution.TextXAlignment = 'Right'
  578. ammonution.ZIndex = 2
  579. ammonution.FontSize = 'Size18'
  580.  
  581. local ammonution2 = Instance.new('TextLabel', scrgui)
  582. ammonution2.Size = UDim2.new(0,150,0,50)
  583. ammonution2.Position = UDim2.new(1, -250, 1, -70)
  584. ammonution2.BackgroundTransparency = 1
  585. ammonution2.TextColor3 = Color3.new(.5,.5,.5)
  586. ammonution2.TextStrokeTransparency = .1
  587. ammonution2.TextXAlignment = 'Right'
  588. ammonution2.Text = ('| '):rep(ammo)
  589. ammonution2.FontSize = 'Size18'
  590.  
  591. local rel = Instance.new('TextButton', scrgui)
  592. rel.Size = UDim2.new(0,500,0,250)
  593. rel.Position = UDim2.new(.5, -250, .8, -250)
  594. rel.BackgroundTransparency = 1
  595. rel.TextColor3 = Color3.new(.7,0,0)
  596. rel.Visible = false
  597. rel.Text = 'Reload (r)'
  598. rel.FontSize = 'Size24'
  599.  
  600. rel.MouseButton1Down:connect(function()
  601. if ammo >= 40 or firing then return end
  602. dontclerpneck = true
  603. firing = true
  604. local dropammo = gun.Handle:clone()
  605. dropammo:ClearAllChildren()
  606. dropammo.CanCollide = true
  607. dropammo.BrickColor = BrickColor.Black()
  608. dropammo.Parent = workspace
  609. dropammo.CFrame = gun.Handle.CFrame
  610. local dropammo2 = dropammo:clone()
  611. dropammo2.Parent = workspace
  612. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  613. game:service'Debris':AddItem(dropammo,15)
  614. game:service'Debris':AddItem(dropammo2,15)
  615. wait(.5)
  616. reload:play()
  617. for i = 1, 65 do
  618. firing = true
  619. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  620. lscf = lsc0 * CFrame.new(1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, math.rad(30), math.pi/3.2)
  621. lm.C0 = clerp(lm.C0,lscf,speed)
  622. rm.C0 = clerp(rm.C0,rscf,speed)
  623. game:service'RunService'.RenderStepped:wait()
  624. end
  625. reload:play()
  626. for i = 1, 65 do
  627. firing = true
  628. rscf = rsc0 * CFrame.new(-1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, -math.rad(30), -math.pi/3.2)
  629. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  630. lm.C0 = clerp(lm.C0,lscf,speed)
  631. rm.C0 = clerp(rm.C0,rscf,speed)
  632. game:service'RunService'.RenderStepped:wait()
  633. end
  634. dontclerpneck = false
  635. firing = false
  636. ammo = 26
  637. ammonution.Text = ('| '):rep(ammo)
  638. end)
  639. tool.Selected:connect(function(mouse)
  640. Equipped = true
  641. bodygyro.Parent = torso
  642. bodygyro.cframe = torso.CFrame
  643. rs.Parent = nil
  644. ls.Parent = nil
  645. rm.Parent = torso
  646. lm.Parent = torso
  647. neck.C0 = CFrame.new(0, 1, 0)
  648. neck.C1 = CFrame.new(0, -0.5, 0)
  649. gunweld.Part0 = gun.Handle
  650. gunweld2.Part0 = gun2.Handle
  651. gunweld.Part1 = ra
  652. gunweld2.Part1 = la
  653. gunweld.C1 = CFrame.new(0, -.8, 0)
  654. gunweld.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  655. gunweld2.C1 = CFrame.new(0, -.8, 0)
  656. gunweld2.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  657. mouse.KeyDown:connect(function(k)
  658. if k == "r" then
  659. if ammo >= 40 or firing then return end
  660. dontclerpneck = true
  661. firing = true
  662. local dropammo = gun.Handle:clone()
  663. dropammo:ClearAllChildren()
  664. dropammo.CanCollide = true
  665. dropammo.BrickColor = BrickColor.Black()
  666. dropammo.Parent = workspace
  667. dropammo.CFrame = gun.Handle.CFrame
  668. local dropammo2 = dropammo:clone()
  669. dropammo2.Parent = workspace
  670. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  671. game:service'Debris':AddItem(dropammo,15)
  672. game:service'Debris':AddItem(dropammo2,15)
  673. wait(.5)
  674. reload:play()
  675. for i = 1, 65 do
  676. firing = true
  677. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  678. lscf = lsc0 * CFrame.new(1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, math.rad(30), math.pi/3.2)
  679. lm.C0 = clerp(lm.C0,lscf,speed)
  680. rm.C0 = clerp(rm.C0,rscf,speed)
  681. game:service'RunService'.RenderStepped:wait()
  682. end
  683. reload:play()
  684. for i = 1, 65 do
  685. firing = true
  686. rscf = rsc0 * CFrame.new(-1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, -math.rad(30), -math.pi/3.2)
  687. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  688. lm.C0 = clerp(lm.C0,lscf,speed)
  689. rm.C0 = clerp(rm.C0,rscf,speed)
  690. game:service'RunService'.RenderStepped:wait()
  691. end
  692. dontclerpneck = false
  693. firing = false
  694. ammo = 40
  695. ammonution.Text = ('| '):rep(ammo)
  696. end
  697. if k == "f" then
  698. song:Play()
  699. char.Head.face.Texture = "http://www.roblox.com/asset/?id=397016154"
  700. else
  701. if k == "g" then
  702. song:Stop()
  703. char.Head.face.Texture = "http://www.roblox.com/asset/?id=56936322"
  704. else
  705. if k == "h" then
  706. song2:Play()
  707. char.Head.face.Texture = "http://www.roblox.com/asset/?id=152629683"
  708. else
  709. if k == "j" then
  710. song2:Stop()
  711. char.Head.face.Texture = "http://www.roblox.com/asset/?id=56936322"
  712. else
  713. if k == "k" then
  714. anim.walk.WalkAnim.AnimationId = "rbxassetid://619881009"
  715. humanoid.WalkSpeed = 60
  716. else
  717. if k == "l" then
  718. anim.walk.WalkAnim.AnimationId = "rbxassetid://180426354"
  719. humanoid.WalkSpeed = 25
  720. else
  721. if k == "p" then
  722. plr.Character.Humanoid.Health = (1000)
  723. plr.Character.Humanoid.MaxHealth = (1000)
  724. else
  725. if k == "u" then
  726. plr.Character.Humanoid.Health = (100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  727. plr.Character.Humanoid.MaxHealth = (1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  728. end
  729. end
  730. end
  731. end
  732. end
  733. end
  734. end
  735. end
  736. end)
  737. mouse.Button1Down:connect(function()
  738. if ammo <= 0 then
  739. local sound = Instance.new('Sound', head)
  740. sound.SoundId = "rbxassetid://260433746"
  741. sound.Volume = 2
  742. sound:play()
  743. game:service'Debris':AddItem(sound,1)
  744. end
  745. if firing or ammo <= 0 then return end
  746. ammo = ammo - 1
  747. ammonution.Text = ('| '):rep(ammo)
  748. firing = true
  749. local pa = Instance.new('Part')
  750. pa.CanCollide = false
  751. pa.Anchored = true
  752. pa.Locked = true
  753. pa.FormFactor = 'Custom'
  754. pa.Material = 'Neon'
  755. pa.BrickColor = BrickColor.new('Cyan')
  756. pa.Size = Vector3.new(.2,3,.2)
  757. Instance.new('BlockMesh', pa).Scale = Vector3.new(.2,3,.2)
  758. local thegun
  759. if pistol == 1 then
  760. thegun = gun.BulletCase
  761. elseif pistol == 2 then
  762. thegun = gun2.BulletCase
  763. end
  764. local muzzle = Instance.new('PointLight', thegun)
  765. muzzle.Range = 1211111
  766. muzzle.Color = Color3.new(0, 81, 255)
  767. game:service'Debris':AddItem(muzzle, .05)
  768. local shell = pa:clone()
  769. shell:ClearAllChildren()
  770. shell.Anchored = false
  771. shell.CFrame = thegun.Parent.ShellCaseSpawner.CFrame
  772. shell.Size = Vector3.new(.2,.5,.2)
  773. shell.Parent = workspace
  774. shell.Material = 'Neon'
  775. shell.BrickColor = BrickColor.new('Cyan')
  776. shell.CanCollide = true
  777. game:service'Debris':AddItem(shell, 5)
  778. local bulletpos = thegun.Position
  779. local bulletvelocity = (mouse.Hit.p - bulletpos).unit*15
  780. local lastbulletpos = thegun.Position
  781. fire:play()
  782. coroutine.wrap(function()
  783. while game:service'RunService'.Stepped:wait() do
  784. lastbulletpos = bulletpos
  785. bulletpos = bulletpos + bulletvelocity
  786. local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
  787. local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  788. if (torso.Position - pa.Position).magnitude > 800 then
  789. pa:Destroy()
  790. break
  791. end
  792. pa.Anchored = true
  793. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  794. if hit then
  795. local damage
  796. local sound = Instance.new('Sound', pa)
  797. sound.SoundId = "rbxassetid://166423137"
  798. sound.Pitch = 1.2+math.random()/3
  799. sound.Volume = 1
  800. sound:play()
  801. pa:Destroy()
  802. hit:Destroy()
  803. game:service'Debris':AddItem(sound,4)
  804. local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  805. local hitz, enz = workspace:FindPartOnRay(ray, char)
  806. local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  807. if hum then
  808. damage = math.random(40,90)
  809. hum:TakeDamage(damage)
  810. end
  811. local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  812. if hum then
  813. damage = math.random(40,90)
  814. hum:TakeDamage(damage)
  815. end
  816. break
  817. end
  818. pa.Anchored = true
  819. pa.Parent = char
  820. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  821. end
  822. end)()
  823.  
  824. if pistol == 1 then
  825. pistol = 2
  826. for i = 1, 4 do
  827. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.new(0, 0, .5) * CFrame.Angles(math.pi/1.5 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  828. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  829. lm.C0 = clerp(lm.C0,lscf,speed)
  830. rm.C0 = clerp(rm.C0,rscf,speed)
  831. game:service'RunService'.RenderStepped:wait()
  832. end
  833. elseif pistol == 2 then
  834. for i = 1, 4 do
  835. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  836. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.new(0, 0, .5) * CFrame.Angles(math.pi/1.5 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  837. lm.C0 = clerp(lm.C0,lscf,speed)
  838. rm.C0 = clerp(rm.C0,rscf,speed)
  839. game:service'RunService'.RenderStepped:wait()
  840. end
  841. pistol = 1
  842. end
  843. firing = false
  844. end)
  845. end)
  846. tool.Deselected:connect(function()
  847. Equipped = false
  848. rm.Parent = nil
  849. lm.Parent = nil
  850. rs.Parent = torso
  851. ls.Parent = torso
  852. neck.C0 = origneckc0
  853. neck.C1 = origneckc1
  854. lm.C0 = lsc0
  855. rm.C0 = rsc0
  856. gunweld.Part0 = gun.BulletCase
  857. gunweld.Part1 = holsters.HolsterWeldTo
  858. gunweld.C0 = CFrame.new()
  859. gunweld.C1 = CFrame.new()
  860. gunweld2.Part0 = gun2.BulletCase
  861. gunweld2.Part1 = holsters.HolsterWeldTo2
  862. gunweld2.C0 = CFrame.new()
  863. gunweld2.C1 = CFrame.new()
  864. bodygyro.Parent = nil
  865. end)
  866.  
  867. game:service'RunService'.RenderStepped:connect(function()
  868. if Equipped then
  869. if ammo <= 0 then
  870. rel.Visible = true
  871. else
  872. rel.Visible = false
  873. end
  874. if light then
  875. gunlight.Enabled = true
  876. gunlight2.Enabled = true
  877. else
  878. gunlight.Enabled = false
  879. gunlight2.Enabled = false
  880. end
  881. angle = angle + (0.05+math.random()/20)
  882. local rscf = rsc0
  883. local lscf = lsc0
  884. local ncf = neckc0
  885. local rmx,rmy,rmz = rm.C0:toEulerAnglesXYZ()
  886. if rmz >= 1 then
  887. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  888. elseif rmz <= -1 then
  889. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  890. end
  891. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  892. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  893. ncf = neckc0 * CFrame.new(Vector3.new(), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p))
  894. if not firing then
  895. lm.C0 = clerp(lm.C0,lscf,speed)
  896. rm.C0 = clerp(rm.C0,rscf,speed)
  897. end
  898. if not dontclerpneck then
  899. neck.C0 = clerp(neck.C0,ncf,speed)
  900. end
  901. end
  902. if light and not Equipped then
  903. gunlight.Enabled = false
  904. gunlight2.Enabled = false
  905. end
  906. end)
  907.  
  908. chatted = false
  909.  
  910. a = Instance.new("BillboardGui", plr.Character:FindFirstChild("Head"))
  911. a.ExtentsOffset = Vector3.new(1,0,0)
  912. a.Size = UDim2.new(1,0,1,0)
  913. a.AlwaysOnTop = true
  914. a.Enabled = true
  915. b = Instance.new("ImageLabel", a)
  916. b.BackgroundTransparency = 1
  917. b.BorderSizePixel = 0
  918. b.Image = "http://www.roblox.com/asset/?id=243503908"
  919. b.ImageTransparency = 0.1
  920. b.Position = UDim2.new(0.2,0,0.05,0)
  921. b.Size = UDim2.new(5,0,1.2,0)
  922. b.Visible = false
  923. c = Instance.new("TextLabel", b)
  924. c.BackgroundTransparency = 1
  925. c.BorderSizePixel = 0
  926. c.Position = UDim2.new(0.1,0,0)
  927. c.Size = UDim2.new(0.5,0,0.4,0)
  928. c.ZIndex = 2
  929. c.Font = "SourceSans"
  930. c.FontSize = "Size18"
  931. c.Text = plr.Name..":"
  932. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  933. c.TextXAlignment = "Left"
  934. c.TextYAlignment = "Center"
  935. d = Instance.new("TextLabel", b)
  936. d.BackgroundTransparency = 1
  937. d.BorderSizePixel = 0
  938. d.Position = UDim2.new(0.1,0,0.4,0)
  939. d.Size = UDim2.new(0.9,0,0.6,0)
  940. d.ZIndex = 2
  941. d.Font = "SourceSans"
  942. d.FontSize = "Size18"
  943. d.Text = ""
  944. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  945. d.TextXAlignment = "Left"
  946. d.TextYAlignment = "Top"
  947. d.TextWrapped = true
  948.  
  949.  
  950. function message(message)
  951. repeat wait() until chatted == false
  952. chatted = true
  953. b.Visible = true
  954. if string.find(message,"-r") ~=nil then
  955. for i=1,string.len(message),1 do
  956. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  957. d.Text = string.sub(message,1,i)
  958. wait(0.1)
  959. end
  960. elseif string.find(message,"-b") ~=nil then
  961. for i=1,string.len(message),1 do
  962. d.Text = string.sub(string.byte(message),1,i)
  963. wait(0.05)
  964. end
  965. else
  966. for i=1,string.len(message),1 do
  967. d.Text = string.sub(message,1,i)
  968. wait(0.05)
  969. end
  970. end
  971. wait(2)
  972. if string.find(message,"-t") ~=nil then
  973. b.Visible = true
  974. else
  975. b.Visible = false
  976. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  977. end
  978. chatted = false
  979. end
  980.  
  981.  
  982.  
  983.  
  984. plr.Chatted:connect(message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement