Advertisement
ZANGADO0076

Untitled

May 27th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.38 KB | None | 0 0
  1. local weapons = {"Remington 870", "M9", "Riot Shield","AK-47","M4A1"}
  2.  
  3. function setTeam(color)
  4. local Remote = game.Workspace.Remote['TeamEvent']
  5. local Arguments = {
  6. [1] = color
  7. }
  8. Remote:FireServer(unpack(Arguments))
  9. end
  10.  
  11. function punch(plrname)
  12. local Remote = game.ReplicatedStorage['meleeEvent']
  13. local Arguments = {
  14. [1] = game.Players[plrname]
  15. }
  16. Remote:FireServer(unpack(Arguments))
  17. end
  18.  
  19. function getGun(gun)
  20. local Remote = game.Workspace.Remote['ItemHandler']
  21. local Arguments = {
  22. [1] = Workspace.Prison_ITEMS.giver[gun].ITEMPICKUP
  23. }
  24. Remote:InvokeServer(unpack(Arguments))
  25. end
  26.  
  27. function getGuns()
  28. local giver = workspace.Prison_ITEMS.giver
  29. for i,v in pairs(weapons)
  30. if giver:FindFirstChild(v) then
  31. getGun(v)
  32. end
  33. end
  34. end
  35.  
  36. local player = ui:MakeWindow("Player");
  37. local dropdown = player:addDropdown({"Select team","Guard","Neutral","Inmate"})
  38. local killaura = player:addCheckbox("Killaura")
  39.  
  40. local fast = player:addCheckbox("Fast")
  41. local highjump = player:addCheckbox("High jump")
  42.  
  43. local weapon = ui:MakeWindow("Weapon")
  44.  
  45. weapon:addButton("Get guns",function()
  46. getGuns();
  47. end)
  48.  
  49. local rapidfire = weapon:addCheckbox("Rapid fire")
  50. local infammo = weapon:addCheckbox("Infinite ammo")
  51.  
  52. local world = ui:MakeWindow("World")
  53. local doors = world:addCheckbox("Remove doors")
  54. local fences = world:addCheckbox("Remove fences")
  55.  
  56. local latesttele = "none"
  57.  
  58. local teledropdown = world:addDropdown({"Teleport","Cafeteria","Criminal base","Prison gate", "Sewer","Gun place"})
  59.  
  60. local ez = Instance.new("Folder")
  61. ez.Name = "nikodoors"
  62. ez.Parent = game:service"ReplicatedStorage"
  63.  
  64. local ez = Instance.new("Folder")
  65. ez.Name = "nikofences"
  66. ez.Parent = game:service"ReplicatedStorage"
  67.  
  68.  
  69. game:service"RunService".RenderStepped:connect(function()
  70. if teledropdown.Selected.Value ~= latesttele then
  71. local v = teledropdown.Selected.Value
  72.  
  73. if game.Players.LocalPlayer.Character then
  74. if game.Players.LocalPlayer.Character:FindFirstChild"HumanoidRootPart" then
  75. if v == "Gun place" then
  76. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(828.222595, 99.9900055, 2257.802))
  77. elseif v == "Prison gate" then
  78. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(500.32901, 98.0399399, 2222.14478))
  79. elseif v == "Cafeteria" then
  80. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(929.020569, 99.9899597, 2285.35132))
  81. elseif v == "Criminal base" then
  82. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-935.360474, 94.1287842, 2066.77319))
  83. elseif v == "Sewer" then
  84. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(914.87793, 78.7045288, 2411.79102))
  85. end
  86. end
  87. end
  88.  
  89. latesttele = v;
  90. end
  91.  
  92.  
  93.  
  94. if fast.Checked.Value then
  95. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150
  96. else
  97. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  98. end
  99.  
  100. if highjump.Checked.Value then
  101. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150
  102. else
  103. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 48
  104. end
  105.  
  106. if killaura.Checked.Value then
  107. for i,v in pairs(game.Players:GetPlayers()) do
  108. if v.Character then
  109. if v~=game.Players.LocalPlayer then
  110. if v.Character:FindFirstChild"HumanoidRootPart" then
  111. local m = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude
  112. if m<200 then
  113. punch(v.Name)
  114. end
  115. end
  116. end
  117. end
  118. end
  119. end
  120.  
  121. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  122. if v:IsA"Tool" and v:FindFirstChild("GunStates") then
  123. local gun = require(v.GunStates)
  124. if rapidfire.Checked.Value then
  125. gun.AutoFire = true;
  126. gun.FireRate = 0.01
  127. else
  128. gun.AutoFire = false;
  129. gun.FireRate = 0.08
  130. end
  131. if infammo.Checked.Value then
  132. gun.CurrentAmmo = math.huge
  133. gun.StoredAmmo = math.huge
  134. else
  135. gun.CurrentAmmo = 10;
  136. gun.StoredAmmo = 100;
  137. end
  138. end
  139. end
  140.  
  141. if fences.Checked.Value then
  142. for i,v in pairs(workspace.Prison_Fences:GetChildren()) do
  143. v.Parent = game:service"ReplicatedStorage".nikofences
  144. end
  145. else
  146. for i,v in pairs(game:service"ReplicatedStorage".nikofences:GetChildren()) do
  147. v.Parent = workspace.Prison_Fences
  148. end
  149. end
  150.  
  151. if doors.Checked.Value then
  152. for i,v in pairs(workspace.Doors:GetChildren()) do
  153. v.Parent = game:service"ReplicatedStorage".nikodoors
  154. end
  155. else
  156. for i,v in pairs(game:service"ReplicatedStorage".nikodoors:GetChildren()) do
  157. v.Parent = workspace.Doors
  158. end
  159. end
  160.  
  161. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  162. if v:IsA"Tool" and v:FindFirstChild("GunStates") then
  163. local gun = require(v.GunStates)
  164. if rapidfire.Checked.Value then
  165. gun.AutoFire = true;
  166. gun.FireRate = 0.01
  167. else
  168. gun.AutoFire = false;
  169. gun.FireRate = 0.08
  170. end
  171. if infammo.Checked.Value then
  172. gun.CurrentAmmo = math.huge
  173. gun.StoredAmmo = math.huge
  174. else
  175. gun.CurrentAmmo = 10;
  176. gun.StoredAmmo = 100;
  177. end
  178. end
  179. end
  180. end)
  181.  
  182. while(true) do
  183. wait()
  184. if dropdown.Selected.Value == "Guard" then
  185. setTeam("Bright blue")
  186. elseif dropdown.Selected.Value == "Neutral" then
  187. setTeam("Medium stone grey")
  188. elseif dropdown.Selected.Value == "Inmate" then
  189. setTeam("Bright orange")
  190. end
  191.  
  192. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement