Advertisement
Guest User

Prison life GUI

a guest
Aug 5th, 2018
14,761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.09 KB | None | 0 0
  1. --Prison Life GUI
  2. -- Instances:
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local OpenAndClose = Instance.new("TextButton")
  5. local Box = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local Police = Instance.new("TextButton")
  8. local Prisoner = Instance.new("TextButton")
  9. local Btools = Instance.new("TextButton")
  10. local RemoveDoors = Instance.new("TextButton")
  11. local Weapons = Instance.new("TextButton")
  12. local Neutral = Instance.new("TextButton")
  13. local Sedan = Instance.new("TextButton")
  14. local Squad = Instance.new("TextButton")
  15. local IY = Instance.new("TextButton")
  16. local BracksCMDS = Instance.new("TextButton")
  17. local OP_Shotgun = Instance.new("TextButton")
  18. local OP_Taser = Instance.new("TextButton")
  19. local Frame = Instance.new("Frame")
  20. local Frame_2 = Instance.new("Frame")
  21. local Frame_3 = Instance.new("Frame")
  22. --Properties:
  23. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  24.  
  25. OpenAndClose.Name = "OpenAndClose"
  26. OpenAndClose.Parent = ScreenGui
  27. OpenAndClose.BackgroundColor3 = Color3.new(0, 0, 0)
  28. OpenAndClose.BorderSizePixel = 2
  29. OpenAndClose.Position = UDim2.new(0.0148221347, 0, 0.858757138, 0)
  30. OpenAndClose.Size = UDim2.new(0, 90, 0, 50)
  31. OpenAndClose.Font = Enum.Font.SciFi
  32. OpenAndClose.Text = "Open"
  33. OpenAndClose.TextColor3 = Color3.new(1, 0, 1)
  34. OpenAndClose.TextSize = 30
  35.  
  36. Box.Name = "Box"
  37. Box.Parent = ScreenGui
  38. Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  39. Box.BorderSizePixel = 2
  40. Box.Position = UDim2.new(0.0316205546, 0, 0.165725052, 0)
  41. Box.Size = UDim2.new(0, 251, 0, 354)
  42. Box.Visible = false
  43. Box.Active = true
  44. Box.Draggable = true
  45.  
  46. TextLabel.Parent = Box
  47. TextLabel.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  48. TextLabel.BorderSizePixel = 3
  49. TextLabel.Size = UDim2.new(0, 251, 0, 33)
  50. TextLabel.Font = Enum.Font.SciFi
  51. TextLabel.Text = "Prison Life GUI"
  52. TextLabel.TextColor3 = Color3.new(1, 0, 1)
  53. TextLabel.TextSize = 25
  54.  
  55. Police.Name = "Police"
  56. Police.Parent = Box
  57. Police.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  58. Police.BorderSizePixel = 2
  59. Police.Position = UDim2.new(0.0557768941, 0, 0.146892667, 0)
  60. Police.Size = UDim2.new(0, 59, 0, 50)
  61. Police.Font = Enum.Font.SciFi
  62. Police.Text = "Police"
  63. Police.TextColor3 = Color3.new(0, 0, 1)
  64. Police.TextSize = 24
  65. Police.MouseButton1Down:connect(function()
  66. Workspace.Remote.TeamEvent:FireServer("Bright blue")
  67. end)
  68.  
  69. Prisoner.Name = "Prisoner"
  70. Prisoner.Parent = Box
  71. Prisoner.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  72. Prisoner.BorderSizePixel = 2
  73. Prisoner.Position = UDim2.new(0.382470131, 0, 0.146892667, 0)
  74. Prisoner.Size = UDim2.new(0, 59, 0, 50)
  75. Prisoner.Font = Enum.Font.SciFi
  76. Prisoner.Text = "Prisoner"
  77. Prisoner.TextColor3 = Color3.new(1, 0.635294, 0)
  78. Prisoner.TextSize = 14
  79. Prisoner.MouseButton1Down:connect(function()
  80. Workspace.Remote.TeamEvent:FireServer("Bright orange")
  81. end)
  82.  
  83. Btools.Name = "Btools"
  84. Btools.Parent = Box
  85. Btools.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  86. Btools.BorderSizePixel = 2
  87. Btools.Position = UDim2.new(0.0557769537, 0, 0.355932236, 0)
  88. Btools.Size = UDim2.new(0, 59, 0, 50)
  89. Btools.Font = Enum.Font.SciFi
  90. Btools.Text = "Btools"
  91. Btools.TextColor3 = Color3.new(1, 0, 1)
  92. Btools.TextSize = 22
  93. Btools.MouseButton1Down:connect(function()
  94. local tool1 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  95. local tool2 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  96. local tool3 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  97. local tool4 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  98. local tool5 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  99. tool1.BinType = "Clone"
  100. tool2.BinType = "GameTool"
  101. tool3.BinType = "Hammer"
  102. tool4.BinType = "Script"
  103. tool5.BinType = "Grab"
  104. end)
  105.  
  106. RemoveDoors.Name = "RemoveDoors"
  107. RemoveDoors.Parent = Box
  108. RemoveDoors.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  109. RemoveDoors.BorderSizePixel = 2
  110. RemoveDoors.Position = UDim2.new(0.382470131, 0, 0.355932236, 0)
  111. RemoveDoors.Size = UDim2.new(0, 59, 0, 50)
  112. RemoveDoors.Font = Enum.Font.SciFi
  113. RemoveDoors.Text = "R Doors"
  114. RemoveDoors.TextColor3 = Color3.new(1, 0, 1)
  115. RemoveDoors.TextSize = 17
  116. RemoveDoors.MouseButton1Down:connect(function()
  117. game.Workspace.Doors:Destroy()
  118. end)
  119.  
  120. Weapons.Name = "Weapons"
  121. Weapons.Parent = Box
  122. Weapons.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  123. Weapons.BorderSizePixel = 2
  124. Weapons.Position = UDim2.new(0.713147402, 0, 0.355932236, 0)
  125. Weapons.Size = UDim2.new(0, 59, 0, 50)
  126. Weapons.Font = Enum.Font.SciFi
  127. Weapons.Text = "Weapons"
  128. Weapons.TextColor3 = Color3.new(1, 0, 1)
  129. Weapons.TextSize = 14
  130. Weapons.MouseButton1Down:connect(function()
  131. -- Weapon Spawner
  132. local weapons = {"Remington 870", "M9", "AK-47","M4A1","Riot Shield"}
  133. for i, v in pairs(game.Workspace["Prison_ITEMS"].giver:GetChildren()) do
  134. for j, k in pairs(weapons) do
  135. if v.Name == k then
  136. v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
  137. end
  138. end
  139. end
  140. end)
  141.  
  142. Neutral.Name = "Neutral"
  143. Neutral.Parent = Box
  144. Neutral.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  145. Neutral.BorderSizePixel = 2
  146. Neutral.Position = UDim2.new(0.713147402, 0, 0.146892667, 0)
  147. Neutral.Size = UDim2.new(0, 59, 0, 50)
  148. Neutral.Font = Enum.Font.SciFi
  149. Neutral.Text = "Neutral"
  150. Neutral.TextColor3 = Color3.new(0.670588, 0.670588, 0.670588)
  151. Neutral.TextSize = 18
  152. Neutral.MouseButton1Down:connect(function()
  153. Workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  154. end)
  155.  
  156. Sedan.Name = "Sedan"
  157. Sedan.Parent = Box
  158. Sedan.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  159. Sedan.BorderSizePixel = 2
  160. Sedan.Position = UDim2.new(0.0557768941, 0, 0.562146902, 0)
  161. Sedan.Size = UDim2.new(0, 59, 0, 50)
  162. Sedan.Font = Enum.Font.SciFi
  163. Sedan.Text = "Sedan"
  164. Sedan.TextColor3 = Color3.new(0.333333, 1, 0)
  165. Sedan.TextSize = 22
  166. Sedan.MouseButton1Down:connect(function()
  167. -- Sedan
  168. local Cars = {"Sedan"}
  169. for i, v in pairs(game.Workspace["CarContainer"]:GetChildren()) do
  170. for j, k in pairs(Cars) do
  171. if v.Name == k then
  172. v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
  173. wait(.1)
  174. v.Parent = game.Workspace
  175. end
  176. end
  177. end
  178. end)
  179.  
  180. Squad.Name = "Squad"
  181. Squad.Parent = Box
  182. Squad.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  183. Squad.BorderSizePixel = 2
  184. Squad.Position = UDim2.new(0.382470131, 0, 0.562146902, 0)
  185. Squad.Size = UDim2.new(0, 59, 0, 50)
  186. Squad.Font = Enum.Font.SciFi
  187. Squad.Text = "Squad"
  188. Squad.TextColor3 = Color3.new(0, 0, 1)
  189. Squad.TextSize = 23
  190. Squad.MouseButton1Down:connect(function()
  191. -- Squad
  192. local Cars = {"Squad"}
  193. for i, v in pairs(game.Workspace["CarContainer"]:GetChildren()) do
  194. for j, k in pairs(Cars) do
  195. if v.Name == k then
  196. v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
  197. wait(.1)
  198. v.Parent = game.Workspace
  199. end
  200. end
  201. end
  202. end)
  203.  
  204. IY.Name = "IY"
  205. IY.Parent = Box
  206. IY.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  207. IY.BorderSizePixel = 2
  208. IY.Position = UDim2.new(0.713147402, 0, 0.562146902, 0)
  209. IY.Size = UDim2.new(0, 59, 0, 50)
  210. IY.Font = Enum.Font.SciFi
  211. IY.Text = "IY"
  212. IY.TextColor3 = Color3.new(1, 0, 0)
  213. IY.TextSize = 50
  214. IY.MouseButton1Down:connect(function()
  215. loadstring(game:HttpGet(('https://pastebin.com/raw/MjBzRjmT'),true))()
  216. end)
  217.  
  218. BracksCMDS.Name = "BracksCMDS"
  219. BracksCMDS.Parent = Box
  220. BracksCMDS.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  221. BracksCMDS.BorderSizePixel = 2
  222. BracksCMDS.Position = UDim2.new(0.0557768941, 0, 0.779661059, 0)
  223. BracksCMDS.Size = UDim2.new(0, 59, 0, 50)
  224. BracksCMDS.Font = Enum.Font.SciFi
  225. BracksCMDS.Text = "BracksCMDS"
  226. BracksCMDS.TextColor3 = Color3.new(0.333333, 1, 0)
  227. BracksCMDS.TextSize = 10
  228. BracksCMDS.MouseButton1Down:connect(function()
  229. --PRISON LIFE ARREST SCRIPT
  230. print("BRACK'S PRISON LIFE COMMANDS")
  231. print("MADE BY BRACK4712")
  232. local teleporttolastpost = true --After you arrest, do you want to go to your previous position?
  233.  
  234.  
  235. --[[
  236. COMMANDS
  237. /e arrest PLR :: MUST BE COP, TARGET MUST BE BREAKING RULES :: /e arrest brac
  238. /e tools :: SENDS ALL TOOLS FROM ARMORY TO LOCALPLAYER :: /e tools
  239. /e removedoors :: REMOVES ALL THE COP DOORS :: /e removedoors
  240. /e escape :: MAKES YOU ESCAPE IF YOU ARE A PRISONER :: /e escape
  241. --]]
  242.  
  243. --- SCRIPT BEGINS HERE ---
  244.  
  245. local commands = {
  246. ["/e arrest PLR"] = "TARGET MUST BE BREAKING RULES",
  247. ["/e tools"] = "SENDS ALL TOOLS FROM ARMORY TO LOCALPLAYER",
  248. ["/e removedoors"] = "REMOVES ALL COP DOORS",
  249. ["/e escape"] = "MAKES LOCALPLAYER ESCAPE IF YOU ARE A PRISONER",
  250. ["/e btools"] = "GIVES BTOOLS TO LOCALPLAYER",
  251. }
  252.  
  253. local function FindPlayer(name)
  254. name = name:lower()
  255. for k,v in pairs(game:GetService("Players"):GetPlayers()) do
  256. if v.Name:lower():sub(1,#name) == name then
  257. return v
  258. end
  259. end
  260. end
  261.  
  262. game.Players.LocalPlayer.Chatted:connect(function(msg)
  263. if msg:sub(1,10) == "/e arrest " then
  264. local backupcframe = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  265. local player = FindPlayer(msg:sub(11))
  266. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
  267. wait(0.1)
  268. game.Workspace.Remote.arrest:InvokeServer(player.Character["Left Leg"])
  269. wait(0.5)
  270. if teleporttolastpost == true then
  271. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = backupcframe
  272. else
  273. end
  274. local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
  275. hint.Text = "[ BRACK'S PRISON LIFE COMMANDS ]: SUCCESSFULLY ARRESTED "..player.Name
  276. hint.Name = game.JobId
  277. wait(3)
  278. hint:Destroy()
  279. elseif msg:sub(1, 8) == "/e tools" then
  280. local weapons = {"Remington 870", "M9", "AK-47", "M4A1", "Riot Shield"}
  281. for i, v in pairs(game.Workspace["Prison_ITEMS"].giver:GetChildren()) do
  282. for j, k in pairs(weapons) do
  283. if v.Name == k then
  284. v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
  285. end
  286. end
  287. end
  288. local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
  289. hint.Text = "[ BRACK'S PRISON LIFE COMMANDS ]: SUCCESSFULLY SENT TOOLS TO LOCALPLAYER"
  290. hint.Name = game.JobId
  291. wait(3)
  292. hint:Destroy()
  293. elseif msg:sub(1, 14) == "/e removedoors" then
  294. game.Workspace.Doors:Destroy()
  295. local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
  296. hint.Text = "[ BRACK'S PRISON LIFE COMMANDS ]: SUCCESSFULLY REMOVED COP DOORS"
  297. hint.Name = game.JobId
  298. wait(3)
  299. hint:Destroy()
  300. elseif msg:sub(1, 9) == "/e escape" then
  301. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(283, 72, 2213)
  302. local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
  303. hint.Text = "[ BRACK'S PRISON LIFE COMMANDS ]: SUCCESSFULLY ESCAPED LOCALPLAYER"
  304. hint.Name = game.JobId
  305. wait(3)
  306. hint:Destroy()
  307. elseif msg:sub(1, 9) == "/e btools" then
  308. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 2
  309. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 3
  310. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 4
  311. loadstring(game:GetObjects('rbxassetid://552440069')[1].Source)()
  312. end
  313. end)
  314.  
  315. local msg = Instance.new("Message",game.CoreGui)
  316. msg.Name = game.JobId
  317. msg.Text = "[ BRACK'S PL COMMANDS LOADED! ]"
  318. wait(5)
  319. msg:Destroy()
  320. end)
  321.  
  322. OP_Shotgun.Name = "OP_Shotgun"
  323. OP_Shotgun.Parent = Box
  324. OP_Shotgun.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  325. OP_Shotgun.BorderSizePixel = 2
  326. OP_Shotgun.Position = UDim2.new(0.382470131, 0, 0.779661059, 0)
  327. OP_Shotgun.Size = UDim2.new(0, 59, 0, 50)
  328. OP_Shotgun.Font = Enum.Font.SciFi
  329. OP_Shotgun.Text = "OP_Shotgun"
  330. OP_Shotgun.TextColor3 = Color3.new(1, 1, 0)
  331. OP_Shotgun.TextSize = 11
  332. OP_Shotgun.MouseButton1Down:connect(function()
  333. local Player = game.Players.LocalPlayer.Name
  334. local Gun = "Remington 870" -- < -- Gun Name
  335. local Run = game:GetService("RunService")
  336.  
  337. Gun = game.Players[Player].Character[Gun]
  338. local Mouse = game.Players.LocalPlayer:GetMouse()
  339. local Down = false
  340. local Sound = Gun.Handle.FireSound
  341.  
  342. function CreateRay(Point_A, Point_B)
  343. local Ray = Ray.new(Point_A, (Point_B - Point_A).Unit * (2 ^ 31 - 1))
  344. local Part, Pos = workspace:FindPartOnRay(Ray, game.Players.LocalPlayer.Character)
  345. local Dist = (Point_A - Pos).Magnitude
  346. local CFrame = CFrame.new(Point_A, Pos) * CFrame.new(0, 0, -Dist / 2)
  347.  
  348. return CFrame, Dist, Ray
  349. end
  350.  
  351. function FireLaser(target)
  352. coroutine.resume(coroutine.create(function()
  353. local C, D, R = CreateRay(Gun.Muzzle.CFrame.p, target.CFrame.p)
  354. local Bullet = Instance.new("Part", Gun)
  355. Bullet.BrickColor = BrickColor.Yellow()
  356. Bullet.Material = "Neon"
  357. Bullet.Anchored = true
  358. Bullet.CanCollide = false
  359. Bullet.Size = Vector3.new(0.2, 0.2, D)
  360. Bullet.CFrame = C
  361.  
  362. local bulletTable = {}
  363. table.insert(bulletTable, {
  364. Hit = target,
  365. Distance = D,
  366. Cframe = C,
  367. RayObject = R
  368. })
  369.  
  370. game.ReplicatedStorage.ShootEvent:FireServer(bulletTable, Gun)
  371. local C = Sound:Clone()
  372. C.Parent = Gun
  373. C:Play()
  374. wait(0.05)
  375. Bullet:Remove()
  376. end))
  377. end
  378.  
  379. Mouse.Button1Down:Connect(function()
  380. Down = true
  381. end)
  382.  
  383.  
  384. Mouse.Button1Up:Connect(function()
  385. Down = false
  386. end)
  387.  
  388. while Run.Stepped:wait() do
  389. if Down == true then
  390. game.ReplicatedStorage.SoundEvent:FireServer(Sound, Gun)
  391. FireLaser(Mouse.Target)
  392. end
  393. end
  394. end)
  395.  
  396. OP_Taser.Name = "OP_Taser"
  397. OP_Taser.Parent = Box
  398. OP_Taser.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  399. OP_Taser.BorderSizePixel = 2
  400. OP_Taser.Position = UDim2.new(0.713147402, 0, 0.779661059, 0)
  401. OP_Taser.Size = UDim2.new(0, 59, 0, 50)
  402. OP_Taser.Font = Enum.Font.SciFi
  403. OP_Taser.Text = "OP_Taser"
  404. OP_Taser.TextColor3 = Color3.new(1, 1, 0)
  405. OP_Taser.TextSize = 13
  406. OP_Taser.MouseButton1Down:connect(function()
  407. local Player = game.Players.LocalPlayer.Name
  408. local Gun = "Taser" -- < -- Gun Name
  409. local Run = game:GetService("RunService")
  410.  
  411. Gun = game.Players[Player].Character[Gun]
  412. local Mouse = game.Players.LocalPlayer:GetMouse()
  413. local Down = false
  414. local Sound = Gun.Handle.FireSound
  415.  
  416. function CreateRay(Point_A, Point_B)
  417. local Ray = Ray.new(Point_A, (Point_B - Point_A).Unit * (2 ^ 31 - 1))
  418. local Part, Pos = workspace:FindPartOnRay(Ray, game.Players.LocalPlayer.Character)
  419. local Dist = (Point_A - Pos).Magnitude
  420. local CFrame = CFrame.new(Point_A, Pos) * CFrame.new(0, 0, -Dist / 2)
  421.  
  422. return CFrame, Dist, Ray
  423. end
  424.  
  425. function FireLaser(target)
  426. coroutine.resume(coroutine.create(function()
  427. local C, D, R = CreateRay(Gun.Muzzle.CFrame.p, target.CFrame.p)
  428. local Bullet = Instance.new("Part", Gun)
  429. Bullet.BrickColor = BrickColor.Yellow()
  430. Bullet.Material = "Neon"
  431. Bullet.Anchored = true
  432. Bullet.CanCollide = false
  433. Bullet.Size = Vector3.new(0.2, 0.2, D)
  434. Bullet.CFrame = C
  435.  
  436. local bulletTable = {}
  437. table.insert(bulletTable, {
  438. Hit = target,
  439. Distance = D,
  440. Cframe = C,
  441. RayObject = R
  442. })
  443.  
  444. game.ReplicatedStorage.ShootEvent:FireServer(bulletTable, Gun)
  445. local C = Sound:Clone()
  446. C.Parent = Gun
  447. C:Play()
  448. wait(0.05)
  449. Bullet:Remove()
  450. end))
  451. end
  452.  
  453. Mouse.Button1Down:Connect(function()
  454. Down = true
  455. end)
  456.  
  457.  
  458. Mouse.Button1Up:Connect(function()
  459. Down = false
  460. end)
  461.  
  462. while Run.Stepped:wait() do
  463. if Down == true then
  464. game.ReplicatedStorage.SoundEvent:FireServer(Sound, Gun)
  465. FireLaser(Mouse.Target)
  466. end
  467. end
  468. end)
  469.  
  470. Frame.Parent = Box
  471. Frame.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  472. Frame.Position = UDim2.new(0, 0, 0.310734451, 0)
  473. Frame.Size = UDim2.new(0, 251, 0, 6)
  474.  
  475. Frame_2.Parent = Frame
  476. Frame_2.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  477. Frame_2.Position = UDim2.new(0, 0, 12.3107347, 0)
  478. Frame_2.Size = UDim2.new(0, 251, 0, 6)
  479.  
  480. Frame_3.Parent = Frame
  481. Frame_3.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  482. Frame_3.Position = UDim2.new(0, 0, 25.1440678, 0)
  483. Frame_3.Size = UDim2.new(0, 251, 0, 6)
  484. -- Scripts:
  485. function SCRIPT_IVBF76_FAKESCRIPT() -- ScreenGui.LocalScript
  486. getfenv().script = Instance.new('LocalScript', ScreenGui)
  487.  
  488. Box = script.Parent.Box
  489. Button = script.Parent.OpenAndClose
  490. Open = false
  491.  
  492. Button.MouseButton1Down : connect (function (open)
  493. if Open == false then
  494. Button.Text = "Close"
  495. Box.Visible = true
  496. Open = true
  497. elseif Open == true then
  498. Button.Text = "Open"
  499. Box.Visible = false
  500. Open = false
  501.  
  502. end
  503. end)
  504.  
  505. end
  506. coroutine.resume(coroutine.create(SCRIPT_IVBF76_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement