SHOW:
|
|
- or go back to the newest paste.
1 | wait(1) | |
2 | ||
3 | -- Local Player | |
4 | local p = game.Players.LocalPlayer | |
5 | ||
6 | -- Instance Objects | |
7 | local gui = Instance.new('ScreenGui',p.PlayerGui) | |
8 | local frame = Instance.new('ScrollingFrame',gui) | |
9 | local open = Instance.new('TextButton',gui) | |
10 | local name = Instance.new('TextLabel',frame) | |
11 | local arrest = Instance.new('TextButton',frame) | |
12 | local btools = Instance.new('TextButton',frame) | |
13 | local escape = Instance.new('TextButton',frame) | |
14 | local exit = Instance.new('TextButton',frame) | |
15 | local killaura = Instance.new('TextButton',frame) | |
16 | local melee = Instance.new('TextButton',frame) | |
17 | local removedoors = Instance.new('TextButton',frame) | |
18 | local tools = Instance.new('TextButton',frame) | |
19 | ||
20 | -- Name object | |
21 | gui.Name = "Prison Life v2.0 GUI" | |
22 | frame.Name = "Commands" | |
23 | open.Name = "Open" | |
24 | name.Name = "Name" | |
25 | arrest.Name = "ArrestButton" | |
26 | btools.Name = "BtoolsButton" | |
27 | escape.Name = "EscapeButton" | |
28 | exit.Name = "ExitButton" | |
29 | killaura.Name = "KillauraButton" | |
30 | melee.Name = "MeleeButton" | |
31 | removedoors.Name = "RemoveDoorsButton" | |
32 | tools.Name = "ToolsButton" | |
33 | ||
34 | -- Object Visible | |
35 | frame.Visible = true | |
36 | open.Visible = false | |
37 | name.Visible = true | |
38 | arrest.Visible = true | |
39 | btools.Visible = true | |
40 | escape.Visible = true | |
41 | exit.Visible = true | |
42 | killaura.Visible = true | |
43 | melee.Visible = true | |
44 | removedoors.Visible = true | |
45 | tools.Visible = true | |
46 | ||
47 | -- Background Color | |
48 | frame.BackgroundColor3 = Color3.new(255,255,255) | |
49 | open.BackgroundColor3 = Color3.new(0,255,255) | |
50 | name.BackgroundColor3 = Color3.new(255,255,255) | |
51 | arrest.BackgroundColor3 = Color3.new(0,0,255) | |
52 | btools.BackgroundColor3 = Color3.new(0,0,255) | |
53 | escape.BackgroundColor3 = Color3.new(0,0,255) | |
54 | exit.BackgroundColor3 = Color3.new(255,0,0) | |
55 | killaura.BackgroundColor3 = Color3.new(0,0,255) | |
56 | melee.BackgroundColor3 = Color3.new(0,0,255) | |
57 | removedoors.BackgroundColor3 = Color3.new(0,0,255) | |
58 | tools.BackgroundColor3 = Color3.new(0,0,255) | |
59 | ||
60 | -- Background Transparency | |
61 | frame.BackgroundTransparency = 0.5 | |
62 | open.BackgroundTransparency = 0 | |
63 | name.BackgroundTransparency = 0.6 | |
64 | arrest.BackgroundTransparency = 0 | |
65 | btools.BackgroundTransparency = 0 | |
66 | escape.BackgroundTransparency = 0 | |
67 | exit.BackgroundTransparency = 0 | |
68 | killaura.BackgroundTransparency = 0 | |
69 | melee.BackgroundTransparency = 0 | |
70 | removedoors.BackgroundTransparency = 0 | |
71 | tools.BackgroundTransparency = 0 | |
72 | ||
73 | -- Objects Size | |
74 | frame.Size = UDim2.new(0,250,0,300) | |
75 | open.Size = UDim2.new(0,80,0,30) | |
76 | name.Size = UDim2.new(0,180,0,40) | |
77 | arrest.Size = UDim2.new(0.9,12,0,30) | |
78 | btools.Size = UDim2.new(0.9,12,0,30) | |
79 | escape.Size = UDim2.new(0.9,12,0,30) | |
80 | exit.Size = UDim2.new(0,50,0,40) | |
81 | killaura.Size = UDim2.new(0.9,12,0,30) | |
82 | melee.Size = UDim2.new(0.9,12,0,30) | |
83 | removedoors.Size = UDim2.new(0.9,12,0,30) | |
84 | tools.Size = UDim2.new(0.9,12,0,30) | |
85 | ||
86 | -- Objects Position | |
87 | frame.Position = UDim2.new(0,5,0.4,0) | |
88 | open.Position = UDim2.new(0,0,0,0) | |
89 | name.Position = UDim2.new(0,0,0,0) | |
90 | arrest.Position = UDim2.new(0,0,0,320) | |
91 | btools.Position = UDim2.new(0,0,0,185) | |
92 | escape.Position = UDim2.new(0,0,0,230) | |
93 | exit.Position = UDim2.new(0,184,0,0) | |
94 | killaura.Position = UDim2.new(0,0,0,275) | |
95 | melee.Position = UDim2.new(0,0,0,140) | |
96 | removedoors.Position = UDim2.new(0,0,0,50) | |
97 | tools.Position = UDim2.new(0,0,0,95) | |
98 | ||
99 | -- Objects Text Color | |
100 | open.TextColor3 = Color3.new(0,0,0) | |
101 | name.TextColor3 = Color3.new(0,255,255) | |
102 | arrest.TextColor3 = Color3.new(0,0,0) | |
103 | btools.TextColor3 = Color3.new(0,0,0) | |
104 | escape.TextColor3 = Color3.new(0,0,0) | |
105 | exit.TextColor3 = Color3.new(0,0,0) | |
106 | killaura.TextColor3 = Color3.new(0,0,0) | |
107 | melee.TextColor3 = Color3.new(0,0,0) | |
108 | removedoors.TextColor3 = Color3.new(0,0,0) | |
109 | tools.TextColor3 = Color3.new(0,0,0) | |
110 | ||
111 | -- Object Font | |
112 | name.Font = 'Fantasy' | |
113 | ||
114 | -- Object Text | |
115 | open.Text = 'Open' | |
116 | name.Text = 'Prison Life v2.0 Commands' | |
117 | arrest.Text = 'Arrest [Cops Only]' | |
118 | btools.Text = 'Give Btools' | |
119 | escape.Text = 'Escape The Prison' | |
120 | exit.Text = 'Exit' | |
121 | killaura.Text = 'Kill Aura [Danger]' | |
122 | melee.Text = 'Give Melee' | |
123 | removedoors.Text = 'Remove Doors' | |
124 | tools.Text = 'Give Guns' | |
125 | ||
126 | -- Object Text Scaled | |
127 | open.TextScaled = true | |
128 | name.TextScaled = true | |
129 | arrest.TextScaled = true | |
130 | btools.TextScaled = true | |
131 | escape.TextScaled = true | |
132 | exit.TextScaled = true | |
133 | killaura.TextScaled = true | |
134 | melee.TextScaled = true | |
135 | removedoors.TextScaled = true | |
136 | tools.TextScaled = true | |
137 | ||
138 | -- Frame Moveable | |
139 | frame.Active = true | |
140 | frame.Draggable = true | |
141 | ||
142 | -- Open Function | |
143 | open.MouseButton1Down:connect(function() | |
144 | frame.Visible = true | |
145 | frame:TweenPosition(UDim2.new(0,5,0.4,0), "Out", "Bounce",1 ,true) | |
146 | open.Visible = false | |
147 | open.Position = UDim2.new(0,0,0,0) | |
148 | end) | |
149 | ||
150 | -- Close/Exit Function | |
151 | exit.MouseButton1Down:connect(function() | |
152 | frame:TweenPosition(UDim2.new(0.1,-400,0.4,0) , "Out", "Quad", 1, true) | |
153 | wait(1) | |
154 | frame.Visible = false | |
155 | wait(.1) | |
156 | open.Visible = true | |
157 | open:TweenPosition(UDim2.new(0,2,0.8,15), "Out", "Bounce",1 ,true) | |
158 | end) | |
159 | ||
160 | -- Remove Doors Function | |
161 | removedoors.MouseButton1Down:connect(function() | |
162 | game.Workspace.Doors:Destroy() | |
163 | local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui) | |
164 | hint.Text = "[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY REMOVED COP DOORS" | |
165 | hint.Name = game.JobId | |
166 | wait(3) | |
167 | hint:Destroy() | |
168 | end) | |
169 | ||
170 | -- Guns Function | |
171 | tools.MouseButton1Down:connect(function() | |
172 | local weapons = {"Remington 870", "M9", "AK-47", "M4A1", "Riot Shield"} | |
173 | for i, v in pairs(game.Workspace["Prison_ITEMS"].giver:GetChildren()) do | |
174 | for j, k in pairs(weapons) do | |
175 | if v.Name == k then | |
176 | v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position) | |
177 | end | |
178 | end | |
179 | end | |
180 | local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui) | |
181 | hint.Text = "[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY SENT TOOLS TO LOCALPLAYER" | |
182 | hint.Name = game.JobId | |
183 | wait(3) | |
184 | hint:Destroy() | |
185 | end) | |
186 | ||
187 | -- Melee Function | |
188 | melee.MouseButton1Down:connect(function() | |
189 | local weapons = {"Crude Knife", "Sharpened stick", "Extendo mirror"} | |
190 | for i, v in pairs(game.ReplicatedStorage.Tools:GetChildren()) do | |
191 | for j, k in pairs(weapons) do | |
192 | if v.Name == k then | |
193 | v:Clone().Parent = game.Players.LocalPlayer.Backpack | |
194 | end | |
195 | end | |
196 | end | |
197 | local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui) | |
198 | hint.Text = "[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY SENT MELEE TOOLS TO LOCALPLAYER" | |
199 | hint.Name = game.JobId | |
200 | wait(3) | |
201 | hint:Destroy() | |
202 | end) | |
203 | ||
204 | -- Btools Function | |
205 | btools.MouseButton1Down:connect(function() | |
206 | Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 2 | |
207 | Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 3 | |
208 | Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 4 | |
209 | loadstring(game:GetObjects('rbxassetid://552440069')[1].Source)() | |
210 | end) | |
211 | ||
212 | -- Escape Function | |
213 | escape.MouseButton1Down:connect(function() | |
214 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(283, 72, 2213) | |
215 | local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui) | |
216 | hint.Text = "[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY ESCAPED LOCALPLAYER" | |
217 | hint.Name = game.JobId | |
218 | wait(3) | |
219 | hint:Destroy() | |
220 | end) | |
221 | ||
222 | -- Kill Aura Function | |
223 | killaura.MouseButton1Down:connect(function() | |
224 | while wait(0.1) do | |
225 | for i, plr in pairs(game.Players:GetChildren()) do | |
226 | if plr.Name ~= game.Players.LocalPlayer.Name then | |
227 | for i = 1, 10 do | |
228 | game.ReplicatedStorage.meleeEvent:FireServer(plr) | |
229 | end | |
230 | end | |
231 | end | |
232 | end | |
233 | end) | |
234 | ||
235 | -- Arrest Function | |
236 | local mouse = game.Players.LocalPlayer:GetMouse() | |
237 | local arrestEvent = game.Workspace.Remote.arrest | |
238 | mouse.Button1Down:connect(function() | |
239 | local obj = mouse.Target | |
240 | local response = arrestEvent:InvokeServer(obj) | |
241 | end) |