-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode
More file actions
231 lines (185 loc) · 7.54 KB
/
code
File metadata and controls
231 lines (185 loc) · 7.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
local http_service = game:GetService('HttpService')
local player = game:GetService('Players').LocalPlayer
local tween_service = game:GetService('TweenService')
local character = player.Character or player.CharacterAdded:Wait()
local player_gui = player.PlayerGui
local can_activate = false
local can_close = false
local can_open = true
local function init()
local screen_gui = Instance.new('ScreenGui', player_gui)
screen_gui.Enabled = true
screen_gui.IgnoreGuiInset = true
screen_gui.ResetOnSpawn = false
task.spawn(function()
while true do
screen_gui.Name = http_service:GenerateGUID(false)
task.wait(3)
end
end)
local open_button = Instance.new('TextButton', screen_gui)
open_button.AnchorPoint = Vector2.new(0.5, 0.5)
open_button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
open_button.BorderColor3 = Color3.fromRGB(190, 190, 190)
open_button.BorderSizePixel = 2
open_button.Name = 'Open'
open_button.Position = UDim2.new(0.2, 0, 0.3, 0)
open_button.Size = UDim2.new(0, 0, 0, 50)
open_button.Font = Enum.Font.SourceSans
open_button.Text = 'V'
open_button.TextColor3 = Color3.fromRGB(190, 190, 190)
open_button.TextScaled = true
local selection_frame = Instance.new('Frame', open_button)
selection_frame.AnchorPoint = Vector2.new(0.5, 0.5)
selection_frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
selection_frame.BorderColor3 = Color3.fromRGB(190, 190, 190)
selection_frame.BorderSizePixel = 2
selection_frame.Name = 'Selection'
selection_frame.Position = UDim2.new(3.2, 0, 2.5, 0)
selection_frame.Size = UDim2.new(0, 0, 5, 0)
selection_frame.Visible = false
local ui_list_layout = Instance.new('UIListLayout', selection_frame)
ui_list_layout.FillDirection = Enum.FillDirection.Vertical
ui_list_layout.HorizontalFlex = Enum.UIFlexAlignment.Fill
ui_list_layout.Padding = UDim.new(0.02, 0)
ui_list_layout.SortOrder = Enum.SortOrder.LayoutOrder
local opening_tween = tween_service:Create(open_button, TweenInfo.new(1), {Size = UDim2.new(0, 50, 0, 50)})
opening_tween:Play()
opening_tween.Completed:Connect(function()
can_activate = true
end)
open_button.Activated:Connect(function()
if can_activate then
if not selection_frame.Visible then
if can_open then
can_close = false
selection_frame.Visible = not selection_frame.Visible
local opening_tween = tween_service:Create(selection_frame, TweenInfo.new(1), {Size = UDim2.new(4, 0, 5, 0)})
opening_tween:Play()
opening_tween.Completed:Connect(function()
can_close = true
end)
end
else
if can_close then
can_close = false
can_open = false
local opening_tween = tween_service:Create(selection_frame, TweenInfo.new(1), {Size = UDim2.new(0, 0, 5, 0)})
opening_tween:Play()
opening_tween.Completed:Connect(function()
can_open = true
selection_frame.Visible = not selection_frame.Visible
end)
end
end
end
end)
task.spawn(function()
local option_1_button = Instance.new('TextButton', selection_frame)
option_1_button.AnchorPoint = Vector2.new(0.5, 0.5)
option_1_button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
option_1_button.BorderColor3 = Color3.fromRGB(190, 190, 190)
option_1_button.BorderSizePixel = 2
option_1_button.LayoutOrder = 1
option_1_button.Name = '1'
option_1_button.Position = UDim2.new(0.2, 0, 0.3, 0)
option_1_button.Size = UDim2.new(1, 0, 0.18, 0)
option_1_button.Font = Enum.Font.SourceSans
option_1_button.Text = 'Infinite Ammo'
option_1_button.TextColor3 = Color3.fromRGB(190, 190, 190)
option_1_button.TextScaled = true
local option_2_button = Instance.new('TextButton', selection_frame)
option_2_button.AnchorPoint = Vector2.new(0.5, 0.5)
option_2_button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
option_2_button.BorderColor3 = Color3.fromRGB(190, 190, 190)
option_2_button.BorderSizePixel = 2
option_2_button.LayoutOrder = 2
option_2_button.Name = '2'
option_2_button.Position = UDim2.new(0.2, 0, 0.3, 0)
option_2_button.Size = UDim2.new(1, 0, 0.18, 0)
option_2_button.Font = Enum.Font.SourceSans
option_2_button.Text = 'Negative Firerate'
option_2_button.TextColor3 = Color3.fromRGB(190, 190, 190)
option_2_button.TextScaled = true
local option_3_button = Instance.new('TextButton', selection_frame)
option_3_button.AnchorPoint = Vector2.new(0.5, 0.5)
option_3_button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
option_3_button.BorderColor3 = Color3.fromRGB(190, 190, 190)
option_3_button.BorderSizePixel = 2
option_3_button.LayoutOrder = 3
option_3_button.Name = '3'
option_3_button.Position = UDim2.new(0.2, 0, 0.3, 0)
option_3_button.Size = UDim2.new(1, 0, 0.18, 0)
option_3_button.Font = Enum.Font.SourceSans
option_3_button.Text = 'Negative Spread'
option_3_button.TextColor3 = Color3.fromRGB(190, 190, 190)
option_3_button.TextScaled = true
local option_4_button = Instance.new('TextButton', selection_frame)
option_4_button.AnchorPoint = Vector2.new(0.5, 0.5)
option_4_button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
option_4_button.BorderColor3 = Color3.fromRGB(190, 190, 190)
option_4_button.BorderSizePixel = 2
option_4_button.LayoutOrder = 4
option_4_button.Name = '4'
option_4_button.Position = UDim2.new(0.2, 0, 0.3, 0)
option_4_button.Size = UDim2.new(1, 0, 0.18, 0)
option_4_button.Font = Enum.Font.SourceSans
option_4_button.Text = 'Turn into Multi'
option_4_button.TextColor3 = Color3.fromRGB(190, 190, 190)
option_4_button.TextScaled = true
local option_5_button = Instance.new('TextButton', selection_frame)
option_5_button.AnchorPoint = Vector2.new(0.5, 0.5)
option_5_button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
option_5_button.BorderColor3 = Color3.fromRGB(190, 190, 190)
option_5_button.BorderSizePixel = 2
option_5_button.LayoutOrder = 5
option_5_button.Name = '5'
option_5_button.Position = UDim2.new(0.2, 0, 0.3, 0)
option_5_button.Size = UDim2.new(1, 0, 0.18, 0)
option_5_button.Font = Enum.Font.SourceSans
option_5_button.Text = 'Turn into Laser'
option_5_button.TextColor3 = Color3.fromRGB(190, 190, 190)
option_5_button.TextScaled = true
option_1_button.Activated:Connect(function()
if character:FindFirstChildOfClass('Tool') then
local tool = character:FindFirstChildOfClass('Tool')
if tool:FindFirstChild('Stats') then
tool:FindFirstChild('Stats').ClipSize.Value = 10000000000
end
end
end)
option_2_button.Activated:Connect(function()
if character:FindFirstChildOfClass('Tool') then
local tool = character:FindFirstChildOfClass('Tool')
if tool:FindFirstChild('Stats') then
tool:FindFirstChild('Stats').Firerate.Value = 0
end
end
end)
option_3_button.Activated:Connect(function()
if character:FindFirstChildOfClass('Tool') then
local tool = character:FindFirstChildOfClass('Tool')
if tool:FindFirstChild('Stats') then
tool:FindFirstChild('Stats').spreadMax.Value = 0
end
end
end)
option_4_button.Activated:Connect(function()
if character:FindFirstChildOfClass('Tool') then
local tool = character:FindFirstChildOfClass('Tool')
if tool:FindFirstChild('Stats') then
tool:FindFirstChild('Stats').Shots.Value = 5
end
end
end)
option_5_button.Activated:Connect(function()
if character:FindFirstChildOfClass('Tool') then
local tool = character:FindFirstChildOfClass('Tool')
if tool:FindFirstChild('Stats') then
tool:FindFirstChild('Stats').Laser.Value = true
end
end
end)
end)
end
coroutine.wrap(init)()