deadropz

freeze

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