Advertisement
deadropz

Untitled

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