Advertisement
deadropz

Untitled

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