Advertisement
antgame11

Untitled

Mar 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.55 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Snap2 = Instance.new("Snap")
  22. Part3 = Instance.new("Part")
  23. Snap4 = Instance.new("Snap")
  24. Part5 = Instance.new("Part")
  25. Tool6 = Instance.new("Tool")
  26. Model7 = Instance.new("Model")
  27. StringValue8 = Instance.new("StringValue")
  28. StringValue9 = Instance.new("StringValue")
  29. StringValue10 = Instance.new("StringValue")
  30. StringValue11 = Instance.new("StringValue")
  31. StringValue12 = Instance.new("StringValue")
  32. StringValue13 = Instance.new("StringValue")
  33. StringValue14 = Instance.new("StringValue")
  34. Part15 = Instance.new("Part")
  35. BlockMesh16 = Instance.new("BlockMesh")
  36. Part17 = Instance.new("Part")
  37. CylinderMesh18 = Instance.new("CylinderMesh")
  38. Part19 = Instance.new("Part")
  39. BlockMesh20 = Instance.new("BlockMesh")
  40. Part21 = Instance.new("Part")
  41. BlockMesh22 = Instance.new("BlockMesh")
  42. Sound23 = Instance.new("Sound")
  43. Script24 = Instance.new("Script")
  44. BoolValue25 = Instance.new("BoolValue")
  45. Sound26 = Instance.new("Sound")
  46. BoolValue27 = Instance.new("BoolValue")
  47. Script28 = Instance.new("Script")
  48. Part29 = Instance.new("Part")
  49. CylinderMesh30 = Instance.new("CylinderMesh")
  50. LocalScript31 = Instance.new("LocalScript")
  51. BoolValue32 = Instance.new("BoolValue")
  52. LocalScript33 = Instance.new("LocalScript")
  53. GuiMain34 = Instance.new("GuiMain")
  54. Frame35 = Instance.new("Frame")
  55. TextLabel36 = Instance.new("TextLabel")
  56. TextLabel37 = Instance.new("TextLabel")
  57. TextLabel38 = Instance.new("TextLabel")
  58. TextLabel39 = Instance.new("TextLabel")
  59. TextLabel40 = Instance.new("TextLabel")
  60. TextLabel41 = Instance.new("TextLabel")
  61. TextLabel42 = Instance.new("TextLabel")
  62. TextLabel43 = Instance.new("TextLabel")
  63. ObjectValue44 = Instance.new("ObjectValue")
  64. LocalScript45 = Instance.new("LocalScript")
  65. LocalScript46 = Instance.new("LocalScript")
  66. Script47 = Instance.new("Script")
  67. Script48 = Instance.new("Script")
  68. ObjectValue49 = Instance.new("ObjectValue")
  69. Script50 = Instance.new("Script")
  70. Part51 = Instance.new("Part")
  71. Snap52 = Instance.new("Snap")
  72. Part53 = Instance.new("Part")
  73. Snap54 = Instance.new("Snap")
  74. Part55 = Instance.new("Part")
  75. Snap56 = Instance.new("Snap")
  76. Snap57 = Instance.new("Snap")
  77. Snap58 = Instance.new("Snap")
  78. Snap59 = Instance.new("Snap")
  79. Model0.Parent = mas
  80. Model0.PrimaryPart = Part55
  81. Part1.Name = "Smooth Block Model"
  82. Part1.Parent = Model0
  83. Part1.CFrame = CFrame.new(-9.13996601, 3.00014806, 61.2799759, -1.04807905e-05, 1.26416526e-05, 0.999999702, -2.30949372e-05, 1.00000513, -1.26419845e-05, -1.00000489, -2.30949372e-05, -1.04805531e-05)
  84. Part1.Orientation = Vector3.new(0, 90, 0)
  85. Part1.Position = Vector3.new(-9.13996601, 3.00014806, 61.2799759)
  86. Part1.Rotation = Vector3.new(129.660004, 89.9599991, -129.660004)
  87. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  88. Part1.Transparency = 0.30000001192093
  89. Part1.Size = Vector3.new(3, 6, 1)
  90. Part1.Anchored = true
  91. Part1.BrickColor = BrickColor.new("Black")
  92. Part1.brickColor = BrickColor.new("Black")
  93. Snap2.Parent = Part1
  94. Snap2.C0 = CFrame.new(0, -3, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  95. Snap2.C1 = CFrame.new(-9.14000416, 10.0001326, 61.2800446, -1.04807905e-05, 0.999999702, -1.26416526e-05, -2.30949372e-05, -1.26419845e-05, -1.00000513, -1.00000489, -1.04805531e-05, 2.30949372e-05)
  96. Snap2.Part0 = Part1
  97. Snap2.Part1 = nil
  98. Snap2.part1 = nil
  99. Part3.Name = "Smooth Block Model"
  100. Part3.Parent = Model0
  101. Part3.CFrame = CFrame.new(-8.13999176, 3.00006104, 59.2799492, -1, 0, 0, -0, 1.00000525, 1.86264515e-08, 0, 1.86264515e-08, -1.00000525)
  102. Part3.Orientation = Vector3.new(0, 180, 0)
  103. Part3.Position = Vector3.new(-8.13999176, 3.00006104, 59.2799492)
  104. Part3.Rotation = Vector3.new(-180, 0, -180)
  105. Part3.Color = Color3.new(0.105882, 0.164706, 0.207843)
  106. Part3.Transparency = 0.30000001192093
  107. Part3.Size = Vector3.new(3, 6, 1)
  108. Part3.Anchored = true
  109. Part3.BrickColor = BrickColor.new("Black")
  110. Part3.brickColor = BrickColor.new("Black")
  111. Snap4.Parent = Part3
  112. Snap4.C0 = CFrame.new(0, -3, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  113. Snap4.C1 = CFrame.new(-8.13999176, 10.0000458, 59.2799492, -1, 0, 0, 0, 1.86264515e-08, -1.00000525, 0, -1.00000525, -1.86264515e-08)
  114. Snap4.Part0 = Part3
  115. Snap4.Part1 = nil
  116. Snap4.part1 = nil
  117. Part5.Name = "PUT THE WEAPON IN THIS BRICK"
  118. Part5.Parent = Model0
  119. Part5.CFrame = CFrame.new(-10.1402264, 2.70526695, 61.2819405, 0.999999046, -3.05180438e-05, -2.3259763e-09, 3.05181748e-05, 1.00000525, 0.000152569264, -2.32751063e-09, -0.000152569264, 1.00000429)
  120. Part5.Orientation = Vector3.new(-0.00999999978, 0, 0)
  121. Part5.Position = Vector3.new(-10.1402264, 2.70526695, 61.2819405)
  122. Part5.Rotation = Vector3.new(-0.00999999978, 0, 0)
  123. Part5.Color = Color3.new(0.94902, 0.952941, 0.952941)
  124. Part5.Size = Vector3.new(1, 1.20000005, 5)
  125. Part5.Anchored = true
  126. Part5.BrickColor = BrickColor.new("White")
  127. Part5.TopSurface = Enum.SurfaceType.Smooth
  128. Part5.brickColor = BrickColor.new("White")
  129. Tool6.Name = "Radio"
  130. Tool6.Parent = Part5
  131. Tool6.CanBeDropped = false
  132. Tool6.Grip = CFrame.new(0, -0.200000003, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  133. Tool6.GripForward = Vector3.new(1, -0, -0)
  134. Tool6.GripPos = Vector3.new(0, -0.200000003, 0)
  135. Tool6.GripRight = Vector3.new(0, 0, 1)
  136. Tool6.ToolTip = "Note: To talk, click once. If the light is green - it's on. If it's red - it's off. "
  137. Model7.Name = "OfficerRadioSystem"
  138. Model7.Parent = Tool6
  139. StringValue8.Name = "Line1"
  140. StringValue8.Parent = Model7
  141. StringValue9.Name = "Line2"
  142. StringValue9.Parent = Model7
  143. StringValue10.Name = "Line3"
  144. StringValue10.Parent = Model7
  145. StringValue11.Name = "Line4"
  146. StringValue11.Parent = Model7
  147. StringValue12.Name = "Line5"
  148. StringValue12.Parent = Model7
  149. StringValue13.Name = "Line6"
  150. StringValue13.Parent = Model7
  151. StringValue14.Name = "Line7"
  152. StringValue14.Parent = Model7
  153. Part15.Parent = Tool6
  154. Part15.CFrame = CFrame.new(-7.79983997, 4.60569477, 61.4399681, -0.04736498, -0.00813900214, 0.998844564, 0, 0.99996686, 0.00814814679, -0.998877645, 0.000385936815, -0.0473634154)
  155. Part15.Orientation = Vector3.new(-0.469999999, 92.7099991, 0)
  156. Part15.Position = Vector3.new(-7.79983997, 4.60569477, 61.4399681)
  157. Part15.Rotation = Vector3.new(-170.240005, 87.25, 170.25)
  158. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  159. Part15.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  160. Part15.Anchored = true
  161. Part15.BottomSurface = Enum.SurfaceType.Smooth
  162. Part15.BrickColor = BrickColor.new("Really black")
  163. Part15.CanCollide = false
  164. Part15.TopSurface = Enum.SurfaceType.Smooth
  165. Part15.brickColor = BrickColor.new("Really black")
  166. Part15.FormFactor = Enum.FormFactor.Custom
  167. Part15.formFactor = Enum.FormFactor.Custom
  168. BlockMesh16.Parent = Part15
  169. BlockMesh16.Offset = Vector3.new(0, -0.020833334, 0)
  170. BlockMesh16.Scale = Vector3.new(0.833333373, 0.208333343, 0.833333373)
  171. Part17.Parent = Tool6
  172. Part17.CFrame = CFrame.new(-7.80068398, 4.70906305, 61.4400063, -0.04736498, -0.00813900214, 0.998844564, 0, 0.99996686, 0.00814814679, -0.998877645, 0.000385936815, -0.0473634154)
  173. Part17.Orientation = Vector3.new(-0.469999999, 92.7099991, 0)
  174. Part17.Position = Vector3.new(-7.80068398, 4.70906305, 61.4400063)
  175. Part17.Rotation = Vector3.new(-170.240005, 87.25, 170.25)
  176. Part17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  177. Part17.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  178. Part17.Anchored = true
  179. Part17.BottomSurface = Enum.SurfaceType.Smooth
  180. Part17.BrickColor = BrickColor.new("Really black")
  181. Part17.CanCollide = false
  182. Part17.TopSurface = Enum.SurfaceType.Smooth
  183. Part17.brickColor = BrickColor.new("Really black")
  184. Part17.FormFactor = Enum.FormFactor.Custom
  185. Part17.formFactor = Enum.FormFactor.Custom
  186. CylinderMesh18.Parent = Part17
  187. CylinderMesh18.Offset = Vector3.new(0, 0.416666657, 0)
  188. CylinderMesh18.Scale = Vector3.new(0.0833333358, 8.33333397, 0.0833333358)
  189. Part19.Parent = Tool6
  190. Part19.CFrame = CFrame.new(-7.8068428, 4.37647104, 61.2528267, 0.00813499931, -0.0473649912, 0.998844504, -0.99996686, 1.25148097e-06, 0.00814419892, -0.000386999949, -0.998877645, -0.0473634116)
  191. Part19.Orientation = Vector3.new(-0.469999999, 92.7099991, -90)
  192. Part19.Position = Vector3.new(-7.8068428, 4.37647104, 61.2528267)
  193. Part19.Rotation = Vector3.new(-170.240005, 87.25, 80.25)
  194. Part19.Color = Color3.new(0.388235, 0.372549, 0.384314)
  195. Part19.Size = Vector3.new(0.25, 0.200000003, 0.200000003)
  196. Part19.Anchored = true
  197. Part19.BottomSurface = Enum.SurfaceType.Smooth
  198. Part19.BrickColor = BrickColor.new("Dark stone grey")
  199. Part19.CanCollide = false
  200. Part19.TopSurface = Enum.SurfaceType.Smooth
  201. Part19.brickColor = BrickColor.new("Dark stone grey")
  202. Part19.FormFactor = Enum.FormFactor.Custom
  203. Part19.formFactor = Enum.FormFactor.Custom
  204. BlockMesh20.Parent = Part19
  205. BlockMesh20.Offset = Vector3.new(0, -0.020833334, 0)
  206. BlockMesh20.Scale = Vector3.new(1, 0.208333343, 0.833333373)
  207. Part21.Name = "Handle"
  208. Part21.Parent = Tool6
  209. Part21.CFrame = CFrame.new(-7.78771496, 4.08392191, 61.6064453, -0.04736498, -0.00813900214, 0.998844564, 0, 0.99996686, 0.00814814679, -0.998877645, 0.000385936815, -0.0473634154)
  210. Part21.Orientation = Vector3.new(-0.469999999, 92.7099991, 0)
  211. Part21.Position = Vector3.new(-7.78771496, 4.08392191, 61.6064453)
  212. Part21.Rotation = Vector3.new(-170.240005, 87.25, 170.25)
  213. Part21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  214. Part21.Size = Vector3.new(0.666666687, 1, 0.333333343)
  215. Part21.Anchored = true
  216. Part21.BottomSurface = Enum.SurfaceType.Smooth
  217. Part21.BrickColor = BrickColor.new("Really black")
  218. Part21.CanCollide = false
  219. Part21.TopSurface = Enum.SurfaceType.Smooth
  220. Part21.brickColor = BrickColor.new("Really black")
  221. Part21.FormFactor = Enum.FormFactor.Custom
  222. Part21.formFactor = Enum.FormFactor.Custom
  223. BlockMesh22.Parent = Part21
  224. Sound23.Name = "EquipSound"
  225. Sound23.Parent = Part21
  226. Sound23.EmitterSize = 0
  227. Sound23.MinDistance = 0
  228. Sound23.Pitch = 1.1499999761581
  229. Sound23.PlaybackSpeed = 1.1499999761581
  230. Sound23.SoundId = "http://roblox.com/asset/?id=10209636"
  231. Sound23.Volume = 0
  232. Script24.Name = "SoundScript"
  233. Script24.Parent = Sound23
  234. table.insert(cors,sandbox(Script24,function()
  235. --ToolSoundScript V1.2
  236. --Mark901
  237. wait(0.5)
  238.  
  239. local Sound = script.Parent --Defines Sound
  240. local Bool = Sound.Run --BoolValue activated by outside script to request sound
  241.  
  242.  
  243. function Play()
  244. wait()
  245. if Bool.Value == true then
  246. Sound:Play() --Plays the sound
  247. wait()
  248. Bool.Value = false
  249. end
  250. end
  251.  
  252.  
  253. Bool.Changed:connect(Play)
  254. end))
  255. BoolValue25.Name = "Run"
  256. BoolValue25.Parent = Sound23
  257. Sound26.Name = "Alert"
  258. Sound26.Parent = Part21
  259. Sound26.EmitterSize = 0
  260. Sound26.MinDistance = 0
  261. Sound26.Pitch = 0.69999998807907
  262. Sound26.PlaybackSpeed = 0.69999998807907
  263. Sound26.SoundId = "http://www.roblox.com/asset/?id=28518380"
  264. Sound26.Volume = 0
  265. BoolValue27.Name = "Run"
  266. BoolValue27.Parent = Sound26
  267. Script28.Name = "SoundScript"
  268. Script28.Parent = Sound26
  269. table.insert(cors,sandbox(Script28,function()
  270. --ToolSoundScript V1.2
  271. --Mark901
  272. wait(0.5)
  273.  
  274. local Sound = script.Parent --Defines Sound
  275. local Bool = Sound.Run --BoolValue activated by outside script to request sound
  276.  
  277.  
  278. function Play()
  279. wait()
  280. if Bool.Value == true then
  281. Sound:Play() --Plays the sound
  282. wait()
  283. Bool.Value = false
  284. end
  285. end
  286.  
  287.  
  288. Bool.Changed:connect(Play)
  289. end))
  290. Part29.Name = "Light"
  291. Part29.Parent = Tool6
  292. Part29.CFrame = CFrame.new(-7.78402996, 4.60569477, 61.7734566, 0.04736498, -0.00813900214, -0.998844564, 0, 0.99996686, -0.00814814679, 0.998877645, 0.000385936815, 0.0473634154)
  293. Part29.Orientation = Vector3.new(0.469999999, -87.2900009, 0)
  294. Part29.Position = Vector3.new(-7.78402996, 4.60569477, 61.7734566)
  295. Part29.Rotation = Vector3.new(9.76000023, -87.25, 9.75)
  296. Part29.Color = Color3.new(1, 0, 0)
  297. Part29.Transparency = 0.40000000596046
  298. Part29.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  299. Part29.Anchored = true
  300. Part29.BottomSurface = Enum.SurfaceType.Smooth
  301. Part29.BrickColor = BrickColor.new("Really red")
  302. Part29.CanCollide = false
  303. Part29.Reflectance = 0.10000000149012
  304. Part29.TopSurface = Enum.SurfaceType.Smooth
  305. Part29.brickColor = BrickColor.new("Really red")
  306. Part29.FormFactor = Enum.FormFactor.Custom
  307. Part29.formFactor = Enum.FormFactor.Custom
  308. CylinderMesh30.Parent = Part29
  309. CylinderMesh30.Offset = Vector3.new(0, -0.020833334, 0)
  310. CylinderMesh30.Scale = Vector3.new(0.50000006, 0.208333343, 0.50000006)
  311. LocalScript31.Name = "WeldScript"
  312. LocalScript31.Parent = Tool6
  313. table.insert(cors,sandbox(LocalScript31,function()
  314. local Tool = script.Parent
  315. wait(0.2)
  316.  
  317.  
  318. function CreateWeld(x,y)
  319. local W = Instance.new("Weld")
  320. W.Part0 = x
  321. W.Part1 = y
  322. local CJ = CFrame.new(x.Position)
  323. local C0 = x.CFrame:inverse()*CJ
  324. local C1 = y.CFrame:inverse()*CJ
  325. W.C0 = C0
  326. W.C1 = C1
  327. W.Parent = x
  328. end
  329.  
  330. function Weld(A)
  331. if A.className == "Part" then
  332. CreateWeld(Tool.Handle, A)
  333. A.Anchored = false
  334. else
  335. local C = A:GetChildren()
  336. for i=1, #C do
  337. Weld(C[i])
  338. end
  339. end
  340. end
  341.  
  342. function Anchor(D)
  343. if D.className == "Part" then
  344. D.Anchored = true
  345. else
  346. local E = D:GetChildren()
  347. for i=1, #E do
  348. Anchor(E[i])
  349. end
  350. end
  351. end
  352.  
  353. function Equipped()
  354. Weld(Tool)
  355. end
  356.  
  357. function Unequipped()
  358. wait()
  359. if script:IsDescendantOf(game:GetService("Players")) == true then
  360. Anchor(Tool)
  361. wait()
  362. local B = Tool.Handle:GetChildren()
  363. for i = 1, #B do
  364. if B[i].className == "Weld" then
  365. B[i]:Remove()
  366. end
  367. end
  368. wait()
  369. Weld(Tool)
  370. end
  371. end
  372.  
  373.  
  374. Tool.Equipped:connect(Equipped)
  375. Tool.Unequipped:connect(Unequipped)
  376. --Equipped()
  377. Weld(Tool)
  378. end))
  379. BoolValue32.Name = "On"
  380. BoolValue32.Parent = Tool6
  381. LocalScript33.Name = "RadioScript"
  382. LocalScript33.Parent = Tool6
  383. table.insert(cors,sandbox(LocalScript33,function()
  384. wait(0.2)
  385. local Tool = script.Parent
  386. local ToolPart = Tool:GetChildren()
  387. local Handle = Tool.Handle
  388. local OriginGUI = script.OfficerRadio:Clone()
  389. wait()
  390. script.OfficerRadio:Remove()
  391. if game.Workspace:findFirstChild("OfficerRadioSystem") == nil then
  392. Tool.OfficerRadioSystem:Clone().Parent = game.Workspace
  393. end
  394. wait()
  395. Tool.OfficerRadioSystem:Remove()
  396.  
  397.  
  398. function Equip(mouse)
  399. local Character = Tool.Parent
  400. if Character:findFirstChild("Humanoid") == nil then return end
  401. if Character.Humanoid.Health < 0.01 then return end
  402. if game:GetService("Players"):GetPlayerFromCharacter(Character) == nil then return end
  403. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  404. Tool.Character.Value = Character
  405. mouse.Button1Down:connect(Toggle)
  406. mouse.KeyDown:connect(onKeyDown)
  407. Handle.Alert.Volume = 0
  408. Handle.Alert:Stop()
  409. Handle.EquipSound:Stop()
  410. Handle.EquipSound.Volume = 1
  411. Handle.EquipSound.Run.Value = true
  412. if Player.PlayerGui:findFirstChild(OriginGUI.Name) == nil then
  413. GUI = OriginGUI:Clone()
  414. GUI.Tool.Value = Tool
  415. GUI.RadioGUIScript.Disabled = false
  416. GUI.UpdateScript.Disabled = false
  417. GUI.Parent = Player.PlayerGui
  418. end
  419. end
  420.  
  421. function Unequip(mouse)
  422. local Character = Tool.Character.Value
  423. if Character:findFirstChild("Humanoid") == nil then return end
  424. if Tool:IsDescendantOf(game.Workspace) == true then
  425. Tool.Character.Value = nil
  426. end
  427. Handle.Alert.Volume = 0
  428. Handle.Alert:Stop()
  429. Handle.EquipSound.Volume = 0
  430. Handle.EquipSound:Stop()
  431. Tool.On.Value = false
  432. Tool.Light.BrickColor = BrickColor.new("Really red")
  433. SetCollide()
  434. end
  435.  
  436. function Toggle()
  437. if Tool.On.Value == false then
  438. Tool.On.Value = true
  439. Tool.Light.BrickColor = BrickColor.new("Lime green")
  440. elseif Tool.On.Value == true then
  441. Tool.On.Value = false
  442. Tool.Light.BrickColor = BrickColor.new("Really red")
  443. end
  444. Handle.Alert.Volume = 0.4
  445. Handle.Alert.Run.Value = true
  446. end
  447.  
  448. --[[
  449. function onKeyDown(key)
  450. local Character = Tool.Parent
  451. if Character:findFirstChild("Humanoid") == nil then return end
  452. if game:GetService("Players"):GetPlayerFromCharacter(Character) == nil then return end
  453. local Humanoid = Character.Humanoid
  454. if Humanoid.Health < 0.01 then return end
  455.  
  456. if key == "" then
  457. end
  458. end
  459. ]]
  460. function SetCollide()
  461. if Tool:IsDescendantOf(game.Workspace) == true then
  462. Tool.On.Value = false
  463. Tool.Light.BrickColor = BrickColor.new("Really red")
  464. for i = 1, #ToolPart do
  465. if ToolPart[i].className == "Part" then
  466. if ToolPart[i]:findFirstChild("Collide") ~= nil then
  467. if ToolPart[i]["Collide"].Value == false then
  468. ToolPart[i].CanCollide = false
  469. end
  470. else
  471. ToolPart[i].CanCollide = true
  472. end
  473. end
  474. end
  475. end
  476. if Tool:IsDescendantOf(game:GetService("Players")) == true then
  477. for i = 1, #ToolPart do
  478. if ToolPart[i].className == "Part" then
  479. ToolPart[i].CanCollide = false
  480. end
  481. end
  482. end
  483. end
  484.  
  485.  
  486. Tool.Equipped:connect(Equip)
  487. Tool.Unequipped:connect(Unequip)
  488. end))
  489. GuiMain34.Name = "OfficerRadio"
  490. GuiMain34.Parent = LocalScript33
  491. GuiMain34.DisplayOrder = 2147483647
  492. Frame35.Parent = GuiMain34
  493. Frame35.Position = UDim2.new(0.344399989, 0, 0.189989999, 0)
  494. Frame35.Size = UDim2.new(-0.349999994, 0, -0.25, 0)
  495. Frame35.BackgroundColor = BrickColor.new("Really black")
  496. Frame35.BackgroundColor3 = Color3.new(0, 0, 0)
  497. Frame35.BorderColor = BrickColor.new("Really black")
  498. Frame35.BorderColor3 = Color3.new(0, 0, 0)
  499. Frame35.BorderSizePixel = 0
  500. Frame35.Style = Enum.FrameStyle.DropShadow
  501. TextLabel36.Name = "Title"
  502. TextLabel36.Parent = Frame35
  503. TextLabel36.Size = UDim2.new(1, 0, 0.200000003, 0)
  504. TextLabel36.Active = true
  505. TextLabel36.BackgroundColor = BrickColor.new("Institutional white")
  506. TextLabel36.BackgroundColor3 = Color3.new(1, 1, 1)
  507. TextLabel36.BackgroundTransparency = 0.80000001192093
  508. TextLabel36.BorderColor = BrickColor.new("Institutional white")
  509. TextLabel36.BorderColor3 = Color3.new(1, 1, 1)
  510. TextLabel36.Font = Enum.Font.ArialBold
  511. TextLabel36.FontSize = Enum.FontSize.Size24
  512. TextLabel36.Text = "TRCPD Radio Network"
  513. TextLabel36.TextColor = BrickColor.new("Institutional white")
  514. TextLabel36.TextColor3 = Color3.new(1, 1, 1)
  515. TextLabel36.TextScaled = true
  516. TextLabel36.TextSize = 24
  517. TextLabel36.TextTransparency = 0.20000000298023
  518. TextLabel36.TextWrap = true
  519. TextLabel36.TextWrapped = true
  520. TextLabel37.Name = "Line1"
  521. TextLabel37.Parent = Frame35
  522. TextLabel37.Position = UDim2.new(0, 0, 0.25, 0)
  523. TextLabel37.Size = UDim2.new(1, 0, 0.0799999982, 0)
  524. TextLabel37.BackgroundColor = BrickColor.new("Really black")
  525. TextLabel37.BackgroundColor3 = Color3.new(0, 0, 0)
  526. TextLabel37.BackgroundTransparency = 0.80000001192093
  527. TextLabel37.BorderColor = BrickColor.new("Institutional white")
  528. TextLabel37.BorderColor3 = Color3.new(1, 1, 1)
  529. TextLabel37.Font = Enum.Font.ArialBold
  530. TextLabel37.Text = ""
  531. TextLabel37.TextColor = BrickColor.new("Institutional white")
  532. TextLabel37.TextColor3 = Color3.new(1, 1, 1)
  533. TextLabel37.TextScaled = true
  534. TextLabel37.TextTransparency = 0.20000000298023
  535. TextLabel37.TextWrap = true
  536. TextLabel37.TextWrapped = true
  537. TextLabel37.TextXAlignment = Enum.TextXAlignment.Left
  538. TextLabel38.Name = "Line2"
  539. TextLabel38.Parent = Frame35
  540. TextLabel38.Position = UDim2.new(0, 0, 0.349999994, 0)
  541. TextLabel38.Size = UDim2.new(1, 0, 0.0799999982, 0)
  542. TextLabel38.BackgroundColor = BrickColor.new("Really black")
  543. TextLabel38.BackgroundColor3 = Color3.new(0, 0, 0)
  544. TextLabel38.BackgroundTransparency = 0.80000001192093
  545. TextLabel38.BorderColor = BrickColor.new("Institutional white")
  546. TextLabel38.BorderColor3 = Color3.new(1, 1, 1)
  547. TextLabel38.Font = Enum.Font.ArialBold
  548. TextLabel38.Text = ""
  549. TextLabel38.TextColor = BrickColor.new("Institutional white")
  550. TextLabel38.TextColor3 = Color3.new(1, 1, 1)
  551. TextLabel38.TextScaled = true
  552. TextLabel38.TextTransparency = 0.20000000298023
  553. TextLabel38.TextWrap = true
  554. TextLabel38.TextWrapped = true
  555. TextLabel38.TextXAlignment = Enum.TextXAlignment.Left
  556. TextLabel39.Name = "Line3"
  557. TextLabel39.Parent = Frame35
  558. TextLabel39.Position = UDim2.new(0, 0, 0.449999988, 0)
  559. TextLabel39.Size = UDim2.new(1, 0, 0.0799999982, 0)
  560. TextLabel39.BackgroundColor = BrickColor.new("Really black")
  561. TextLabel39.BackgroundColor3 = Color3.new(0, 0, 0)
  562. TextLabel39.BackgroundTransparency = 0.80000001192093
  563. TextLabel39.BorderColor = BrickColor.new("Institutional white")
  564. TextLabel39.BorderColor3 = Color3.new(1, 1, 1)
  565. TextLabel39.Font = Enum.Font.ArialBold
  566. TextLabel39.Text = ""
  567. TextLabel39.TextColor = BrickColor.new("Institutional white")
  568. TextLabel39.TextColor3 = Color3.new(1, 1, 1)
  569. TextLabel39.TextScaled = true
  570. TextLabel39.TextTransparency = 0.20000000298023
  571. TextLabel39.TextWrap = true
  572. TextLabel39.TextWrapped = true
  573. TextLabel39.TextXAlignment = Enum.TextXAlignment.Left
  574. TextLabel40.Name = "Line4"
  575. TextLabel40.Parent = Frame35
  576. TextLabel40.Position = UDim2.new(0, 0, 0.550000012, 0)
  577. TextLabel40.Size = UDim2.new(1, 0, 0.0799999982, 0)
  578. TextLabel40.BackgroundColor = BrickColor.new("Really black")
  579. TextLabel40.BackgroundColor3 = Color3.new(0, 0, 0)
  580. TextLabel40.BackgroundTransparency = 0.80000001192093
  581. TextLabel40.BorderColor = BrickColor.new("Institutional white")
  582. TextLabel40.BorderColor3 = Color3.new(1, 1, 1)
  583. TextLabel40.Font = Enum.Font.ArialBold
  584. TextLabel40.Text = ""
  585. TextLabel40.TextColor = BrickColor.new("Institutional white")
  586. TextLabel40.TextColor3 = Color3.new(1, 1, 1)
  587. TextLabel40.TextScaled = true
  588. TextLabel40.TextTransparency = 0.20000000298023
  589. TextLabel40.TextWrap = true
  590. TextLabel40.TextWrapped = true
  591. TextLabel40.TextXAlignment = Enum.TextXAlignment.Left
  592. TextLabel41.Name = "Line5"
  593. TextLabel41.Parent = Frame35
  594. TextLabel41.Position = UDim2.new(0, 0, 0.649999976, 0)
  595. TextLabel41.Size = UDim2.new(1, 0, 0.0799999982, 0)
  596. TextLabel41.BackgroundColor = BrickColor.new("Really black")
  597. TextLabel41.BackgroundColor3 = Color3.new(0, 0, 0)
  598. TextLabel41.BackgroundTransparency = 0.80000001192093
  599. TextLabel41.BorderColor = BrickColor.new("Institutional white")
  600. TextLabel41.BorderColor3 = Color3.new(1, 1, 1)
  601. TextLabel41.Font = Enum.Font.ArialBold
  602. TextLabel41.Text = ""
  603. TextLabel41.TextColor = BrickColor.new("Institutional white")
  604. TextLabel41.TextColor3 = Color3.new(1, 1, 1)
  605. TextLabel41.TextScaled = true
  606. TextLabel41.TextTransparency = 0.20000000298023
  607. TextLabel41.TextWrap = true
  608. TextLabel41.TextWrapped = true
  609. TextLabel41.TextXAlignment = Enum.TextXAlignment.Left
  610. TextLabel42.Name = "Line6"
  611. TextLabel42.Parent = Frame35
  612. TextLabel42.Position = UDim2.new(0, 0, 0.75, 0)
  613. TextLabel42.Size = UDim2.new(1, 0, 0.0799999982, 0)
  614. TextLabel42.BackgroundColor = BrickColor.new("Really black")
  615. TextLabel42.BackgroundColor3 = Color3.new(0, 0, 0)
  616. TextLabel42.BackgroundTransparency = 0.80000001192093
  617. TextLabel42.BorderColor = BrickColor.new("Institutional white")
  618. TextLabel42.BorderColor3 = Color3.new(1, 1, 1)
  619. TextLabel42.Font = Enum.Font.ArialBold
  620. TextLabel42.Text = ""
  621. TextLabel42.TextColor = BrickColor.new("Institutional white")
  622. TextLabel42.TextColor3 = Color3.new(1, 1, 1)
  623. TextLabel42.TextScaled = true
  624. TextLabel42.TextTransparency = 0.20000000298023
  625. TextLabel42.TextWrap = true
  626. TextLabel42.TextWrapped = true
  627. TextLabel42.TextXAlignment = Enum.TextXAlignment.Left
  628. TextLabel43.Name = "Line7"
  629. TextLabel43.Parent = Frame35
  630. TextLabel43.Position = UDim2.new(0, 0, 0.850000024, 0)
  631. TextLabel43.Size = UDim2.new(1, 0, 0.0799999982, 0)
  632. TextLabel43.BackgroundColor = BrickColor.new("Really black")
  633. TextLabel43.BackgroundColor3 = Color3.new(0, 0, 0)
  634. TextLabel43.BackgroundTransparency = 0.80000001192093
  635. TextLabel43.BorderColor = BrickColor.new("Institutional white")
  636. TextLabel43.BorderColor3 = Color3.new(1, 1, 1)
  637. TextLabel43.Font = Enum.Font.ArialBold
  638. TextLabel43.Text = ""
  639. TextLabel43.TextColor = BrickColor.new("Institutional white")
  640. TextLabel43.TextColor3 = Color3.new(1, 1, 1)
  641. TextLabel43.TextScaled = true
  642. TextLabel43.TextTransparency = 0.20000000298023
  643. TextLabel43.TextWrap = true
  644. TextLabel43.TextWrapped = true
  645. TextLabel43.TextXAlignment = Enum.TextXAlignment.Left
  646. ObjectValue44.Name = "Tool"
  647. ObjectValue44.Parent = GuiMain34
  648. LocalScript45.Name = "RadioGUIScript[o]"
  649. LocalScript45.Parent = GuiMain34
  650. table.insert(cors,sandbox(LocalScript45,function()
  651. --Mark901
  652. wait(1)
  653. local MainGUI = script.Parent
  654. local GUI = MainGUI.Frame
  655. local Tool = MainGUI.Tool
  656. local Channel = game.Workspace["OfficerRadioSystem"]
  657.  
  658.  
  659. function Transmit(MSG, Targ)
  660. if Tool.Value.On.Value == false then return end
  661. Channel.Line1.Value = Channel.Line2.Value
  662. Channel.Line2.Value = Channel.Line3.Value
  663. Channel.Line3.Value = Channel.Line4.Value
  664. Channel.Line4.Value = Channel.Line5.Value
  665. Channel.Line5.Value = Channel.Line6.Value
  666. Channel.Line6.Value = Channel.Line7.Value
  667. Channel.Line7.Value = Tool.Value.Parent.Name ..": ".. MSG
  668. end
  669.  
  670.  
  671. MainGUI.Parent.Parent.Chatted:connect(Transmit)
  672. end))
  673. LocalScript45.Disabled = true
  674. LocalScript46.Name = "UpdateScript[o]"
  675. LocalScript46.Parent = GuiMain34
  676. table.insert(cors,sandbox(LocalScript46,function()
  677. --Mark901
  678. wait(1)
  679. local MainGUI = script.Parent
  680. local GUI = MainGUI.Frame
  681. local Tool = MainGUI.Tool
  682. local Channel = game.Workspace["OfficerRadioSystem"]
  683.  
  684.  
  685. function Update()
  686. GUI.Line1.Text = Channel.Line1.Value
  687. GUI.Line2.Text = Channel.Line2.Value
  688. GUI.Line3.Text = Channel.Line3.Value
  689. GUI.Line4.Text = Channel.Line4.Value
  690. GUI.Line5.Text = Channel.Line5.Value
  691. GUI.Line6.Text = Channel.Line6.Value
  692. GUI.Line7.Text = Channel.Line7.Value
  693. Tool.Value.Handle.Alert.Volume = 0.4
  694. Tool.Value.Handle.Alert.Run.Value = true
  695. end
  696.  
  697.  
  698. Channel.Line7.Changed:connect(Update)
  699. wait(0.2)
  700. Update()
  701. end))
  702. LocalScript46.Disabled = true
  703. Script47.Name = "RadioGUIScript"
  704. Script47.Parent = GuiMain34
  705. table.insert(cors,sandbox(Script47,function()
  706. --Mark901
  707. wait(1)
  708. local MainGUI = script.Parent
  709. local GUI = MainGUI.Frame
  710. local Tool = MainGUI.Tool
  711. local Channel = game.Workspace["OfficerRadioSystem"]
  712.  
  713.  
  714. function Transmit(MSG, Targ)
  715. if Tool.Value.On.Value == false then return end
  716. Channel.Line1.Value = Channel.Line2.Value
  717. Channel.Line2.Value = Channel.Line3.Value
  718. Channel.Line3.Value = Channel.Line4.Value
  719. Channel.Line4.Value = Channel.Line5.Value
  720. Channel.Line5.Value = Channel.Line6.Value
  721. Channel.Line6.Value = Channel.Line7.Value
  722. Channel.Line7.Value = " ".. Tool.Value.Parent.Name ..": ".. MSG
  723. end
  724.  
  725.  
  726. MainGUI.Parent.Parent.Chatted:connect(Transmit)
  727. end))
  728. Script47.Disabled = true
  729. Script48.Name = "UpdateScript"
  730. Script48.Parent = GuiMain34
  731. table.insert(cors,sandbox(Script48,function()
  732. --Mark901
  733. wait(1)
  734. local MainGUI = script.Parent
  735. local GUI = MainGUI.Frame
  736. local Tool = MainGUI.Tool
  737. local Channel = game.Workspace["OfficerRadioSystem"]
  738.  
  739.  
  740. function Update()
  741. GUI.Line1.Text = Channel.Line1.Value
  742. GUI.Line2.Text = Channel.Line2.Value
  743. GUI.Line3.Text = Channel.Line3.Value
  744. GUI.Line4.Text = Channel.Line4.Value
  745. GUI.Line5.Text = Channel.Line5.Value
  746. GUI.Line6.Text = Channel.Line6.Value
  747. GUI.Line7.Text = Channel.Line7.Value
  748. Tool.Value.Handle.Alert.Volume = 0.4
  749. Tool.Value.Handle.Alert.Run.Value = true
  750. end
  751.  
  752.  
  753. Channel.Line7.Changed:connect(Update)
  754. wait(0.2)
  755. Update()
  756. end))
  757. Script48.Disabled = true
  758. ObjectValue49.Name = "Character"
  759. ObjectValue49.Parent = Tool6
  760. Script50.Name = "PUT THIS IN THE WEAPON"
  761. Script50.Parent = Tool6
  762. table.insert(cors,sandbox(Script50,function()
  763. local debounce = false
  764.  
  765. function getPlayer(humanoid)
  766. local players = game.Players:children()
  767. for i = 1, #players do
  768. if players[i].Character.Humanoid == humanoid then return players[i] end
  769. end
  770. return nil
  771. end
  772.  
  773. function onTouch(part)
  774.  
  775. local human = part.Parent:findFirstChild("Humanoid")
  776. if (human ~= nil) and debounce == false then
  777.  
  778. debounce = true
  779.  
  780. local player = getPlayer(human)
  781.  
  782. if (player == nil) then return end
  783.  
  784. script.Parent:clone().Parent = player.Backpack
  785.  
  786. wait(2)
  787. debounce = false
  788. end
  789. end
  790.  
  791.  
  792. script.Parent.Parent.Touched:connect(onTouch)
  793.  
  794. end))
  795. Part51.Name = "Smooth Block Model"
  796. Part51.Parent = Model0
  797. Part51.CFrame = CFrame.new(-6.13997078, 3.00011396, 61.2799492, -1.04807905e-05, 1.26416526e-05, 0.999999702, -2.30949372e-05, 1.00000513, -1.26419845e-05, -1.00000489, -2.30949372e-05, -1.04805531e-05)
  798. Part51.Orientation = Vector3.new(0, 90, 0)
  799. Part51.Position = Vector3.new(-6.13997078, 3.00011396, 61.2799492)
  800. Part51.Rotation = Vector3.new(129.660004, 89.9599991, -129.660004)
  801. Part51.Color = Color3.new(0.105882, 0.164706, 0.207843)
  802. Part51.Transparency = 0.30000001192093
  803. Part51.Size = Vector3.new(5, 6, 1)
  804. Part51.Anchored = true
  805. Part51.BrickColor = BrickColor.new("Black")
  806. Part51.brickColor = BrickColor.new("Black")
  807. Snap52.Parent = Part51
  808. Snap52.C0 = CFrame.new(0, -3, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  809. Snap52.C1 = CFrame.new(-6.14000893, 10.0000992, 61.2800179, -1.04807905e-05, 0.999999702, -1.26416526e-05, -2.30949372e-05, -1.26419845e-05, -1.00000513, -1.00000489, -1.04805531e-05, 2.30949372e-05)
  810. Snap52.Part0 = Part51
  811. Snap52.Part1 = nil
  812. Snap52.part1 = nil
  813. Part53.Name = "Smooth Block Model"
  814. Part53.Parent = Model0
  815. Part53.CFrame = CFrame.new(-8.13999176, 3.00006104, 63.2799759, -1, 0, 0, -0, 1.00000525, 1.86264515e-08, 0, 1.86264515e-08, -1.00000525)
  816. Part53.Orientation = Vector3.new(0, 180, 0)
  817. Part53.Position = Vector3.new(-8.13999176, 3.00006104, 63.2799759)
  818. Part53.Rotation = Vector3.new(-180, 0, -180)
  819. Part53.Color = Color3.new(0.105882, 0.164706, 0.207843)
  820. Part53.Transparency = 0.30000001192093
  821. Part53.Size = Vector3.new(3, 6, 1)
  822. Part53.Anchored = true
  823. Part53.BrickColor = BrickColor.new("Black")
  824. Part53.brickColor = BrickColor.new("Black")
  825. Snap54.Parent = Part53
  826. Snap54.C0 = CFrame.new(0, -3, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  827. Snap54.C1 = CFrame.new(-8.13999176, 10.0000458, 63.2799759, -1, 0, 0, 0, 1.86264515e-08, -1.00000525, 0, -1.00000525, -1.86264515e-08)
  828. Snap54.Part0 = Part53
  829. Snap54.Part1 = nil
  830. Snap54.part1 = nil
  831. Part55.Name = "Smooth Block Model"
  832. Part55.Parent = Model0
  833. Part55.CFrame = CFrame.new(-7.639925, 6.60009193, 61.279892, -1.04807905e-05, 1.26416526e-05, 0.999999702, -2.30949372e-05, 1.00000513, -1.26419845e-05, -1.00000489, -2.30949372e-05, -1.04805531e-05)
  834. Part55.Orientation = Vector3.new(0, 90, 0)
  835. Part55.Position = Vector3.new(-7.639925, 6.60009193, 61.279892)
  836. Part55.Rotation = Vector3.new(129.660004, 89.9599991, -129.660004)
  837. Part55.Color = Color3.new(0.105882, 0.164706, 0.207843)
  838. Part55.Transparency = 0.30000001192093
  839. Part55.Size = Vector3.new(5, 1.20000005, 4)
  840. Part55.Anchored = true
  841. Part55.BrickColor = BrickColor.new("Black")
  842. Part55.TopSurface = Enum.SurfaceType.Smooth
  843. Part55.brickColor = BrickColor.new("Black")
  844. Snap56.Parent = Part55
  845. Snap56.C0 = CFrame.new(0, -0.600000024, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  846. Snap56.C1 = CFrame.new(-0.500068426, 3.00008821, 2.00008106, 1.04806841e-05, -1, 1.26418136e-05, -2.31134509e-05, -1.26420555e-05, -1, 1, 1.0480393e-05, -2.31135837e-05)
  847. Snap56.Part0 = Part55
  848. Snap56.Part1 = Part53
  849. Snap56.part1 = Part53
  850. Snap57.Parent = Part55
  851. Snap57.C0 = CFrame.new(0, -0.600000024, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  852. Snap57.C1 = CFrame.new(-8.58306885e-06, 3.00001383, 1.49999905, 1, -1.08228822e-10, -1.38241835e-10, -1.38241849e-10, -1.58130051e-10, -1, 1.08228815e-10, 1, -1.58130051e-10)
  853. Snap57.Part0 = Part55
  854. Snap57.Part1 = Part1
  855. Snap57.part1 = Part1
  856. Snap58.Parent = Part55
  857. Snap58.C0 = CFrame.new(0, -0.600000024, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  858. Snap58.C1 = CFrame.new(-0.500068426, 3.00008821, -1.99995995, 1.04806841e-05, -1, 1.26418136e-05, -2.31134509e-05, -1.26420555e-05, -1, 1, 1.0480393e-05, -2.31135837e-05)
  859. Snap58.Part0 = Part55
  860. Snap58.Part1 = Part3
  861. Snap58.part1 = Part3
  862. Snap59.Parent = Part55
  863. Snap59.C0 = CFrame.new(0, -0.600000024, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  864. Snap59.C1 = CFrame.new(-8.58306885e-06, 3.00000668, -1.49999857, 1, -1.08228822e-10, -1.38241835e-10, -1.38241849e-10, -1.58130051e-10, -1, 1.08228815e-10, 1, -1.58130051e-10)
  865. Snap59.Part0 = Part55
  866. Snap59.Part1 = Part51
  867. Snap59.part1 = Part51
  868. for i,v in pairs(mas:GetChildren()) do
  869. v.Parent = workspace
  870. pcall(function() v:MakeJoints() end)
  871. end
  872. mas:Destroy()
  873. for i,v in pairs(cors) do
  874. spawn(function()
  875. pcall(v)
  876. end)
  877. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement