thi2004

redwood prison

Aug 3rd, 2018
1,549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.83 KB | None | 0 0
  1. -- Objects
  2.  
  3. local Redfucked = Instance.new("ScreenGui")
  4. local Open = Instance.new("Frame")
  5. local MenuButton = Instance.new("TextButton")
  6. local Main = Instance.new("Frame")
  7. local Buttons = Instance.new("Frame")
  8. local Guns = Instance.new("TextButton")
  9. local RDoors = Instance.new("TextButton")
  10. local Settings = Instance.new("TextButton")
  11. local Exit = Instance.new("TextButton")
  12. local KillAll = Instance.new("TextButton")
  13. local ArrestAll = Instance.new("TextButton")
  14. local Escape = Instance.new("TextButton")
  15. local TextBox = Instance.new("TextBox")
  16. local GiveGun = Instance.new("TextButton")
  17. local Settings_2 = Instance.new("Frame")
  18. local Green = Instance.new("TextButton")
  19. local Blue = Instance.new("TextButton")
  20. local Red = Instance.new("TextButton")
  21. local Black = Instance.new("TextButton")
  22. local White = Instance.new("TextButton")
  23. local ExitSet = Instance.new("TextButton")
  24.  
  25. -- Properties
  26.  
  27. Redfucked.Name = "Redfucked"
  28. Redfucked.Parent = game.CoreGui
  29.  
  30. Open.Name = "Open"
  31. Open.Parent = Redfucked
  32. Open.BackgroundColor3 = Color3.new(0, 0, 0)
  33. Open.BorderColor3 = Color3.new(1, 0, 0)
  34. Open.Position = UDim2.new(-0.00823892932, 0, 0.807832479, -75)
  35. Open.Size = UDim2.new(0, 150, 0, 75)
  36.  
  37. MenuButton.Name = "MenuButton"
  38. MenuButton.Parent = Open
  39. MenuButton.BackgroundColor3 = Color3.new(1, 1, 1)
  40. MenuButton.BorderColor3 = Color3.new(1, 0, 0)
  41. MenuButton.Position = UDim2.new(0.106666669, 0, 0.106666669, 0)
  42. MenuButton.Size = UDim2.new(0, 121, 0, 58)
  43. MenuButton.Font = Enum.Font.SourceSans
  44. MenuButton.Text = "Open"
  45. MenuButton.TextScaled = true
  46. MenuButton.TextSize = 14
  47. MenuButton.TextWrapped = true
  48.  
  49. Main.Name = "Main"
  50. Main.Parent = Redfucked
  51. Main.BackgroundColor3 = Color3.new(0, 0, 0)
  52. Main.Position = UDim2.new(0.261585981, 0, 0.366120219, -75)
  53. Main.Size = UDim2.new(0, 454, 0, 297)
  54. Main.Visible = false
  55. Main.Draggable = true
  56. Main.Active = true
  57. Main.ClipsDescendants = true
  58.  
  59. Buttons.Name = "Buttons"
  60. Buttons.Parent = Main
  61. Buttons.BackgroundColor3 = Color3.new(1, 1, 1)
  62. Buttons.BackgroundTransparency = 1
  63. Buttons.Position = UDim2.new(-0.0179775283, 0, -0.0269360263, 0)
  64. Buttons.Size = UDim2.new(0, 457, 0, 293)
  65.  
  66. Guns.Name = "Guns"
  67. Guns.Parent = Buttons
  68. Guns.BackgroundColor3 = Color3.new(1, 1, 1)
  69. Guns.Position = UDim2.new(0.0393873081, 0, 0.0546075106, 0)
  70. Guns.Size = UDim2.new(0, 200, 0, 50)
  71. Guns.Font = Enum.Font.SourceSans
  72. Guns.Text = "Guns"
  73. Guns.TextColor3 = Color3.new(0, 0, 0)
  74. Guns.TextSize = 14
  75.  
  76. RDoors.Name = "RDoors"
  77. RDoors.Parent = Buttons
  78. RDoors.BackgroundColor3 = Color3.new(1, 1, 1)
  79. RDoors.Position = UDim2.new(0.551687837, 0, 0.0546075106, 0)
  80. RDoors.Size = UDim2.new(0, 200, 0, 50)
  81. RDoors.Font = Enum.Font.SourceSans
  82. RDoors.Text = "Remove Doors"
  83. RDoors.TextColor3 = Color3.new(0, 0, 0)
  84. RDoors.TextSize = 14
  85.  
  86. Settings.Name = "Settings"
  87. Settings.Parent = Buttons
  88. Settings.BackgroundColor3 = Color3.new(1, 1, 1)
  89. Settings.Position = UDim2.new(0.551687837, 0, 0.811447799, 0)
  90. Settings.Size = UDim2.new(0, 200, 0, 50)
  91. Settings.Font = Enum.Font.SourceSans
  92. Settings.Text = "Settings"
  93. Settings.TextColor3 = Color3.new(0, 0, 0)
  94. Settings.TextSize = 14
  95.  
  96. Exit.Name = "Exit"
  97. Exit.Parent = Buttons
  98. Exit.BackgroundColor3 = Color3.new(1, 1, 1)
  99. Exit.Position = UDim2.new(0.0396528207, 0, 0.811447799, 0)
  100. Exit.Size = UDim2.new(0, 200, 0, 50)
  101. Exit.Font = Enum.Font.SourceSans
  102. Exit.Text = "Exit"
  103. Exit.TextColor3 = Color3.new(0, 0, 0)
  104. Exit.TextSize = 14
  105.  
  106. KillAll.Name = "KillAll"
  107. KillAll.Parent = Buttons
  108. KillAll.BackgroundColor3 = Color3.new(1, 1, 1)
  109. KillAll.Position = UDim2.new(0.0393873118, 0, 0.255972683, 0)
  110. KillAll.Size = UDim2.new(0, 200, 0, 50)
  111. KillAll.Font = Enum.Font.SourceSans
  112. KillAll.Text = "Kill All"
  113. KillAll.TextColor3 = Color3.new(0, 0, 0)
  114. KillAll.TextSize = 14
  115.  
  116. ArrestAll.Name = "ArrestAll"
  117. ArrestAll.Parent = Buttons
  118. ArrestAll.BackgroundColor3 = Color3.new(1, 1, 1)
  119. ArrestAll.Position = UDim2.new(0.551422298, 0, 0.255972683, 0)
  120. ArrestAll.Size = UDim2.new(0, 200, 0, 50)
  121. ArrestAll.Font = Enum.Font.SourceSans
  122. ArrestAll.Text = "Arrest all"
  123. ArrestAll.TextColor3 = Color3.new(0, 0, 0)
  124. ArrestAll.TextSize = 14
  125.  
  126. Escape.Name = "Escape"
  127. Escape.Parent = Buttons
  128. Escape.BackgroundColor3 = Color3.new(1, 1, 1)
  129. Escape.Position = UDim2.new(0.0393873081, 0, 0.44709897, 0)
  130. Escape.Size = UDim2.new(0, 200, 0, 50)
  131. Escape.Font = Enum.Font.SourceSans
  132. Escape.Text = "Escape"
  133. Escape.TextColor3 = Color3.new(0, 0, 0)
  134. Escape.TextSize = 14
  135.  
  136. TextBox.Parent = Buttons
  137. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  138. TextBox.Position = UDim2.new(0.503282309, 0, 0.44709897, 0)
  139. TextBox.Size = UDim2.new(0, 222, 0, 32)
  140. TextBox.Font = Enum.Font.SourceSans
  141. TextBox.Text = "Gun Name"
  142. TextBox.TextColor3 = Color3.new(0, 0, 0)
  143. TextBox.TextSize = 14
  144.  
  145. GiveGun.Name = "GiveGun"
  146. GiveGun.Parent = Buttons
  147. GiveGun.BackgroundColor3 = Color3.new(1, 1, 1)
  148. GiveGun.Position = UDim2.new(0.551422298, 0, 0.587030709, 0)
  149. GiveGun.Size = UDim2.new(0, 200, 0, 50)
  150. GiveGun.Font = Enum.Font.SourceSans
  151. GiveGun.Text = "Give Gun"
  152. GiveGun.TextColor3 = Color3.new(0, 0, 0)
  153. GiveGun.TextSize = 14
  154.  
  155. Settings_2.Name = "Settings"
  156. Settings_2.Parent = Main
  157. Settings_2.BackgroundColor3 = Color3.new(1, 1, 1)
  158. Settings_2.BackgroundTransparency = 1
  159. Settings_2.Position = UDim2.new(-0.0212800205, 0, -0.0129160583, 0)
  160. Settings_2.Size = UDim2.new(0, 445, 0, 297)
  161. Settings_2.Visible = false
  162.  
  163. Green.Name = "Green"
  164. Green.Parent = Settings_2
  165. Green.BackgroundColor3 = Color3.new(0, 1, 0)
  166. Green.Position = UDim2.new(0.2764045, 0, 0.0168350097, 0)
  167. Green.Size = UDim2.new(0, 200, 0, 50)
  168. Green.Font = Enum.Font.SourceSans
  169. Green.Text = "Green"
  170. Green.TextColor3 = Color3.new(0, 0, 0)
  171. Green.TextSize = 14
  172. Green.TextTransparency = 1
  173.  
  174. Blue.Name = "Blue"
  175. Blue.Parent = Settings_2
  176. Blue.BackgroundColor3 = Color3.new(0, 0, 1)
  177. Blue.Position = UDim2.new(0.2764045, 0, 0.212121204, 0)
  178. Blue.Size = UDim2.new(0, 200, 0, 50)
  179. Blue.Font = Enum.Font.SourceSans
  180. Blue.Text = "Green"
  181. Blue.TextColor3 = Color3.new(0, 0, 0)
  182. Blue.TextSize = 14
  183. Blue.TextTransparency = 1
  184.  
  185. Red.Name = "Red"
  186. Red.Parent = Settings_2
  187. Red.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  188. Red.Position = UDim2.new(0.2764045, 0, 0.40067336, 0)
  189. Red.Size = UDim2.new(0, 200, 0, 50)
  190. Red.Font = Enum.Font.SourceSans
  191. Red.Text = "Green"
  192. Red.TextColor3 = Color3.new(0, 0, 0)
  193. Red.TextSize = 14
  194. Red.TextTransparency = 1
  195.  
  196. Black.Name = "Black"
  197. Black.Parent = Settings_2
  198. Black.BackgroundColor3 = Color3.new(0, 0, 0)
  199. Black.Position = UDim2.new(0.2764045, 0, 0.592592537, 0)
  200. Black.Size = UDim2.new(0, 200, 0, 50)
  201. Black.Font = Enum.Font.SourceSans
  202. Black.Text = "Green"
  203. Black.TextColor3 = Color3.new(0, 0, 0)
  204. Black.TextSize = 14
  205. Black.TextTransparency = 1
  206.  
  207. White.Name = "White"
  208. White.Parent = Settings_2
  209. White.BackgroundColor3 = Color3.new(1, 1, 1)
  210. White.Position = UDim2.new(0.2764045, 0, 0.781144738, 0)
  211. White.Size = UDim2.new(0, 200, 0, 50)
  212. White.Font = Enum.Font.SourceSans
  213. White.Text = "Green"
  214. White.TextColor3 = Color3.new(1, 1, 1)
  215. White.TextSize = 14
  216. White.TextTransparency = 1
  217.  
  218. ExitSet.Name = "ExitSet"
  219. ExitSet.Parent = Settings_2
  220. ExitSet.BackgroundColor3 = Color3.new(1, 1, 1)
  221. ExitSet.Position = UDim2.new(0.78876406, 0, 0.781144798, 0)
  222. ExitSet.Size = UDim2.new(0, 83, 0, 50)
  223. ExitSet.Font = Enum.Font.SourceSans
  224. ExitSet.Text = "Exit"
  225. ExitSet.TextColor3 = Color3.new(0, 0, 0)
  226. ExitSet.TextScaled = true
  227. ExitSet.TextSize = 14
  228. ExitSet.TextWrapped = true
  229. MenuButton.MouseButton1Down:connect(function()
  230. Open.Visible = false
  231. Main.Visible = true
  232. end)
  233.  
  234. Exit.MouseButton1Down:connect(function()
  235. Main.Visible = false
  236. Open.Visible = true
  237. end)
  238.  
  239. RDoors.MouseButton1Down:connect(function()
  240. game.Workspace.AllDoors:Destroy()
  241. end)
  242.  
  243. Settings.MouseButton1Down:connect(function()
  244. Settings_2.Visible = true
  245. Buttons.Visible = false
  246. end)
  247.  
  248. Red.MouseButton1Down:connect(function()
  249. Main.BackgroundColor3 = Color3.new(1, 0, 0)
  250. end)
  251.  
  252. Green.MouseButton1Down:connect(function()
  253. Main.BackgroundColor3 = Color3.new(0, 1, 0)
  254. end)
  255.  
  256. Blue.MouseButton1Down:connect(function()
  257. Main.BackgroundColor3 = Color3.new(0, 0, 1)
  258. end)
  259.  
  260. Black.MouseButton1Down:connect(function()
  261. Main.BackgroundColor3 = Color3.new(0, 0, 0)
  262. end)
  263.  
  264. White.MouseButton1Down:connect(function()
  265. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  266. end)
  267.  
  268. ExitSet.MouseButton1Down:connect(function()
  269. Settings_2.Visible = false
  270. Buttons.Visible = true
  271. end)
  272.  
  273. KillAll.MouseButton1Down:connect(function()
  274. for i,v in pairs(game.Players:GetChildren()) do
  275. game.Workspace.resources.RemoteEvent:FireServer("dealDamage", v.Character.Humanoid,100)
  276. end
  277. end)
  278.  
  279. GiveGun.MouseButton1Down:connect(function()
  280. game.Workspace.resources.RemoteFunction:InvokeServer("giveItem",TextBox.Text)
  281. end)
  282.  
  283. Escape.MouseButton1Down:connect(function()
  284. game.Workspace.resources.RemoteFunction:InvokeServer("requestTeam", "Fugitives")
  285. end)
  286.  
  287. ArrestAll.MouseButton1Down:connect(function()
  288. for i,v in pairs(game.Players:GetChildren()) do
  289. game.Workspace.resources.RemoteEvent:FireServer("cuff",v)
  290. end
  291. end)
Advertisement
Add Comment
Please, Sign In to add comment