forked from 0W0Pumpkin/VapeV4ForRoblox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOldMainScript.lua
499 lines (484 loc) · 21.6 KB
/
OldMainScript.lua
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
if shared.VapeExecuted then
return
else
shared.VapeExecuted = true
end
local function GetURL(scripturl)
if shared.VapeDeveloper then
return readfile("vape/"..scripturl)
else
return game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/"..scripturl, true)
end
end
local GuiLibrary = loadstring(GetURL("OldGuiLibrary.lua"))()
shared.GuiLibrary = GuiLibrary
local workspace = game:GetService("Workspace")
local cam = workspace.CurrentCamera
local selfdestruct = false
local GUI = GuiLibrary.CreateWindow("GUI", "🖥", UDim2.new(0, 6, 0, 6), true)
local Combat = GuiLibrary.CreateWindow("Combat", "⚔", UDim2.new(0, 177, 0, 6), false)
local Blatant = GuiLibrary.CreateWindow("Blatant", "⚠", UDim2.new(0, 177, 0, 6), false)
local Render = GuiLibrary.CreateWindow("Render", "👁", UDim2.new(0, 177, 0, 6), false)
local Utility = GuiLibrary.CreateWindow("Utility", "🛠", UDim2.new(0, 177, 0, 6), false)
local World = GuiLibrary.CreateWindow("World", "🌎", UDim2.new(0, 177, 0, 6), false)
local Other = GuiLibrary.CreateWindow("Other", "❔", UDim2.new(0, 177, 0, 6), false)
local Settings = GuiLibrary.CreateWindow("Settings", "⚙", UDim2.new(0, 177, 0, 6), false)
local Friends = GuiLibrary.CreateWindow("Friends", "👨👦", UDim2.new(0, 177, 0, 6), false)
local Search = GuiLibrary.CreateWindow("Search", "🔍", UDim2.new(0, 177, 0, 6), false)
local TextGui = GuiLibrary.CreateCustomWindow("Text GUI", "📄", UDim2.new(0, 177, 0, 6), false)
local rainbowval = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 1))})
local rainbowval2 = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 0.42)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 0.42))})
local rainbowval3 = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 1))})
local guicolorslider = {["RainbowValue"] = false}
spawn(function()
local counter = 0
local w = math.pi / 12
local CS = {}
local CS2 = {}
local CS3 = {}
--4
local num = 4
local frames = 0
repeat
wait()
if guicolorslider["RainbowValue"] then
if math.fmod(frames, 2) == 0 then
for i = 0, num do
local c = Color3.fromRGB(127 * math.sin(w*i + counter) + 128, 127 * math.sin(w*i + 2 * math.pi/3 + counter) + 128, 127*math.sin(w*i + 4*math.pi/3 + counter) + 128)
table.insert(CS, i+1, ColorSequenceKeypoint.new(i/num, c))
local h, s, v = c:ToHSV()
local str = tostring(h + 0.12)
local newcol = tonumber("0"..string.sub(str, 2, string.len(str)))
table.insert(CS2, i+1, ColorSequenceKeypoint.new(i/num, Color3.fromHSV(newcol, s, 0.42)))
table.insert(CS3, i+1, ColorSequenceKeypoint.new(i/num, Color3.fromHSV(newcol, s, v)))
end
rainbowval = ColorSequence.new(CS)
rainbowval2 = ColorSequence.new(CS2)
rainbowval3 = ColorSequence.new(CS3)
pcall(function()
TextGui.GetCustomChildren().Logo.Gradient.Color = rainbowval
TextGui.GetCustomChildren().Logo.ImageLabel.Gradient.Color = rainbowval
TextGui.GetCustomChildren().TextLabel.Gradient.Color = rainbowval3
TextGui.GetCustomChildren().TextLabel.TextLabel.Gradient.Color = rainbowval2
end)
CS = {}
CS2 = {}
CS3 = {}
counter = counter + math.pi/40
if (counter >= math.pi * 2) then
counter = 0
end
end
if frames >= 1000 then
frames = 0
end
frames = frames + 2
end
until selfdestruct
end)
local onething = Instance.new("ImageLabel")
onething.Parent = TextGui.GetCustomChildren()
onething.Name = "Logo"
onething.Size = UDim2.new(0, 77, 0, 32)
onething.Position = UDim2.new(1, -154, 0, 3)
onething.BackgroundColor3 = Color3.new(0, 0, 0)
onething.BorderSizePixel = 0
onething.BackgroundTransparency = 1
onething.Visible = false
onething.Image = "http://www.roblox.com/asset/?id=5093061259"
local onething2 = Instance.new("ImageLabel")
onething2.Parent = onething
onething2.Size = UDim2.new(0, 77, 0, 32)
onething2.Position = UDim2.new(1, 0, 0, 0)
onething2.BorderSizePixel = 0
onething2.BackgroundColor3 = Color3.new(0, 0, 0)
onething2.BackgroundTransparency = 1
onething2.Image = "http://www.roblox.com/asset/?id=5093114878"
local onetext = Instance.new("TextLabel")
onetext.Parent = TextGui.GetCustomChildren()
onetext.Size = UDim2.new(1, 0, 1, 0)
onetext.Position = UDim2.new(1, -154, 0, 35)
onetext.TextColor3 = Color3.new(1, 1, 1)
onetext.BackgroundTransparency = 1
onetext.TextXAlignment = Enum.TextXAlignment.Left
onetext.TextYAlignment = Enum.TextYAlignment.Top
onetext.BorderSizePixel = 0
onetext.BackgroundColor3 = Color3.new(0, 0, 0)
onetext.Font = Enum.Font.SourceSans
onetext.Text = ""
onetext.TextSize = 20
local onetext2 = Instance.new("TextLabel")
onetext2.Name = "ExtraText"
onetext2.Parent = onetext
onetext2.Size = UDim2.new(1, 0, 1, 0)
onetext2.Position = UDim2.new(0, 1, 0, 1)
onetext2.BorderSizePixel = 0
onetext2.Visible = false
onetext2.ZIndex = 0
onetext2.Text = ""
onetext2.BackgroundTransparency = 1
onetext2.TextTransparency = 0.5
onetext2.TextXAlignment = Enum.TextXAlignment.Left
onetext2.TextYAlignment = Enum.TextYAlignment.Top
onetext2.TextColor3 = Color3.new(0, 0, 0)
onetext2.Font = Enum.Font.SourceSans
onetext:GetPropertyChangedSignal("Text"):connect(function() onetext2.Text = onetext.Text end)
onetext2.TextSize = 20
local onetext3 = onetext:Clone()
onetext3.Name = "ExtraText"
onetext3.Position = UDim2.new(0, 0, 0, 0)
onetext3.TextColor3 = Color3.new(0.65, 0.65, 0.65)
onetext3.Parent = onetext
local onetext4 = onetext3.ExtraText
onetext4.TextColor3 = Color3.new(0, 0, 0)
onetext4.TextTransparency = 0.5
onetext3:GetPropertyChangedSignal("Text"):connect(function() onetext4.Text = onetext3.Text end)
for i2,v2 in pairs(TextGui.GetCustomChildren():GetDescendants()) do
if v2.Name ~= "ExtraText" then
local gradient = Instance.new("UIGradient")
gradient.Rotation = 270
gradient.Name = "Gradient"
gradient.Parent = v2
end
end
TextGui.GetCustomChildren().Parent:GetPropertyChangedSignal("Position"):connect(function()
if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
onetext.TextXAlignment = Enum.TextXAlignment.Right
onetext2.TextXAlignment = Enum.TextXAlignment.Right
onetext3.TextXAlignment = Enum.TextXAlignment.Right
onetext4.TextXAlignment = Enum.TextXAlignment.Right
onething.Position = UDim2.new(1, -154, 0, 3)
onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 3))
else
onetext.TextXAlignment = Enum.TextXAlignment.Left
onetext2.TextXAlignment = Enum.TextXAlignment.Left
onetext3.TextXAlignment = Enum.TextXAlignment.Left
onetext4.TextXAlignment = Enum.TextXAlignment.Left
onething.Position = UDim2.new(0, 3, 0, 3)
onetext.Position = UDim2.new(0, 3, 0, (onething.Visible and 35 or 3))
end
end)
local sortingmethod = "Alphabetical"
local function getSpaces(str)
local strSize = game:GetService("TextService"):GetTextSize(str, 20, Enum.Font.SourceSans, Vector2.new(10000, 10000))
return math.ceil(strSize.X / 3)
end
local function UpdateHud()
local text = ""
local text2 = ""
local tableofmodules = {}
local first = true
for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
if v["Type"] == "OptionsButton" and v["Api"]["Name"] ~= "Text GUI" then
if v["Api"]["Enabled"] then
table.insert(tableofmodules, {["Text"] = v["Api"]["Name"], ["ExtraText"] = v["Api"]["GetExtraText"]})
end
end
end
if sortingmethod == "Alphabetical" then
table.sort(tableofmodules, function(a, b) return a["Text"]:lower() < b["Text"]:lower() end)
end
for i2,v2 in pairs(tableofmodules) do
if first then
text = v2["Text"]..string.rep(" ", getSpaces(v2["ExtraText"]()))
text2 = string.rep(" ", getSpaces(v2["Text"]))..v2["ExtraText"]()
first = false
else
text = text..'\n'..v2["Text"]..string.rep(" ", getSpaces(v2["ExtraText"]()))
text2 = text2..'\n'..string.rep(" ", getSpaces(v2["Text"]))..v2["ExtraText"]()
end
end
onetext.Text = text
onetext3.Text = text2
local newsize = game:GetService("TextService"):GetTextSize(text, onetext.TextSize, onetext.Font, Vector2.new(1000000, 1000000))
onetext.Size = UDim2.new(0, 154, 0, newsize.Y)
onetext3.Size = UDim2.new(0, 154, 0, newsize.Y)
if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
onetext.TextXAlignment = Enum.TextXAlignment.Right
onetext2.TextXAlignment = Enum.TextXAlignment.Right
onetext3.TextXAlignment = Enum.TextXAlignment.Right
onetext4.TextXAlignment = Enum.TextXAlignment.Right
onething.Position = UDim2.new(1, -154, 0, 3)
onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 3))
else
onetext.TextXAlignment = Enum.TextXAlignment.Left
onetext2.TextXAlignment = Enum.TextXAlignment.Left
onetext3.TextXAlignment = Enum.TextXAlignment.Left
onetext4.TextXAlignment = Enum.TextXAlignment.Left
onething.Position = UDim2.new(0, 3, 0, 3)
onetext.Position = UDim2.new(0, 3, 0, (onething.Visible and 35 or 3))
end
end
GuiLibrary["UpdateHudEvent"].Event:connect(UpdateHud)
GUI.CreateButton("Combat", function() Combat.SetVisible(true) end, function() Combat.SetVisible(false) end)
GUI.CreateButton("Blatant", function() Blatant.SetVisible(true) end, function() Blatant.SetVisible(false) end)
GUI.CreateButton("Render", function() Render.SetVisible(true) end, function() Render.SetVisible(false) end)
GUI.CreateButton("Utility", function() Utility.SetVisible(true) end, function() Utility.SetVisible(false) end)
GUI.CreateButton("World", function() World.SetVisible(true) end, function() World.SetVisible(false) end)
GUI.CreateButton("Other", function() Other.SetVisible(true) end, function() Other.SetVisible(false) end)
GUI.CreateButton("Settings", function() Settings.SetVisible(true) end, function() Settings.SetVisible(false) end)
GUI.CreateButton("Friends", function() Friends.SetVisible(true) end, function() Friends.SetVisible(false) end)
GUI.CreateButton("Search", function() Search.SetVisible(true) end, function() Search.SetVisible(false) end)
Friends.CreateColorSlider("Friends Color", function(val) GuiLibrary["FriendsObject"]["Color"] = val end)
Friends.CreateToggle("Use color", function() end, function() end)
Friends.CreateToggle("Use Friends", function() end, function() end)
local FriendsTextList = {["RefreshValues"] = function() end}
FriendsTextList = Friends.CreateTextList("FriendList", "<username>", function(user)
table.insert(GuiLibrary["FriendsObject"]["Friends"], user)
FriendsTextList["RefreshValues"](GuiLibrary["FriendsObject"]["Friends"])
GuiLibrary["SaveFriends"]()
end, function(num)
table.remove(GuiLibrary["FriendsObject"]["Friends"], num)
FriendsTextList["RefreshValues"](GuiLibrary["FriendsObject"]["Friends"])
GuiLibrary["SaveFriends"]()
end)
GuiLibrary["FriendsObject"]["MiddleClickFunc"] = function(user)
if table.find(GuiLibrary["FriendsObject"]["Friends"], user) == nil then
table.insert(GuiLibrary["FriendsObject"]["Friends"], user)
FriendsTextList["RefreshValues"](GuiLibrary["FriendsObject"]["Friends"])
GuiLibrary["SaveFriends"]()
else
table.remove(GuiLibrary["FriendsObject"]["Friends"], table.find(GuiLibrary["FriendsObject"]["Friends"], user))
FriendsTextList["RefreshValues"](GuiLibrary["FriendsObject"]["Friends"])
GuiLibrary["SaveFriends"]()
end
end
local searchColor = {["Value"] = 0.44}
local searchModule = {["Enabled"] = false}
local searchFolder = Instance.new("Folder")
searchFolder.Name = "SearchFolder"
searchFolder.Parent = GuiLibrary["MainGui"]
local function searchFindBoxHandle(part)
for i,v in pairs(searchFolder:GetChildren()) do
if v.Adornee == part then
return v
end
end
return nil
end
local searchAdd
local searchRemove
local searchRefresh = function()
searchFolder:ClearAllChildren()
if searchModule["Enabled"] then
for i,v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and table.find(GuiLibrary["Settings"]["SearchObject"]["List"], v.Name) and searchFindBoxHandle(v) == nil then
local boxhandle = Instance.new("BoxHandleAdornment")
boxhandle.Name = v.Name
boxhandle.AlwaysOnTop = true
boxhandle.Color3 = Color3.fromHSV(searchColor["Value"], 1, 1)
boxhandle.Adornee = v
boxhandle.ZIndex = 10
boxhandle.Size = v.Size
boxhandle.Transparency = 0.5
boxhandle.Parent = searchFolder
end
end
end
end
local searchTextList = {["RefreshValues"] = function() end}
searchColor = Search.CreateColorSlider("new part color", function(val)
for i,v in pairs(searchFolder:GetChildren()) do
v.Color3 = Color3.fromHSV(val, 1, 1)
end
end)
searchModule = Search.CreateOptionsButton("Search", function()
searchRefresh()
searchAdd = workspace.DescendantAdded:connect(function(v)
if v:IsA("BasePart") and table.find(GuiLibrary["Settings"]["SearchObject"]["List"], v.Name) and searchFindBoxHandle(v) == nil then
local boxhandle = Instance.new("BoxHandleAdornment")
boxhandle.Name = v.Name
boxhandle.AlwaysOnTop = true
boxhandle.Color3 = Color3.fromHSV(searchColor["Value"], 1, 1)
boxhandle.Adornee = v
boxhandle.ZIndex = 10
boxhandle.Size = v.Size
boxhandle.Transparency = 0.5
boxhandle.Parent = searchFolder
end
end)
searchRemove = workspace.DescendantRemoving:connect(function(v)
if v:IsA("BasePart") then
local boxhandle = searchFindBoxHandle(v)
if boxhandle then
boxhandle:Remove()
end
end
end)
end, function()
pcall(function()
searchFolder:ClearAllChildren()
searchAdd:Disconnect()
searchRemove:Disconnect()
end)
end, false)
SearchTextList = Search.CreateTextList("SearchList", "<part name>", function(user)
table.insert(GuiLibrary["Settings"]["SearchObject"]["List"], user)
SearchTextList["RefreshValues"](GuiLibrary["Settings"]["SearchObject"]["List"])
searchRefresh()
end, function(num)
table.remove(GuiLibrary["Settings"]["SearchObject"]["List"], num)
SearchTextList["RefreshValues"](GuiLibrary["Settings"]["SearchObject"]["List"])
searchRefresh()
end)
local XrayAdd
local Xray = GuiLibrary["ObjectsThatCanBeSaved"]["WorldWindow"]["Api"].CreateOptionsButton("Xray", function()
XrayAdd = workspace.DescendantAdded:connect(function(v)
if v:IsA("BasePart") and not v.Parent:FindFirstChild("Humanoid") and not v.Parent.Parent:FindFirstChild("Humanoid") then
v.LocalTransparencyModifier = 0.5
end
end)
for i, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and not v.Parent:FindFirstChild("Humanoid") and not v.Parent.Parent:FindFirstChild("Humanoid") then
v.LocalTransparencyModifier = 0.5
end
end
end, function()
for i, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and not v.Parent:FindFirstChild("Humanoid") and not v.Parent.Parent:FindFirstChild("Humanoid") then
v.LocalTransparencyModifier = 0
end
end
XrayAdd:Disconnect()
end, false)
local TextGUI = GUI.CreateOptionsButton("Text GUI", function() TextGui.SetVisible(true) end, function() TextGui.SetVisible(false) end, true)
TextGUI.CreateDropdown("Mode", {"Alphabetical", "Random"}, function(val) sortingmethod = val UpdateHud() end)
TextGUI.CreateToggle("Watermark", function() onething.Visible = true onetext.Position = UDim2.new(0, 0, 0, 35) end, function() onething.Visible = false onetext.Position = UDim2.new(0, 0, 0, 0) end)
TextGUI.CreateToggle("Shadow", function() onetext2.Visible = true onetext4.Visible = true end, function() onetext2.Visible = false onetext4.Visible = false end)
TextGUI.CreateToggle("Render background", function()
onething.BackgroundTransparency = 0.5
onething2.BackgroundTransparency = 0.5
onetext.BackgroundTransparency = 0.5
end, function()
onething.BackgroundTransparency = 1
onething2.BackgroundTransparency = 1
onetext.BackgroundTransparency = 1
end)
local SelfDestructButton = {["ToggleButton"] = function() end}
Other.CreateOptionsButton("Anti-AFK", function()
local GC = getconnections or get_signal_cons
if GC then
for i,v in pairs(GC(game.Players.LocalPlayer.Idled)) do
if v["Disable"] then
v["Disable"](v)
elseif v["Disconnect"] then
v["Disconnect"](v)
end
end
end
end, function() end, false)
SelfDestructButton = Other.CreateOptionsButton("SelfDestruct", function()
selfdestruct = true
SelfDestructButton["ToggleButton"](false)
GuiLibrary["SaveSettings"]()
GuiLibrary["SaveFriends"]()
for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
if (v["Type"] == "Button" or v["Type"] == "OptionsButton") and v["Api"]["Enabled"] then
v["Api"]["ToggleButton"](false)
end
end
shared.VapeExecuted = nil
GuiLibrary["KeyInputHandler"]:Disconnect()
GuiLibrary["KeyInputHandler2"]:Disconnect()
GuiLibrary["MainGui"]:Remove()
GuiLibrary["MainBlur"]:Remove()
end, function() end, false)
SelfDestructButton["Bindable"] = false
guicolorslider = Settings.CreateColorSlider("Gui Color", function(val) GuiLibrary["Settings"]["GUIObject"]["Color"] = val GuiLibrary["UpdateUI"]() end)
GuiLibrary["UpdateUI"] = function()
--pcall(function()
if not guicolorslider["RainbowValue"] then
onething.Gradient.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1))})
onething2.Gradient.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1))})
onetext.Gradient.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1))})
-- onetext2.Gradient.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 0.42)), ColorSequenceKeypoint.new(1, Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 0.42))})
end
for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
if v["Type"] == "Button" and v["Api"]["Enabled"] then
if guicolorslider["RainbowValue"] then
local rainbowsub = 2
local rainbowcolor = GuiLibrary["Settings"]["GUIObject"]["Color"] + (-0.015 * v["Object"].LayoutOrder)
if rainbowcolor < 0 then rainbowsub = 3 rainbowcolor = rainbowcolor * 0.25 end
local str = tostring(rainbowcolor)
local newcol = tonumber("0"..string.sub(str, rainbowsub, string.len(str)))
v["Object"].BackgroundColor3 = Color3.fromHSV(newcol, 1, 1)
else
v["Object"].BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
end
v["Object"].TextColor3 = Color3.new(0, 0, 0)
end
if v["Type"] == "OptionsButton" then
if v["Api"]["Enabled"] then
if guicolorslider["RainbowValue"] then
local rainbowsub = 2
local rainbowcolor = GuiLibrary["Settings"]["GUIObject"]["Color"] + (-0.015 * v["Object"].LayoutOrder)
if rainbowcolor < 0 then rainbowsub = 3 rainbowcolor = rainbowcolor * 0.25 end
local str = tostring(rainbowcolor)
local newcol = tonumber("0"..string.sub(str, rainbowsub, string.len(str)))
v["Object"].BackgroundColor3 = Color3.fromHSV(newcol, 1, 1)
else
v["Object"].BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
end
v["Object"].TextColor3 = Color3.new(0, 0, 0)
end
end
if (v["Type"] == "Toggle" or v["Type"] == "NewToggle") and v["Api"]["Enabled"] then
v["Object"].BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
end
if v["Type"] == "Slider" then
v["Object"].Slider.FillSlider.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
end
end
-- end)
end
local playertoggle = Settings.CreateToggle("Players", function() end, function() end)
local npctoggle = Settings.CreateToggle("NPCs", function() end, function() end)
local nakedtoggle = Settings.CreateToggle("Ignore naked", function() end, function() end)
local teamsbyservertoggle = Settings.CreateToggle("Teams by server", function() end, function() end)
local teamsbycolortoggle = Settings.CreateToggle("Teams by color", function() end, function() end)
local middleclickfriendstoggle = Settings.CreateToggle("MiddleClick friends", function() GuiLibrary["FriendsObject"]["MiddleClickFriends"] = true end, function() GuiLibrary["FriendsObject"]["MiddleClickFriends"] = false end)
local blatanttoggle = Settings.CreateToggle("Blatant mode", function()
GuiLibrary["Settings"]["GUIObject"]["BlatantMode"] = true
for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
if v["Type"] == "OptionsButton" and v["Api"]["Blatant"] then
v["Object"].TextColor3 = Color3.fromRGB(255, 255, 255)
end
end
end, function()
GuiLibrary["Settings"]["GUIObject"]["BlatantMode"] = false
for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
if v["Type"] == "OptionsButton" and v["Api"]["Blatant"] then
if v["Api"]["Enabled"] then
v["Api"]["ToggleButton"](false, true)
end
v["Object"].TextColor3 = Color3.fromRGB(128, 128, 128)
end
end
end)
if isfolder("vape") == false then
makefolder("vape")
end
if isfolder("vape/CustomModules") == false then
makefolder("vape/CustomModules")
end
if isfolder("vape/Profiles") == false then
makefolder("vape/Profiles")
end
if pcall(function() readfile("vape/CustomModules/"..game.PlaceId..".vape") end) then
loadstring(readfile("vape/CustomModules/"..game.PlaceId..".vape"))()
else
loadstring(GetURL("AnyGame.vape"))()
end
GuiLibrary["LoadSettings"]()
SearchTextList["RefreshValues"](GuiLibrary["Settings"]["SearchObject"]["List"])
GuiLibrary["LoadFriends"]()
FriendsTextList["RefreshValues"](GuiLibrary["FriendsObject"]["Friends"])
GuiLibrary["UpdateUI"]()
GuiLibrary["LoadedAnimation"]()
spawn(function()
while wait(10) do
if not selfdestruct then
GuiLibrary["SaveSettings"]()
end
end
end)