Advertisement
TeamCB

Bedwars Vape V4

Jan 2nd, 2022
2,142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.71 KB | None | 0 0
  1. repeat task.wait() until game:IsLoaded() == true
  2.  
  3. local function GetURL(scripturl)
  4. if shared.VapeDeveloper then
  5. return readfile("vape/"..scripturl)
  6. else
  7. return game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/"..scripturl, true)
  8. end
  9. end
  10. local getasset = getsynasset or getcustomasset
  11. if getasset == nil and getgenv().getcustomasset == nil then
  12. getgenv().getcustomasset = function(location) return "rbxasset://"..location end
  13. getasset = getgenv().getcustomasset
  14. end
  15. local queueteleport = syn and syn.queue_on_teleport or queue_on_teleport or fluxus and fluxus.queue_on_teleport
  16. local requestfunc = syn and syn.request or http and http.request or http_request or fluxus and fluxus.request or getgenv().request or request
  17.  
  18. local function checkassetversion()
  19. local req = requestfunc({
  20. Url = "https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/assetsversion.dat",
  21. Method = "GET"
  22. })
  23. if req.StatusCode == 200 then
  24. return req.Body
  25. else
  26. return nil
  27. end
  28. end
  29.  
  30. if not (getasset and requestfunc and queueteleport) then
  31. print("Vape not supported with your exploit.")
  32. return
  33. end
  34.  
  35. if shared.VapeExecuted then
  36. error("Vape Already Injected")
  37. return
  38. else
  39. shared.VapeExecuted = true
  40. end
  41.  
  42. if isfolder("vape") == false then
  43. makefolder("vape")
  44. end
  45. if isfile("vape/assetsversion.dat") == false then
  46. writefile("vape/assetsversion.dat", "1")
  47. end
  48. if isfolder("vape/CustomModules") == false then
  49. makefolder("vape/CustomModules")
  50. end
  51. if isfolder("vape/Profiles") == false then
  52. makefolder("vape/Profiles")
  53. end
  54. local assetver = checkassetversion()
  55. if assetver and assetver > readfile("vape/assetsversion.dat") then
  56. if shared.VapeDeveloper == nil then
  57. if isfolder("vape/assets") then
  58. if delfolder then
  59. delfolder("vape/assets")
  60. end
  61. end
  62. writefile("vape/assetsversion.dat", assetver)
  63. end
  64. end
  65. if isfolder("vape/assets") == false then
  66. makefolder("vape/assets")
  67. end
  68.  
  69. local GuiLibrary = loadstring(GetURL("NewGuiLibrary.lua"))()
  70.  
  71. local checkpublicreponum = 0
  72. local checkpublicrepo
  73. checkpublicrepo = function(id)
  74. local suc, req = pcall(function() return requestfunc({
  75. Url = "https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/CustomModules/"..id..".vape",
  76. Method = "GET"
  77. }) end)
  78. if not suc then
  79. checkpublicreponum = checkpublicreponum + 1
  80. spawn(function()
  81. local textlabel = Instance.new("TextLabel")
  82. textlabel.Size = UDim2.new(1, 0, 0, 36)
  83. textlabel.Text = "Loading CustomModule Failed!, Attempts : "..checkpublicreponum
  84. textlabel.BackgroundTransparency = 1
  85. textlabel.TextStrokeTransparency = 0
  86. textlabel.TextSize = 30
  87. textlabel.Font = Enum.Font.SourceSans
  88. textlabel.TextColor3 = Color3.new(1, 1, 1)
  89. textlabel.Position = UDim2.new(0, 0, 0, -36)
  90. textlabel.Parent = GuiLibrary["MainGui"]
  91. task.wait(2)
  92. textlabel:Remove()
  93. end)
  94. task.wait(2)
  95. return checkpublicrepo(id)
  96. end
  97. if req.StatusCode == 200 then
  98. return req.Body
  99. end
  100. return nil
  101. end
  102.  
  103. local function getcustomassetfunc(path)
  104. if not isfile(path) then
  105. spawn(function()
  106. local textlabel = Instance.new("TextLabel")
  107. textlabel.Size = UDim2.new(1, 0, 0, 36)
  108. textlabel.Text = "Downloading "..path
  109. textlabel.BackgroundTransparency = 1
  110. textlabel.TextStrokeTransparency = 0
  111. textlabel.TextSize = 30
  112. textlabel.Font = Enum.Font.SourceSans
  113. textlabel.TextColor3 = Color3.new(1, 1, 1)
  114. textlabel.Position = UDim2.new(0, 0, 0, -36)
  115. textlabel.Parent = GuiLibrary["MainGui"]
  116. repeat task.wait() until isfile(path)
  117. textlabel:Remove()
  118. end)
  119. local req = requestfunc({
  120. Url = "https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/"..path:gsub("vape/assets", "assets"),
  121. Method = "GET"
  122. })
  123. writefile(path, req.Body)
  124. end
  125. return getasset(path)
  126. end
  127.  
  128. shared.GuiLibrary = GuiLibrary
  129. local workspace = game:GetService("Workspace")
  130. local cam = workspace.CurrentCamera
  131. local selfdestruct = false
  132. local GUI = GuiLibrary.CreateMainWindow()
  133. local Combat = GuiLibrary.CreateWindow({
  134. ["Name"] = "Combat",
  135. ["Icon"] = "vape/assets/CombatIcon.png",
  136. ["IconSize"] = 15
  137. })
  138. local Blatant = GuiLibrary.CreateWindow({
  139. ["Name"] = "Blatant",
  140. ["Icon"] = "vape/assets/BlatantIcon.png",
  141. ["IconSize"] = 16
  142. })
  143. local Render = GuiLibrary.CreateWindow({
  144. ["Name"] = "Render",
  145. ["Icon"] = "vape/assets/RenderIcon.png",
  146. ["IconSize"] = 17
  147. })
  148. local Utility = GuiLibrary.CreateWindow({
  149. ["Name"] = "Utility",
  150. ["Icon"] = "vape/assets/UtilityIcon.png",
  151. ["IconSize"] = 17
  152. })
  153. local World = GuiLibrary.CreateWindow({
  154. ["Name"] = "World",
  155. ["Icon"] = "vape/assets/WorldIcon.png",
  156. ["IconSize"] = 16
  157. })
  158. local Friends = GuiLibrary.CreateWindow2({
  159. ["Name"] = "Friends",
  160. ["Icon"] = "vape/assets/FriendsIcon.png",
  161. ["IconSize"] = 17
  162. })
  163. local Profiles = GuiLibrary.CreateWindow2({
  164. ["Name"] = "Profiles",
  165. ["Icon"] = "vape/assets/ProfilesIcon.png",
  166. ["IconSize"] = 19
  167. })
  168. GUI.CreateDivider()
  169. GUI.CreateButton({
  170. ["Name"] = "Combat",
  171. ["Function"] = function(callback) Combat.SetVisible(callback) end,
  172. ["Icon"] = "vape/assets/CombatIcon.png",
  173. ["IconSize"] = 15
  174. })
  175. GUI.CreateButton({
  176. ["Name"] = "Blatant",
  177. ["Function"] = function(callback) Blatant.SetVisible(callback) end,
  178. ["Icon"] = "vape/assets/BlatantIcon.png",
  179. ["IconSize"] = 16
  180. })
  181. GUI.CreateButton({
  182. ["Name"] = "Render",
  183. ["Function"] = function(callback) Render.SetVisible(callback) end,
  184. ["Icon"] = "vape/assets/RenderIcon.png",
  185. ["IconSize"] = 17
  186. })
  187. GUI.CreateButton({
  188. ["Name"] = "Utility",
  189. ["Function"] = function(callback) Utility.SetVisible(callback) end,
  190. ["Icon"] = "vape/assets/UtilityIcon.png",
  191. ["IconSize"] = 17
  192. })
  193. GUI.CreateButton({
  194. ["Name"] = "World",
  195. ["Function"] = function(callback) World.SetVisible(callback) end,
  196. ["Icon"] = "vape/assets/WorldIcon.png",
  197. ["IconSize"] = 16
  198. })
  199. GUI.CreateDivider("MISC")
  200. GUI.CreateButton({
  201. ["Name"] = "Friends",
  202. ["Function"] = function(callback) Friends.SetVisible(callback) end,
  203. })
  204. GUI.CreateButton({
  205. ["Name"] = "Profiles",
  206. ["Function"] = function(callback) Profiles.SetVisible(callback) end,
  207. })
  208. local FriendsTextList = {["RefreshValues"] = function() end}
  209. local FriendsColor = {["Value"] = 0.44}
  210. FriendsTextList = Friends.CreateCircleTextList({
  211. ["Name"] = "FriendsList",
  212. ["TempText"] = "Username / Alias",
  213. ["Color"] = Color3.fromRGB(5, 133, 104),
  214. ["CustomFunction"] = function(obj)
  215. obj.ItemText.TextColor3 = Color3.new(1, 1, 1)
  216. local friendcircle = Instance.new("Frame")
  217. friendcircle.Size = UDim2.new(0, 10, 0, 10)
  218. friendcircle.Name = "FriendCircle"
  219. friendcircle.BackgroundColor3 = Color3.fromHSV(FriendsColor["Value"], 0.7, 0.9)
  220. friendcircle.BorderSizePixel = 0
  221. friendcircle.Position = UDim2.new(0, 10, 0, 13)
  222. friendcircle.Parent = obj
  223. local friendcorner = Instance.new("UICorner")
  224. friendcorner.CornerRadius = UDim.new(0, 8)
  225. friendcorner.Parent = friendcircle
  226. obj.ItemText.Position = UDim2.new(0, 36, 0, 0)
  227. obj.ItemText.Size = UDim2.new(0, 157, 0, 33)
  228. end
  229. })
  230. Friends.CreateToggle({
  231. ["Name"] = "Use Friends",
  232. ["Function"] = function(callback) end,
  233. ["Default"] = true
  234. })
  235. Friends.CreateToggle({
  236. ["Name"] = "Use Alias",
  237. ["Function"] = function(callback) end,
  238. ["Default"] = true,
  239. })
  240. Friends.CreateToggle({
  241. ["Name"] = "Spoof alias",
  242. ["Function"] = function(callback) end,
  243. })
  244. Friends.CreateToggle({
  245. ["Name"] = "Recolor visuals",
  246. ["Function"] = function(callback) end,
  247. ["Default"] = true
  248. })
  249. FriendsColor = Friends.CreateColorSlider({
  250. ["Name"] = "Friends Color",
  251. ["Function"] = function(val)
  252.  
  253. end
  254. })
  255. local ProfilesTextList = {["RefreshValues"] = function() end}
  256. local profilesloaded = false
  257. ProfilesTextList = Profiles.CreateTextList({
  258. ["Name"] = "ProfilesList",
  259. ["TempText"] = "Type name",
  260. ["AddFunction"] = function(user)
  261. GuiLibrary["Profiles"][user] = {["Keybind"] = "", ["Selected"] = false}
  262. end,
  263. ["RemoveFunction"] = function(num)
  264. if #ProfilesTextList["ObjectList"] == 0 then
  265. table.insert(ProfilesTextList["ObjectList"], "default")
  266. ProfilesTextList["RefreshValues"](ProfilesTextList["ObjectList"])
  267. end
  268. end,
  269. ["CustomFunction"] = function(obj, profilename)
  270. if GuiLibrary["Profiles"][profilename] == nil then
  271. GuiLibrary["Profiles"][profilename] = {["Keybind"] = ""}
  272. end
  273. obj.MouseButton1Click:connect(function()
  274. GuiLibrary["SwitchProfile"](profilename)
  275. end)
  276. local newsize = UDim2.new(0, 20, 0, 21)
  277. local bindbkg = Instance.new("TextButton")
  278. bindbkg.Text = ""
  279. bindbkg.AutoButtonColor = false
  280. bindbkg.Size = UDim2.new(0, 20, 0, 21)
  281. bindbkg.Position = UDim2.new(1, -50, 0, 6)
  282. bindbkg.BorderSizePixel = 0
  283. bindbkg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  284. bindbkg.BackgroundTransparency = 0.95
  285. bindbkg.Visible = GuiLibrary["Profiles"][profilename]["Keybind"] ~= ""
  286. bindbkg.Parent = obj
  287. local bindimg = Instance.new("ImageLabel")
  288. bindimg.Image = getcustomassetfunc("vape/assets/KeybindIcon.png")
  289. bindimg.BackgroundTransparency = 1
  290. bindimg.Size = UDim2.new(0, 12, 0, 12)
  291. bindimg.Position = UDim2.new(0, 4, 0, 5)
  292. bindimg.ImageTransparency = 0.2
  293. bindimg.Active = false
  294. bindimg.Visible = (GuiLibrary["Profiles"][profilename]["Keybind"] == "")
  295. bindimg.Parent = bindbkg
  296. local bindtext = Instance.new("TextLabel")
  297. bindtext.Active = false
  298. bindtext.BackgroundTransparency = 1
  299. bindtext.TextSize = 16
  300. bindtext.Parent = bindbkg
  301. bindtext.Font = Enum.Font.SourceSans
  302. bindtext.Size = UDim2.new(1, 0, 1, 0)
  303. bindtext.TextColor3 = Color3.fromRGB(85, 85, 85)
  304. bindtext.Visible = (GuiLibrary["Profiles"][profilename]["Keybind"] ~= "")
  305. local bindtext2 = Instance.new("TextLabel")
  306. bindtext2.Text = "PRESS A KEY TO BIND"
  307. bindtext2.Size = UDim2.new(0, 150, 0, 33)
  308. bindtext2.Font = Enum.Font.SourceSans
  309. bindtext2.TextSize = 17
  310. bindtext2.TextColor3 = Color3.fromRGB(201, 201, 201)
  311. bindtext2.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
  312. bindtext2.BorderSizePixel = 0
  313. bindtext2.Visible = false
  314. bindtext2.Parent = obj
  315. local bindround = Instance.new("UICorner")
  316. bindround.CornerRadius = UDim.new(0, 4)
  317. bindround.Parent = bindbkg
  318. bindbkg.MouseButton1Click:connect(function()
  319. if GuiLibrary["KeybindCaptured"] == false then
  320. GuiLibrary["KeybindCaptured"] = true
  321. spawn(function()
  322. bindtext2.Visible = true
  323. repeat task.wait() until GuiLibrary["PressedKeybindKey"] ~= ""
  324. local key = (GuiLibrary["PressedKeybindKey"] == GuiLibrary["Profiles"][profilename]["Keybind"] and "" or GuiLibrary["PressedKeybindKey"])
  325. if key == "" then
  326. GuiLibrary["Profiles"][profilename]["Keybind"] = key
  327. newsize = UDim2.new(0, 20, 0, 21)
  328. bindbkg.Size = newsize
  329. bindbkg.Visible = true
  330. bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
  331. bindimg.Visible = true
  332. bindtext.Visible = false
  333. bindtext.Text = key
  334. else
  335. local textsize = game:GetService("TextService"):GetTextSize(key, 16, bindtext.Font, Vector2.new(99999, 99999))
  336. newsize = UDim2.new(0, 13 + textsize.X, 0, 21)
  337. GuiLibrary["Profiles"][profilename]["Keybind"] = key
  338. bindbkg.Visible = true
  339. bindbkg.Size = newsize
  340. bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
  341. bindimg.Visible = false
  342. bindtext.Visible = true
  343. bindtext.Text = key
  344. end
  345. GuiLibrary["PressedKeybindKey"] = ""
  346. GuiLibrary["KeybindCaptured"] = false
  347. bindtext2.Visible = false
  348. end)
  349. end
  350. end)
  351. bindbkg.MouseEnter:connect(function()
  352. bindimg.Image = getcustomassetfunc("vape/assets/PencilIcon.png")
  353. bindimg.Visible = true
  354. bindtext.Visible = false
  355. bindbkg.Size = UDim2.new(0, 20, 0, 21)
  356. bindbkg.Position = UDim2.new(1, -50, 0, 6)
  357. end)
  358. bindbkg.MouseLeave:connect(function()
  359. bindimg.Image = getcustomassetfunc("vape/assets/KeybindIcon.png")
  360. if GuiLibrary["Profiles"][profilename]["Keybind"] ~= "" then
  361. bindimg.Visible = false
  362. bindtext.Visible = true
  363. bindbkg.Size = newsize
  364. bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
  365. end
  366. end)
  367. obj.MouseEnter:connect(function()
  368. bindbkg.Visible = true
  369. end)
  370. obj.MouseLeave:connect(function()
  371. bindbkg.Visible = GuiLibrary["Profiles"][profilename]["Keybind"] ~= ""
  372. end)
  373. if GuiLibrary["Profiles"][profilename]["Keybind"] ~= "" then
  374.  
  375. bindtext.Text = GuiLibrary["Profiles"][profilename]["Keybind"]
  376. local textsize = game:GetService("TextService"):GetTextSize(GuiLibrary["Profiles"][profilename]["Keybind"], 16, bindtext.Font, Vector2.new(99999, 99999))
  377. newsize = UDim2.new(0, 13 + textsize.X, 0, 21)
  378. bindbkg.Size = newsize
  379. bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
  380. end
  381. if profilename == GuiLibrary["CurrentProfile"] then
  382. obj.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  383. obj.ImageButton.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  384. obj.ItemText.TextColor3 = Color3.new(1, 1, 1)
  385. obj.ItemText.TextStrokeTransparency = 0.75
  386. bindbkg.BackgroundTransparency = 0.9
  387. bindtext.TextColor3 = Color3.fromRGB(214, 214, 214)
  388. end
  389. end
  390. })
  391. local OnlineProfilesButton = Instance.new("TextButton")
  392. OnlineProfilesButton.Name = "OnlineProfilesButton"
  393. OnlineProfilesButton.LayoutOrder = 1
  394. OnlineProfilesButton.AutoButtonColor = false
  395. OnlineProfilesButton.Size = UDim2.new(0, 45, 0, 29)
  396. OnlineProfilesButton.BackgroundColor3 = Color3.fromRGB(26, 25, 26)
  397. OnlineProfilesButton.Active = false
  398. OnlineProfilesButton.Text = ""
  399. OnlineProfilesButton.ZIndex = 4
  400. OnlineProfilesButton.Font = Enum.Font.SourceSans
  401. OnlineProfilesButton.TextXAlignment = Enum.TextXAlignment.Left
  402. OnlineProfilesButton.Position = UDim2.new(0, 166, 0, 6)
  403. OnlineProfilesButton.Parent = ProfilesTextList["Object"]
  404. local OnlineProfilesButtonBKG = Instance.new("Frame")
  405. OnlineProfilesButtonBKG.BackgroundColor3 = Color3.fromRGB(38, 37, 38)
  406. OnlineProfilesButtonBKG.Size = UDim2.new(0, 47, 0, 31)
  407. OnlineProfilesButtonBKG.Position = UDim2.new(0, 165, 0, 5)
  408. OnlineProfilesButtonBKG.ZIndex = 3
  409. OnlineProfilesButtonBKG.Parent = ProfilesTextList["Object"]
  410. local OnlineProfilesButtonImage = Instance.new("ImageLabel")
  411. OnlineProfilesButtonImage.BackgroundTransparency = 1
  412. OnlineProfilesButtonImage.Position = UDim2.new(0, 14, 0, 7)
  413. OnlineProfilesButtonImage.Size = UDim2.new(0, 17, 0, 16)
  414. OnlineProfilesButtonImage.Image = getcustomassetfunc("vape/assets/OnlineProfilesButton.png")
  415. OnlineProfilesButtonImage.ImageColor3 = Color3.fromRGB(121, 121, 121)
  416. OnlineProfilesButtonImage.ZIndex = 5
  417. OnlineProfilesButtonImage.Active = false
  418. OnlineProfilesButtonImage.Parent = OnlineProfilesButton
  419. local OnlineProfilesbuttonround1 = Instance.new("UICorner")
  420. OnlineProfilesbuttonround1.CornerRadius = UDim.new(0, 5)
  421. OnlineProfilesbuttonround1.Parent = OnlineProfilesButton
  422. local OnlineProfilesbuttonround2 = Instance.new("UICorner")
  423. OnlineProfilesbuttonround2.CornerRadius = UDim.new(0, 5)
  424. OnlineProfilesbuttonround2.Parent = OnlineProfilesButtonBKG
  425. local OnlineProfilesFrame = Instance.new("Frame")
  426. OnlineProfilesFrame.Size = UDim2.new(0, 660, 0, 445)
  427. OnlineProfilesFrame.Position = UDim2.new(0.5, -330, 0.5, -223)
  428. OnlineProfilesFrame.BackgroundColor3 = Color3.fromRGB(26, 25, 26)
  429. OnlineProfilesFrame.Parent = GuiLibrary["MainGui"].ScaledGui.OnlineProfiles
  430. local OnlineProfilesExitButton = Instance.new("ImageButton")
  431. OnlineProfilesExitButton.Name = "OnlineProfilesExitButton"
  432. OnlineProfilesExitButton.ImageColor3 = Color3.fromRGB(121, 121, 121)
  433. OnlineProfilesExitButton.Size = UDim2.new(0, 24, 0, 24)
  434. OnlineProfilesExitButton.AutoButtonColor = false
  435. OnlineProfilesExitButton.Image = getcustomassetfunc("vape/assets/ExitIcon1.png")
  436. OnlineProfilesExitButton.Visible = true
  437. OnlineProfilesExitButton.Position = UDim2.new(1, -31, 0, 8)
  438. OnlineProfilesExitButton.BackgroundColor3 = Color3.fromRGB(26, 25, 26)
  439. OnlineProfilesExitButton.Parent = OnlineProfilesFrame
  440. local OnlineProfilesExitButtonround = Instance.new("UICorner")
  441. OnlineProfilesExitButtonround.CornerRadius = UDim.new(0, 16)
  442. OnlineProfilesExitButtonround.Parent = OnlineProfilesExitButton
  443. OnlineProfilesExitButton.MouseEnter:connect(function()
  444. game:GetService("TweenService"):Create(OnlineProfilesExitButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(60, 60, 60), ImageColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  445. end)
  446. OnlineProfilesExitButton.MouseLeave:connect(function()
  447. game:GetService("TweenService"):Create(OnlineProfilesExitButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {BackgroundColor3 = Color3.fromRGB(26, 25, 26), ImageColor3 = Color3.fromRGB(121, 121, 121)}):Play()
  448. end)
  449. local OnlineProfilesFrameShadow = Instance.new("ImageLabel")
  450. OnlineProfilesFrameShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  451. OnlineProfilesFrameShadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  452. OnlineProfilesFrameShadow.Image = getcustomassetfunc("vape/assets/WindowBlur.png")
  453. OnlineProfilesFrameShadow.BackgroundTransparency = 1
  454. OnlineProfilesFrameShadow.ZIndex = -1
  455. OnlineProfilesFrameShadow.Size = UDim2.new(1, 6, 1, 6)
  456. OnlineProfilesFrameShadow.ImageColor3 = Color3.new(0, 0, 0)
  457. OnlineProfilesFrameShadow.ScaleType = Enum.ScaleType.Slice
  458. OnlineProfilesFrameShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  459. OnlineProfilesFrameShadow.Parent = OnlineProfilesFrame
  460. local OnlineProfilesFrameIcon = Instance.new("ImageLabel")
  461. OnlineProfilesFrameIcon.Size = UDim2.new(0, 19, 0, 16)
  462. OnlineProfilesFrameIcon.Image = getcustomassetfunc("vape/assets/ProfilesIcon.png")
  463. OnlineProfilesFrameIcon.Name = "WindowIcon"
  464. OnlineProfilesFrameIcon.BackgroundTransparency = 1
  465. OnlineProfilesFrameIcon.Position = UDim2.new(0, 10, 0, 13)
  466. OnlineProfilesFrameIcon.ImageColor3 = Color3.fromRGB(200, 200, 200)
  467. OnlineProfilesFrameIcon.Parent = OnlineProfilesFrame
  468. local OnlineProfilesFrameText = Instance.new("TextLabel")
  469. OnlineProfilesFrameText.Size = UDim2.new(0, 155, 0, 41)
  470. OnlineProfilesFrameText.BackgroundTransparency = 1
  471. OnlineProfilesFrameText.Name = "WindowTitle"
  472. OnlineProfilesFrameText.Position = UDim2.new(0, 36, 0, 0)
  473. OnlineProfilesFrameText.TextXAlignment = Enum.TextXAlignment.Left
  474. OnlineProfilesFrameText.Font = Enum.Font.SourceSans
  475. OnlineProfilesFrameText.TextSize = 17
  476. OnlineProfilesFrameText.Text = "Profiles"
  477. OnlineProfilesFrameText.TextColor3 = Color3.fromRGB(201, 201, 201)
  478. OnlineProfilesFrameText.Parent = OnlineProfilesFrame
  479. local OnlineProfilesFrameText2 = Instance.new("TextLabel")
  480. OnlineProfilesFrameText2.TextSize = 15
  481. OnlineProfilesFrameText2.TextColor3 = Color3.fromRGB(85, 84, 85)
  482. OnlineProfilesFrameText2.Text = "YOUR PROFILES"
  483. OnlineProfilesFrameText2.Font = Enum.Font.SourceSans
  484. OnlineProfilesFrameText2.BackgroundTransparency = 1
  485. OnlineProfilesFrameText2.TextXAlignment = Enum.TextXAlignment.Left
  486. OnlineProfilesFrameText2.TextYAlignment = Enum.TextYAlignment.Top
  487. OnlineProfilesFrameText2.Size = UDim2.new(1, 0, 0, 20)
  488. OnlineProfilesFrameText2.Position = UDim2.new(0, 10, 0, 48)
  489. OnlineProfilesFrameText2.Parent = OnlineProfilesFrame
  490. local OnlineProfilesFrameText3 = Instance.new("TextLabel")
  491. OnlineProfilesFrameText3.TextSize = 15
  492. OnlineProfilesFrameText3.TextColor3 = Color3.fromRGB(85, 84, 85)
  493. OnlineProfilesFrameText3.Text = "PUBLIC PROFILES"
  494. OnlineProfilesFrameText3.Font = Enum.Font.SourceSans
  495. OnlineProfilesFrameText3.BackgroundTransparency = 1
  496. OnlineProfilesFrameText3.TextXAlignment = Enum.TextXAlignment.Left
  497. OnlineProfilesFrameText3.TextYAlignment = Enum.TextYAlignment.Top
  498. OnlineProfilesFrameText3.Size = UDim2.new(1, 0, 0, 20)
  499. OnlineProfilesFrameText3.Position = UDim2.new(0, 231, 0, 48)
  500. OnlineProfilesFrameText3.Parent = OnlineProfilesFrame
  501. local OnlineProfilesBorder1 = Instance.new("Frame")
  502. OnlineProfilesBorder1.BackgroundColor3 = Color3.fromRGB(40, 39, 40)
  503. OnlineProfilesBorder1.BorderSizePixel = 0
  504. OnlineProfilesBorder1.Size = UDim2.new(1, 0, 0, 1)
  505. OnlineProfilesBorder1.Position = UDim2.new(0, 0, 0, 41)
  506. OnlineProfilesBorder1.Parent = OnlineProfilesFrame
  507. local OnlineProfilesBorder2 = Instance.new("Frame")
  508. OnlineProfilesBorder2.BackgroundColor3 = Color3.fromRGB(40, 39, 40)
  509. OnlineProfilesBorder2.BorderSizePixel = 0
  510. OnlineProfilesBorder2.Size = UDim2.new(0, 1, 1, -41)
  511. OnlineProfilesBorder2.Position = UDim2.new(0, 220, 0, 41)
  512. OnlineProfilesBorder2.Parent = OnlineProfilesFrame
  513. local OnlineProfilesList = Instance.new("ScrollingFrame")
  514. OnlineProfilesList.BackgroundTransparency = 1
  515. OnlineProfilesList.Size = UDim2.new(0, 408, 0, 319)
  516. OnlineProfilesList.Position = UDim2.new(0, 230, 0, 122)
  517. OnlineProfilesList.CanvasSize = UDim2.new(0, 408, 0, 319)
  518. OnlineProfilesList.Parent = OnlineProfilesFrame
  519. local OnlineProfilesListGrid = Instance.new("UIGridLayout")
  520. OnlineProfilesListGrid.CellSize = UDim2.new(0, 134, 0, 144)
  521. OnlineProfilesListGrid.CellPadding = UDim2.new(0, 4, 0, 4)
  522. OnlineProfilesListGrid.Parent = OnlineProfilesList
  523. local OnlineProfilesFrameCorner = Instance.new("UICorner")
  524. OnlineProfilesFrameCorner.CornerRadius = UDim.new(0, 4)
  525. OnlineProfilesFrameCorner.Parent = OnlineProfilesFrame
  526. OnlineProfilesButton.MouseButton1Click:connect(function()
  527. GuiLibrary["MainGui"].ScaledGui.OnlineProfiles.Visible = true
  528. GuiLibrary["MainGui"].ScaledGui.ClickGui.Visible = false
  529. if profilesloaded == false then
  530. local onlineprofiles = {}
  531. local success, result = pcall(function()
  532. return game:GetService("HttpService"):JSONDecode((shared.VapeDeveloper and readfile("vape/OnlineProfiles.vapeonline") or game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/OnlineProfiles.vapeonline", true)))
  533. end)
  534. onlineprofiles = (success and result or {})
  535. for i2,v2 in pairs(onlineprofiles) do
  536. if v2["ProfileGame"] == game.PlaceId then
  537. local profilebox = Instance.new("Frame")
  538. profilebox.BackgroundColor3 = Color3.fromRGB(31, 30, 31)
  539. profilebox.Parent = OnlineProfilesList
  540. local profiletext = Instance.new("TextLabel")
  541. profiletext.TextSize = 15
  542. profiletext.TextColor3 = Color3.fromRGB(137, 136, 137)
  543. profiletext.Size = UDim2.new(0, 100, 0, 20)
  544. profiletext.Position = UDim2.new(0, 18, 0, 25)
  545. profiletext.Font = Enum.Font.SourceSans
  546. profiletext.TextXAlignment = Enum.TextXAlignment.Left
  547. profiletext.TextYAlignment = Enum.TextYAlignment.Top
  548. profiletext.BackgroundTransparency = 1
  549. profiletext.Text = i2
  550. profiletext.Parent = profilebox
  551. local profiledownload = Instance.new("TextButton")
  552. profiledownload.BackgroundColor3 = Color3.fromRGB(31, 30, 31)
  553. profiledownload.Size = UDim2.new(0, 69, 0, 31)
  554. profiledownload.Font = Enum.Font.SourceSans
  555. profiledownload.TextColor3 = Color3.fromRGB(200, 200, 200)
  556. profiledownload.TextSize = 15
  557. profiledownload.AutoButtonColor = false
  558. profiledownload.Text = "DOWNLOAD"
  559. profiledownload.Position = UDim2.new(0, 14, 0, 96)
  560. profiledownload.Visible = false
  561. profiledownload.Parent = profilebox
  562. profiledownload.ZIndex = 2
  563. local profiledownloadbkg = Instance.new("Frame")
  564. profiledownloadbkg.Size = UDim2.new(0, 71, 0, 33)
  565. profiledownloadbkg.BackgroundColor3 = Color3.fromRGB(42, 41, 42)
  566. profiledownloadbkg.Position = UDim2.new(0, 13, 0, 95)
  567. profiledownloadbkg.ZIndex = 1
  568. profiledownloadbkg.Visible = false
  569. profiledownloadbkg.Parent = profilebox
  570. profilebox.MouseEnter:connect(function()
  571. profiletext.TextColor3 = Color3.fromRGB(200, 200, 200)
  572. profiledownload.Visible = true
  573. profiledownloadbkg.Visible = true
  574. end)
  575. profilebox.MouseLeave:connect(function()
  576. profiletext.TextColor3 = Color3.fromRGB(137, 136, 137)
  577. profiledownload.Visible = false
  578. profiledownloadbkg.Visible = false
  579. end)
  580. profiledownload.MouseEnter:connect(function()
  581. profiledownload.BackgroundColor3 = Color3.fromRGB(5, 134, 105)
  582. end)
  583. profiledownload.MouseLeave:connect(function()
  584. profiledownload.BackgroundColor3 = Color3.fromRGB(31, 30, 31)
  585. end)
  586. profiledownload.MouseButton1Click:connect(function()
  587. writefile("vape/Profiles/"..v2["ProfileName"]..tostring(game.PlaceId)..".vapeprofile", (shared.VapeDeveloper and readfile("vape/OnlineProfiles/"..v2["OnlineProfileName"]) or game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/OnlineProfiles/"..v2["OnlineProfileName"], true)))
  588. GuiLibrary["Profiles"][v2["ProfileName"]] = {["Keybind"] = "", ["Selected"] = false}
  589. if table.find(ProfilesTextList["ObjectList"], v2["ProfileName"]) == nil then
  590. table.insert(ProfilesTextList["ObjectList"], v2["ProfileName"])
  591. end
  592. ProfilesTextList["RefreshValues"](ProfilesTextList["ObjectList"])
  593. end)
  594. local profileround = Instance.new("UICorner")
  595. profileround.CornerRadius = UDim.new(0, 4)
  596. profileround.Parent = profilebox
  597. local profileround2 = Instance.new("UICorner")
  598. profileround2.CornerRadius = UDim.new(0, 4)
  599. profileround2.Parent = profiledownload
  600. local profileround3 = Instance.new("UICorner")
  601. profileround3.CornerRadius = UDim.new(0, 4)
  602. profileround3.Parent = profiledownloadbkg
  603. end
  604. end
  605. profilesloaded = true
  606. end
  607. end)
  608. OnlineProfilesExitButton.MouseButton1Click:connect(function()
  609. GuiLibrary["MainGui"].ScaledGui.OnlineProfiles.Visible = false
  610. GuiLibrary["MainGui"].ScaledGui.ClickGui.Visible = true
  611. end)
  612.  
  613. GUI.CreateDivider()
  614. ---GUI.CreateCustomButton("Favorites", "vape/assets/FavoritesListIcon.png", UDim2.new(0, 17, 0, 14), function() end, function() end)
  615. --GUI.CreateCustomButton("Text GUIVertical", "vape/assets/TextGUIIcon3.png", UDim2.new(1, -56, 0, 15), function() end, function() end)
  616. local TextGui = GuiLibrary.CreateCustomWindow({
  617. ["Name"] = "Text GUI",
  618. ["Icon"] = "vape/assets/TextGUIIcon1.png",
  619. ["IconSize"] = 21
  620. })
  621. local TextGuiCircleObject = {["CircleList"] = {}}
  622. --GUI.CreateCustomButton("Text GUI", "vape/assets/TextGUIIcon2.png", UDim2.new(1, -23, 0, 15), function() TextGui.SetVisible(true) end, function() TextGui.SetVisible(false) end, "OptionsButton")
  623. GUI.CreateCustomToggle({
  624. ["Name"] = "Text GUI",
  625. ["Icon"] = "vape/assets/TextGUIIcon3.png",
  626. ["Function"] = function(callback) TextGui.SetVisible(callback) end,
  627. ["Priority"] = 2
  628. })
  629.  
  630. local rainbowval = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 1))})
  631. local rainbowval2 = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 0.42)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 0.42))})
  632. local rainbowval3 = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 1))})
  633. local guicolorslider = {["RainbowValue"] = false}
  634.  
  635. local onething = Instance.new("ImageLabel")
  636. onething.Parent = TextGui.GetCustomChildren()
  637. onething.Name = "Logo"
  638. onething.Size = UDim2.new(0, 100, 0, 27)
  639. onething.Position = UDim2.new(1, -140, 0, 3)
  640. onething.BackgroundColor3 = Color3.new(0, 0, 0)
  641. onething.BorderSizePixel = 0
  642. onething.BackgroundTransparency = 1
  643. onething.Visible = false
  644. onething.Image = getcustomassetfunc("vape/assets/VapeLogo3.png")
  645. local onething2 = Instance.new("ImageLabel")
  646. onething2.Parent = onething
  647. onething2.Size = UDim2.new(0, 41, 0, 24)
  648. onething2.Name = "Logo2"
  649. onething2.Position = UDim2.new(1, 0, 0, 1)
  650. onething2.BorderSizePixel = 0
  651. onething2.BackgroundColor3 = Color3.new(0, 0, 0)
  652. onething2.BackgroundTransparency = 1
  653. onething2.Image = getcustomassetfunc("vape/assets/VapeLogo4.png")
  654. local onething3 = onething:Clone()
  655. onething3.ImageColor3 = Color3.new(0, 0, 0)
  656. onething3.ImageTransparency = 0.5
  657. onething3.ZIndex = 0
  658. onething3.Position = UDim2.new(0, 1, 0, 1)
  659. onething3.Visible = false
  660. onething3.Parent = onething
  661. onething3.Logo2.ImageColor3 = Color3.new(0, 0, 0)
  662. onething3.Logo2.ZIndex = 0
  663. onething3.Logo2.ImageTransparency = 0.5
  664. local onetext = Instance.new("TextLabel")
  665. onetext.Parent = TextGui.GetCustomChildren()
  666. onetext.Size = UDim2.new(1, 0, 1, 0)
  667. onetext.Position = UDim2.new(1, -154, 0, 35)
  668. onetext.TextColor3 = Color3.new(1, 1, 1)
  669. onetext.RichText = true
  670. onetext.BackgroundTransparency = 1
  671. onetext.TextXAlignment = Enum.TextXAlignment.Left
  672. onetext.TextYAlignment = Enum.TextYAlignment.Top
  673. onetext.BorderSizePixel = 0
  674. onetext.BackgroundColor3 = Color3.new(0, 0, 0)
  675. onetext.Font = Enum.Font.SourceSans
  676. onetext.Text = ""
  677. onetext.TextSize = 23
  678. local onetext2 = Instance.new("TextLabel")
  679. onetext2.Name = "ExtraText"
  680. onetext2.Parent = onetext
  681. onetext2.Size = UDim2.new(1, 0, 1, 0)
  682. onetext2.Position = UDim2.new(0, 1, 0, 1)
  683. onetext2.BorderSizePixel = 0
  684. onetext2.Visible = false
  685. onetext2.ZIndex = 0
  686. onetext2.Text = ""
  687. onetext2.BackgroundTransparency = 1
  688. onetext2.TextTransparency = 0.5
  689. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  690. onetext2.TextYAlignment = Enum.TextYAlignment.Top
  691. onetext2.TextColor3 = Color3.new(0, 0, 0)
  692. onetext2.Font = Enum.Font.SourceSans
  693. onetext2.TextSize = 23
  694. local onetext3 = onetext:Clone()
  695. onetext3.Name = "ExtraText"
  696. onetext3.Position = UDim2.new(0, 0, 0, 0)
  697. onetext3.TextColor3 = Color3.new(0.65, 0.65, 0.65)
  698. onetext3.Parent = onetext
  699. local onetext4 = onetext3.ExtraText
  700. onetext4.TextColor3 = Color3.new(0, 0, 0)
  701. onetext4.TextTransparency = 0.5
  702. local onebackground = Instance.new("Frame")
  703. onebackground.BackgroundTransparency = 0.5
  704. onebackground.BorderSizePixel = 0
  705. onebackground.BackgroundColor3 = Color3.new(0, 0, 0)
  706. onebackground.Visible = false
  707. onebackground.Parent = TextGui.GetCustomChildren()
  708. onebackground.ZIndex = 0
  709. onetext3:GetPropertyChangedSignal("Text"):connect(function() onetext4.Text = onetext3.Text end)
  710. onetext:GetPropertyChangedSignal("Size"):connect(function()
  711. onebackground.Position = onething.Position - UDim2.new(0, (onetext.Position.X.Offset == -154 and 10 or 0), 0, 0)
  712. onebackground.Size = UDim2.new(0, onetext.Size.X.Offset, 0, onetext.Size.Y.Offset + (onething.Visible and 27 or 0))
  713. end)
  714. onetext:GetPropertyChangedSignal("Position"):connect(function()
  715. onebackground.Position = onething.Position - UDim2.new(0, (onetext.Position.X.Offset == -154 and 10 or 0), 0, 0)
  716. onebackground.Size = UDim2.new(0, onetext.Size.X.Offset, 0, onetext.Size.Y.Offset + (onething.Visible and 27 or 0))
  717. end)
  718. TextGui.GetCustomChildren().Parent:GetPropertyChangedSignal("Position"):connect(function()
  719. if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
  720. onetext.TextXAlignment = Enum.TextXAlignment.Right
  721. onetext2.TextXAlignment = Enum.TextXAlignment.Right
  722. onetext3.TextXAlignment = Enum.TextXAlignment.Right
  723. onetext4.TextXAlignment = Enum.TextXAlignment.Right
  724. onetext2.Position = UDim2.new(0, 1, 0, 1)
  725. onething.Position = UDim2.new(1, -142, 0, 8)
  726. onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 5))
  727. else
  728. onetext.TextXAlignment = Enum.TextXAlignment.Left
  729. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  730. onetext2.Position = UDim2.new(0, 4, 0, 1)
  731. onetext3.TextXAlignment = Enum.TextXAlignment.Left
  732. onetext4.TextXAlignment = Enum.TextXAlignment.Left
  733. onething.Position = UDim2.new(0, 2, 0, 8)
  734. onetext.Position = UDim2.new(0, 6, 0, (onething.Visible and 35 or 5))
  735. end
  736. end)
  737.  
  738. onething.Visible = true onetext.Position = UDim2.new(0, 0, 0, 35)
  739.  
  740. local sortingmethod = "Alphabetical"
  741. local textwithoutthing = ""
  742. local function getSpaces(str)
  743. local strSize = game:GetService("TextService"):GetTextSize(str, 20, Enum.Font.SourceSans, Vector2.new(10000, 10000))
  744. return math.ceil(strSize.X / 3)
  745. end
  746. local function UpdateHud()
  747. local text = ""
  748. local text2 = ""
  749. local tableofmodules = {}
  750. local first = true
  751.  
  752. for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  753. if v["Type"] == "OptionsButton" and v["Api"]["Name"] ~= "Text GUI" then
  754. if v["Api"]["Enabled"] then
  755. local blacklisted = table.find(TextGuiCircleObject["CircleList"]["ObjectList"], v["Api"]["Name"]) and TextGuiCircleObject["CircleList"]["ObjectListEnabled"][table.find(TextGuiCircleObject["CircleList"]["ObjectList"], v["Api"]["Name"])]
  756. if not blacklisted then
  757. table.insert(tableofmodules, {["Text"] = v["Api"]["Name"], ["ExtraText"] = v["Api"]["GetExtraText"]})
  758. end
  759. end
  760. end
  761. end
  762. if sortingmethod == "Alphabetical" then
  763. table.sort(tableofmodules, function(a, b) return a["Text"]:lower() < b["Text"]:lower() end)
  764. else
  765. table.sort(tableofmodules, function(a, b)
  766. local textsize1 = a["Text"]..(a["ExtraText"] and a["ExtraText"]() or "")
  767. local textsize2 = b["Text"]..(b["ExtraText"] and b["ExtraText"]() or "")
  768. textsize1 = game:GetService("TextService"):GetTextSize(textsize1, onetext.TextSize, onetext.Font, Vector2.new(1000000, 1000000))
  769. textsize2 = game:GetService("TextService"):GetTextSize(textsize2, onetext.TextSize, onetext.Font, Vector2.new(1000000, 1000000))
  770. return textsize1.X > textsize2.X
  771. end)
  772. end
  773. for i2,v2 in pairs(tableofmodules) do
  774. if first then
  775. text = v2["Text"]..string.rep(" ", getSpaces(v2["ExtraText"]()))
  776. text2 = string.rep(" ", getSpaces(v2["Text"]))..v2["ExtraText"]()
  777. first = false
  778. else
  779. text = text..'\n'..v2["Text"]..string.rep(" ", getSpaces(v2["ExtraText"]()))
  780. text2 = text2..'\n'..string.rep(" ", getSpaces(v2["Text"]))..v2["ExtraText"]()
  781. end
  782. end
  783. textwithoutthing = text
  784. onetext.Text = text
  785. onetext2.Text = text
  786. onetext3.Text = text2
  787. local newsize = game:GetService("TextService"):GetTextSize(text, onetext.TextSize, onetext.Font, Vector2.new(1000000, 1000000))
  788. if text == "" then
  789. newsize = Vector2.new(0, 0)
  790. end
  791. onetext.Size = UDim2.new(0, 154, 0, newsize.Y)
  792. onetext3.Size = UDim2.new(0, 154, 0, newsize.Y)
  793. if TextGui.GetCustomChildren().Parent then
  794. if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
  795. onetext.TextXAlignment = Enum.TextXAlignment.Right
  796. onetext2.Position = UDim2.new(0, 1, 0, 1)
  797. onetext2.TextXAlignment = Enum.TextXAlignment.Right
  798. onetext3.TextXAlignment = Enum.TextXAlignment.Right
  799. onetext4.TextXAlignment = Enum.TextXAlignment.Right
  800. onething.Position = UDim2.new(1, -142, 0, 8)
  801. onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 5))
  802. else
  803. onetext.TextXAlignment = Enum.TextXAlignment.Left
  804. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  805. onetext2.Position = UDim2.new(0, 4, 0, 1)
  806. onetext3.TextXAlignment = Enum.TextXAlignment.Left
  807. onetext4.TextXAlignment = Enum.TextXAlignment.Left
  808. onething.Position = UDim2.new(0, 2, 0, 8)
  809. onetext.Position = UDim2.new(0, 6, 0, (onething.Visible and 35 or 5))
  810. end
  811. end
  812. GuiLibrary["UpdateUI"]()
  813. end
  814.  
  815. GuiLibrary["UpdateHudEvent"].Event:connect(UpdateHud)
  816. TextGui.CreateDropdown({
  817. ["Name"] = "Sort",
  818. ["List"] = {"Alphabetical", "Length"},
  819. ["Function"] = function(val)
  820. sortingmethod = val
  821. GuiLibrary["UpdateHudEvent"]:Fire()
  822. end
  823. })
  824. TextGui.CreateToggle({
  825. ["Name"] = "Shadow",
  826. ["Function"] = function(callback) onetext2.Visible = callback onetext4.Visible = callback onething3.Visible = callback end,
  827. ["HoverText"] = "Renders shadowed text."
  828. })
  829. local TextGuiUseCategoryColor = TextGui.CreateToggle({
  830. ["Name"] = "Use Category Color",
  831. ["Function"] = function(callback) GuiLibrary["UpdateUI"]() end
  832. })
  833. TextGui.CreateToggle({
  834. ["Name"] = "Watermark",
  835. ["Function"] = function(callback)
  836. if callback then
  837. onething.Visible = true
  838. if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
  839. onetext.TextXAlignment = Enum.TextXAlignment.Right
  840. onetext2.TextXAlignment = Enum.TextXAlignment.Right
  841. onetext2.Position = UDim2.new(0, 1, 0, 1)
  842. onetext3.TextXAlignment = Enum.TextXAlignment.Right
  843. onetext4.TextXAlignment = Enum.TextXAlignment.Right
  844. onething.Position = UDim2.new(1, -142, 0, 8)
  845. onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 5))
  846. else
  847. onetext.TextXAlignment = Enum.TextXAlignment.Left
  848. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  849. onetext2.Position = UDim2.new(0, 4, 0, 1)
  850. onetext3.TextXAlignment = Enum.TextXAlignment.Left
  851. onetext4.TextXAlignment = Enum.TextXAlignment.Left
  852. onething.Position = UDim2.new(0, 2, 0, 8)
  853. onetext.Position = UDim2.new(0, 6, 0, (onething.Visible and 35 or 5))
  854. end
  855. else
  856. onething.Visible = false
  857. if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
  858. onetext.TextXAlignment = Enum.TextXAlignment.Right
  859. onetext2.TextXAlignment = Enum.TextXAlignment.Right
  860. onetext2.Position = UDim2.new(0, 1, 0, 1)
  861. onetext3.TextXAlignment = Enum.TextXAlignment.Right
  862. onetext4.TextXAlignment = Enum.TextXAlignment.Right
  863. onething.Position = UDim2.new(1, -142, 0, 8)
  864. onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 5))
  865. else
  866. onetext.TextXAlignment = Enum.TextXAlignment.Left
  867. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  868. onetext2.Position = UDim2.new(0, 4, 0, 1)
  869. onetext3.TextXAlignment = Enum.TextXAlignment.Left
  870. onetext4.TextXAlignment = Enum.TextXAlignment.Left
  871. onething.Position = UDim2.new(0, 2, 0, 8)
  872. onetext.Position = UDim2.new(0, 6, 0, (onething.Visible and 35 or 5))
  873. end
  874. end
  875. end,
  876. ["HoverText"] = "Renders a vape watermark"
  877. })
  878. TextGui.CreateToggle({
  879. ["Name"] = "Render background",
  880. ["Function"] = function(callback)
  881. onebackground.Visible = callback
  882. end
  883. })
  884. TextGuiCircleObject = TextGui.CreateCircleWindow({
  885. ["Name"] = "Blacklist",
  886. ["Type"] = "Blacklist",
  887. ["UpdateFunction"] = function()
  888. GuiLibrary["UpdateHudEvent"]:Fire()
  889. end
  890. })
  891.  
  892. local healthColorToPosition = {
  893. [Vector3.new(Color3.fromRGB(255, 28, 0).r,
  894. Color3.fromRGB(255, 28, 0).g,
  895. Color3.fromRGB(255, 28, 0).b)] = 0.1;
  896. [Vector3.new(Color3.fromRGB(250, 235, 0).r,
  897. Color3.fromRGB(250, 235, 0).g,
  898. Color3.fromRGB(250, 235, 0).b)] = 0.5;
  899. [Vector3.new(Color3.fromRGB(27, 252, 107).r,
  900. Color3.fromRGB(27, 252, 107).g,
  901. Color3.fromRGB(27, 252, 107).b)] = 0.8;
  902. }
  903. local min = 0.1
  904. local minColor = Color3.fromRGB(255, 28, 0)
  905. local max = 0.8
  906. local maxColor = Color3.fromRGB(27, 252, 107)
  907.  
  908. local function HealthbarColorTransferFunction(healthPercent)
  909. if healthPercent < min then
  910. return minColor
  911. elseif healthPercent > max then
  912. return maxColor
  913. end
  914.  
  915.  
  916. local numeratorSum = Vector3.new(0,0,0)
  917. local denominatorSum = 0
  918. for colorSampleValue, samplePoint in pairs(healthColorToPosition) do
  919. local distance = healthPercent - samplePoint
  920. if distance == 0 then
  921.  
  922. return Color3.new(colorSampleValue.x, colorSampleValue.y, colorSampleValue.z)
  923. else
  924. local wi = 1 / (distance*distance)
  925. numeratorSum = numeratorSum + wi * colorSampleValue
  926. denominatorSum = denominatorSum + wi
  927. end
  928. end
  929. local result = numeratorSum / denominatorSum
  930. return Color3.new(result.x, result.y, result.z)
  931. end
  932.  
  933. local TargetInfo = GuiLibrary.CreateCustomWindow({
  934. ["Name"] = "Target Info",
  935. ["Icon"] = "vape/assets/TargetInfoIcon1.png",
  936. ["IconSize"] = 16
  937. })
  938. local TargetInfoDisplayNames = TargetInfo.CreateToggle({
  939. ["Name"] = "Use Display Name",
  940. ["Function"] = function() end,
  941. ["Default"] = true
  942. })
  943. local targetinfobkg1 = Instance.new("Frame")
  944. targetinfobkg1.BackgroundColor3 = Color3.fromRGB(26, 25, 26)
  945. targetinfobkg1.BorderSizePixel = 0
  946. targetinfobkg1.Size = UDim2.new(0, 220, 0, 72)
  947. targetinfobkg1.Position = UDim2.new(0, 0, 0, 0)
  948. targetinfobkg1.Parent = TargetInfo.GetCustomChildren()
  949. local targetinfobkg2 = targetinfobkg1:Clone()
  950. targetinfobkg2.ZIndex = 0
  951. targetinfobkg2.Position = UDim2.new(0, 0, 0, -6)
  952. targetinfobkg2.Size = UDim2.new(0, 220, 0, 86)
  953. targetinfobkg2.Parent = targetinfobkg1
  954. local targetinfobkg3 = Instance.new("Frame")
  955. targetinfobkg3.BackgroundColor3 = Color3.fromRGB(31, 30, 31)
  956. targetinfobkg3.Size = UDim2.new(0, 220, 0, 80)
  957. targetinfobkg3.Position = UDim2.new(0, 0, 0, -5)
  958. targetinfobkg3.Name = "MainInfo"
  959. targetinfobkg3.Parent = targetinfobkg1
  960. local targetname = Instance.new("TextLabel")
  961. targetname.TextSize = 17
  962. targetname.Font = Enum.Font.SourceSans
  963. targetname.TextColor3 = Color3.fromRGB(162, 162, 162)
  964. targetname.Position = UDim2.new(0, 72, 0, 7)
  965. targetname.TextStrokeTransparency = 0.75
  966. targetname.BackgroundTransparency = 1
  967. targetname.Size = UDim2.new(0, 80, 0, 16)
  968. targetname.TextScaled = true
  969. targetname.Text = "Target name"
  970. targetname.ZIndex = 2
  971. targetname.TextXAlignment = Enum.TextXAlignment.Left
  972. targetname.TextYAlignment = Enum.TextYAlignment.Top
  973. targetname.Parent = targetinfobkg3
  974. local targethealth = Instance.new("TextLabel")
  975. targethealth.TextColor3 = Color3.fromRGB(95, 94, 95)
  976. targethealth.Font = Enum.Font.SourceSans
  977. targethealth.Size = UDim2.new(0, 0, 0, 0)
  978. targethealth.TextSize = 17
  979. targethealth.Position = UDim2.new(0, 210, 0, 6)
  980. targethealth.BackgroundTransparency = 1
  981. targethealth.Text = '20'..' hp'
  982. targethealth.TextScaled = false
  983. targethealth.ZIndex = 2
  984. targethealth.TextXAlignment = Enum.TextXAlignment.Right
  985. targethealth.TextYAlignment = Enum.TextYAlignment.Top
  986. targethealth.Parent = targetinfobkg3
  987. local targethealthbkg = Instance.new("Frame")
  988. targethealthbkg.BackgroundColor3 = Color3.fromRGB(43, 42, 43)
  989. targethealthbkg.Size = UDim2.new(0, 138, 0, 4)
  990. targethealthbkg.Position = UDim2.new(0, 72, 0, 29)
  991. targethealthbkg.Parent = targetinfobkg3
  992. local targethealthgreen = Instance.new("Frame")
  993. targethealthgreen.BackgroundColor3 = Color3.fromRGB(40, 137, 109)
  994. targethealthgreen.Size = UDim2.new(1, 0, 0, 4)
  995. targethealthgreen.ZIndex = 3
  996. targethealthgreen.Parent = targethealthbkg
  997. local targetimage = Instance.new("ImageLabel")
  998. targetimage.Size = UDim2.new(0, 61, 0, 61)
  999. targetimage.BackgroundTransparency = 1
  1000. targetimage.Image = 'rbxthumb://type=AvatarHeadShot&id='..game:GetService("Players").LocalPlayer.UserId..'&w=420&h=420'
  1001. targetimage.Position = UDim2.new(0, 5, 0, 10)
  1002. targetimage.Parent = targetinfobkg3
  1003. local round1 = Instance.new("UICorner")
  1004. round1.CornerRadius = UDim.new(0, 4)
  1005. round1.Parent = targetinfobkg2
  1006. local round2 = Instance.new("UICorner")
  1007. round2.CornerRadius = UDim.new(0, 4)
  1008. round2.Parent = targetinfobkg3
  1009. local round3 = Instance.new("UICorner")
  1010. round3.CornerRadius = UDim.new(0, 8)
  1011. round3.Parent = targethealthbkg
  1012. local round4 = Instance.new("UICorner")
  1013. round4.CornerRadius = UDim.new(0, 8)
  1014. round4.Parent = targethealthgreen
  1015. local round5 = Instance.new("UICorner")
  1016. round5.CornerRadius = UDim.new(0, 4)
  1017. round5.Parent = targetimage
  1018. local oldhealth = 100
  1019. local allowedtween = true
  1020. TargetInfo.GetCustomChildren().Parent:GetPropertyChangedSignal("Size"):connect(function()
  1021. if TargetInfo.GetCustomChildren().Parent.Size ~= UDim2.new(0, 220, 0, 0) then
  1022. targetinfobkg3.Position = UDim2.new(0, 0, 0, -5)
  1023. targetinfobkg2.BackgroundTransparency = 0
  1024. targetinfobkg1.BackgroundTransparency = 0
  1025. else
  1026. targetinfobkg3.Position = UDim2.new(0, 0, 0, 40)
  1027. targetinfobkg2.BackgroundTransparency = 1
  1028. targetinfobkg1.BackgroundTransparency = 1
  1029. end
  1030. end)
  1031. shared.VapeTargetInfo = {
  1032. ["UpdateInfo"] = function(tab, targetsize)
  1033. targetinfobkg3.Visible = (targetsize > 0) or (TargetInfo.GetCustomChildren().Parent.Size ~= UDim2.new(0, 220, 0, 0))
  1034. for i,v in pairs(tab) do
  1035. local plr = game:GetService("Players"):FindFirstChild(i)
  1036. targetimage.Image = 'rbxthumb://type=AvatarHeadShot&id='..v["UserId"]..'&w=420&h=420'
  1037. targethealthgreen:TweenSize(UDim2.new(v["Health"] / v["MaxHealth"], 0, 0, 4), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 0.05, true)
  1038. targethealth.Text = (math.floor((v["Health"] / 5) * 10) / 10).." hp"
  1039. targethealthgreen.BackgroundColor3 = HealthbarColorTransferFunction(v["Health"] / v["MaxHealth"])
  1040. targetname.Text = (TargetInfoDisplayNames["Enabled"] and plr and plr.DisplayName or i)
  1041. end
  1042. end,
  1043. ["Object"] = TargetInfo
  1044. }
  1045. GUI.CreateCustomToggle({
  1046. ["Name"] = "Target Info",
  1047. ["Icon"] = "vape/assets/TargetInfoIcon2.png",
  1048. ["Function"] = function(callback) TargetInfo.SetVisible(callback) end,
  1049. ["Priority"] = 1
  1050. })
  1051. local GeneralSettings = GUI.CreateDivider2("General Settings")
  1052. local ModuleSettings = GUI.CreateDivider2("Module Settings")
  1053. local GUISettings = GUI.CreateDivider2("GUI Settings")
  1054. ModuleSettings.CreateToggle({
  1055. ["Name"] = "Teams by server",
  1056. ["Function"] = function() end,
  1057. })
  1058. ModuleSettings.CreateToggle({
  1059. ["Name"] = "Teams by color",
  1060. ["Function"] = function() end,
  1061. ["Default"] = true,
  1062. ["HoverText"] = "Ignore players with the selected name color"
  1063. })
  1064. local MiddleClickInput
  1065. ModuleSettings.CreateToggle({
  1066. ["Name"] = "MiddleClick friends",
  1067. ["Function"] = function(callback)
  1068. if callback then
  1069. MiddleClickInput = game:GetService("UserInputService").InputBegan:connect(function(input1)
  1070. if input1.UserInputType == Enum.UserInputType.MouseButton3 then
  1071. if mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or mouse.Target.Parent:IsA("Accessory") and mouse.Target.Parent.Parent:FindFirstChild("HumanoidRootPart") then
  1072. local user = (mouse.Target.Parent:IsA("Accessory") and mouse.Target.Parent.Parent.Name or mouse.Target.Parent.Name)
  1073. if table.find(FriendsTextList["ObjectList"], user) == nil then
  1074. table.insert(FriendsTextList["ObjectList"], user)
  1075. FriendsTextList["RefreshValues"](FriendsTextList["ObjectList"])
  1076. else
  1077. table.remove(FriendsTextList["ObjectList"], table.find(FriendsTextList["ObjectList"], user))
  1078. FriendsTextList["RefreshValues"](FriendsTextList["ObjectList"])
  1079. end
  1080. end
  1081. end
  1082. end)
  1083. else
  1084. if MiddleClickInput then
  1085. MiddleClickInput:Disconnect()
  1086. end
  1087. end
  1088. end,
  1089. ["HoverText"] = "Click middle mouse button to add the player you are hovering over as a friend"
  1090. })
  1091. ModuleSettings.CreateToggle({
  1092. ["Name"] = "Lobby Check",
  1093. ["Function"] = function() end,
  1094. ["Default"] = true,
  1095. ["HoverText"] = "Temporarily disables certain features in server lobbies."
  1096. })
  1097. local blatantmode = GUI.CreateToggle({
  1098. ["Name"] = "Blatant mode",
  1099. ["Function"] = function() end,
  1100. ["HoverText"] = "Required for certain features."
  1101. })
  1102. guicolorslider = GUI.CreateColorSlider("GUI Theme", function(val) GuiLibrary["Settings"]["GUIObject"]["Color"] = val GuiLibrary["UpdateUI"]() end)
  1103. local tabsortorder = {
  1104. ["CombatButton"] = 1,
  1105. ["BlatantButton"] = 2,
  1106. ["RenderButton"] = 3,
  1107. ["UtilityButton"] = 4,
  1108. ["WorldButton"] = 5,
  1109. ["FriendsButton"] = 6,
  1110. ["ProfilesButton"] = 7
  1111. }
  1112.  
  1113. local tabcategorycolor = {
  1114. ["CombatWindow"] = Color3.fromRGB(214, 27, 6),
  1115. ["BlatantWindow"] = Color3.fromRGB(219, 21, 133),
  1116. ["RenderWindow"] = Color3.fromRGB(0, 255, 0),
  1117. ["UtilityWindow"] = Color3.fromRGB(0, 193, 22),
  1118. ["WorldWindow"] = Color3.fromRGB(231, 6, 112)
  1119. }
  1120.  
  1121. GuiLibrary["UpdateUI"] = function()
  1122. pcall(function()
  1123. GuiLibrary["ObjectsThatCanBeSaved"]["GUIWindow"]["Object"].Logo1.Logo2.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1124. onething.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1125. onetext.TextColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1126. local newtext = ""
  1127. local newfirst = false
  1128. for i2,v2 in pairs(textwithoutthing:split("\n")) do
  1129. local rainbowcolor = GuiLibrary["Settings"]["GUIObject"]["Color"] + (GuiLibrary["ObjectsThatCanBeSaved"]["Gui ColorSliderColor"]["Api"]["RainbowValue"] and (-0.025 * i2) or 0)
  1130. if rainbowcolor < 0 then rainbowcolor = 1 + rainbowcolor end
  1131. local newcolor = Color3.fromHSV(rainbowcolor, 0.7, 0.9)
  1132. if TextGuiUseCategoryColor["Enabled"] and GuiLibrary["ObjectsThatCanBeSaved"][v2:gsub(" ", "").."OptionsButton"] and tabcategorycolor[GuiLibrary["ObjectsThatCanBeSaved"][v2:gsub(" ", "").."OptionsButton"]["Object"].Parent.Parent.Name.."Window"] then
  1133. newcolor = tabcategorycolor[GuiLibrary["ObjectsThatCanBeSaved"][v2:gsub(" ", "").."OptionsButton"]["Object"].Parent.Parent.Name.."Window"]
  1134. end
  1135. newtext = newtext..(newfirst and "\n" or " ")..'<font color="rgb('..tostring(math.floor(newcolor.R * 255))..","..tostring(math.floor(newcolor.G * 255))..","..tostring(math.floor(newcolor.B * 255))..')">'..v2..'</font>'
  1136. newfirst = true
  1137. end
  1138. onetext.Text = newtext
  1139. local buttons = 0
  1140. for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  1141. if v["Type"] == "TargetFrame" then
  1142. if v["Object2"].Visible then
  1143. v["Object"].TextButton.Frame.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1144. end
  1145. end
  1146. if v["Type"] == "TargetButton" then
  1147. if v["Api"]["Enabled"] then
  1148. v["Object"].BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1149. end
  1150. end
  1151. if v["Type"] == "CircleListFrame" then
  1152. if v["Object2"].Visible then
  1153. v["Object"].TextButton.Frame.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1154. end
  1155. end
  1156. if (v["Type"] == "Button" or v["Type"] == "ButtonMain") and v["Api"]["Enabled"] then
  1157. buttons = buttons + 1
  1158. local rainbowcolor = GuiLibrary["Settings"]["GUIObject"]["Color"] + (GuiLibrary["ObjectsThatCanBeSaved"]["Gui ColorSliderColor"]["Api"]["RainbowValue"] and (-0.025 * tabsortorder[i]) or 0)
  1159. if rainbowcolor < 0 then rainbowcolor = 1 + rainbowcolor end
  1160. local newcolor = Color3.fromHSV(rainbowcolor, 0.7, 0.9)
  1161. v["Object"].ButtonText.TextColor3 = newcolor
  1162. if v["Object"]:FindFirstChild("ButtonIcon") then
  1163. v["Object"].ButtonIcon.ImageColor3 = newcolor
  1164. end
  1165. end
  1166. if v["Type"] == "OptionsButton" then
  1167. if v["Api"]["Enabled"] then
  1168. v["Object"].BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1169. end
  1170. end
  1171. if v["Type"] == "ExtrasButton" then
  1172. if v["Api"]["Enabled"] then
  1173. local rainbowcolor = GuiLibrary["Settings"]["GUIObject"]["Color"] + (GuiLibrary["ObjectsThatCanBeSaved"]["Gui ColorSliderColor"]["Api"]["RainbowValue"] and (-0.025 * buttons) or 0)
  1174. if rainbowcolor < 0 then rainbowcolor = 1 + rainbowcolor end
  1175. local newcolor = Color3.fromHSV(rainbowcolor, 0.7, 0.9)
  1176. v["Object"].ImageColor3 = newcolor
  1177. end
  1178. end
  1179. if (v["Type"] == "Toggle" or v["Type"] == "ToggleMain") and v["Api"]["Enabled"] then
  1180. v["Object"].ToggleFrame1.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1181. end
  1182. if v["Type"] == "Slider" then
  1183. v["Object"].Slider.FillSlider.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1184. v["Object"].Slider.FillSlider.ButtonSlider.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1185. end
  1186. if v["Type"] == "TwoSlider" then
  1187. v["Object"].Slider.FillSlider.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1188. v["Object"].Slider.ButtonSlider.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1189. v["Object"].Slider.ButtonSlider2.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1190. end
  1191. end
  1192. local rainbowcolor = GuiLibrary["Settings"]["GUIObject"]["Color"] + (GuiLibrary["ObjectsThatCanBeSaved"]["Gui ColorSliderColor"]["Api"]["RainbowValue"] and (-0.025 * buttons) or 0)
  1193. if rainbowcolor < 0 then rainbowcolor = 1 + rainbowcolor end
  1194. GuiLibrary["ObjectsThatCanBeSaved"]["GUIWindow"]["Object"].Children.Extras.MainButton.ImageColor3 = (GUI["GetVisibleIcons"]() > 0 and Color3.fromHSV(rainbowcolor, 0.7, 0.9) or Color3.fromRGB(199, 199, 199))
  1195. for i3, v3 in pairs(ProfilesTextList["ScrollingObject"].ScrollingFrame:GetChildren()) do
  1196. -- pcall(function()
  1197. if v3:IsA("TextButton") and v3.ItemText.Text == GuiLibrary["CurrentProfile"] then
  1198. v3.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1199. v3.ImageButton.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 0.7, 0.9)
  1200. v3.ItemText.TextColor3 = Color3.new(1, 1, 1)
  1201. v3.ItemText.TextStrokeTransparency = 0.75
  1202. end
  1203. -- end)
  1204. end
  1205. end)
  1206. end
  1207.  
  1208. GeneralSettings.CreateToggle({
  1209. ["Name"] = "Auto-load module states",
  1210. ["Function"] = function() end,
  1211. ["HoverText"] = "Automatically enable saved module states upon loading profiles.\n(You can save module states by shift-clicking a profile button)"
  1212. })
  1213. GUISettings.CreateToggle({
  1214. ["Name"] = "Blur Background",
  1215. ["Function"] = function(callback) GuiLibrary["MainBlur"].Size = (callback and 25 or 0) end,
  1216. ["Default"] = true,
  1217. ["HoverText"] = "Blur the background of the GUI"
  1218. })
  1219. local rescale = GUISettings.CreateToggle({
  1220. ["Name"] = "Rescale",
  1221. ["Function"] = function(callback)
  1222. GuiLibrary["MainRescale"].Scale = (callback and math.clamp(cam.ViewportSize.X / 1920, 0.5, 1) or 0.99)
  1223. task.wait(0.01)
  1224. GuiLibrary["MainRescale"].Scale = (callback and math.clamp(cam.ViewportSize.X / 1920, 0.5, 1) or 1)
  1225. end,
  1226. ["Default"] = true
  1227. })
  1228. cam:GetPropertyChangedSignal("ViewportSize"):connect(function()
  1229. if rescale["Enabled"] then
  1230. GuiLibrary["MainRescale"].Scale = math.clamp(cam.ViewportSize.X / 1920, 0.5, 1)
  1231. end
  1232. end)
  1233. GeneralSettings.CreateToggle({
  1234. ["Name"] = "Enable Multi-Keybinding",
  1235. ["Function"] = function() end
  1236. })
  1237. local welcomemsg = GUISettings.CreateToggle({
  1238. ["Name"] = "GUI bind indicator",
  1239. ["Function"] = function() end,
  1240. ["Default"] = true,
  1241. ["HoverText"] = 'Displays a message indicating your GUI keybind upon injecting.\nI.E "Press RIGHTSHIFT to open GUI"'
  1242. })
  1243. GUISettings.CreateToggle({
  1244. ["Name"] = "Show Tooltips",
  1245. ["Function"] = function(callback) GuiLibrary["ToggleTooltips"] = callback end,
  1246. ["Default"] = true,
  1247. ["HoverText"] = "Toggles visibility of these"
  1248. })
  1249. GeneralSettings.CreateToggle({
  1250. ["Name"] = "Discord integration",
  1251. ["Function"] = function() end
  1252. })
  1253. local ToggleNotifications = {["Object"] = nil}
  1254. local Notifications = {}
  1255. Notifications = GeneralSettings.CreateToggle({
  1256. ["Name"] = "Notifications",
  1257. ["Function"] = function(callback)
  1258. GuiLibrary["Notifications"] = callback
  1259. end,
  1260. ["Default"] = true,
  1261. ["HoverText"] = "Shows notifications"
  1262. })
  1263. ToggleNotifications = GUISettings.CreateToggle({
  1264. ["Name"] = "Toggle Alert",
  1265. ["Function"] = function(callback) GuiLibrary["ToggleNotifications"] = callback end,
  1266. ["Default"] = true,
  1267. ["HoverText"] = "Notifies you if a module is enabled/disabled."
  1268. })
  1269. ToggleNotifications["Object"].BackgroundTransparency = 0
  1270. ToggleNotifications["Object"].BorderSizePixel = 0
  1271. ToggleNotifications["Object"].BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  1272.  
  1273. local GUIbind = GUI.CreateGUIBind()
  1274.  
  1275. local teleportfunc = game:GetService("Players").LocalPlayer.OnTeleport:Connect(function(State)
  1276. if State == Enum.TeleportState.Started then
  1277. local teleportstr = 'shared.VapeSwitchServers = true if shared.VapeDeveloper then loadstring(readfile("vape/NewMainScript.lua"))() else loadstring(game:HttpGet("https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/NewMainScript.lua", true))() end'
  1278. if shared.VapeDeveloper then
  1279. teleportstr = 'shared.VapeDeveloper = true '..teleportstr
  1280. end
  1281. GuiLibrary["SaveSettings"]()
  1282. queueteleport(teleportstr)
  1283. end
  1284. end)
  1285.  
  1286. GuiLibrary["SelfDestruct"] = function()
  1287. game:GetService("UserInputService").OverrideMouseIconBehavior = Enum.OverrideMouseIconBehavior.None
  1288. GuiLibrary["SelfDestructEvent"]:Fire()
  1289. selfdestruct = true
  1290. GuiLibrary["SaveSettings"]()
  1291. for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  1292. if (v["Type"] == "Button" or v["Type"] == "OptionsButton") and v["Api"]["Enabled"] then
  1293. v["Api"]["ToggleButton"](false)
  1294. end
  1295. end
  1296. shared.VapeExecuted = nil
  1297. shared.VapeSwitchServers = nil
  1298. shared.GuiLibrary = nil
  1299. GuiLibrary["KeyInputHandler"]:Disconnect()
  1300. GuiLibrary["KeyInputHandler2"]:Disconnect()
  1301. if MiddleClickInput then
  1302. MiddleClickInput:Disconnect()
  1303. end
  1304. teleportfunc:Disconnect()
  1305. GuiLibrary["MainGui"]:Remove()
  1306. GuiLibrary["MainBlur"]:Remove()
  1307. end
  1308.  
  1309. ModuleSettings.CreateButton2({
  1310. ["Name"] = "RESET CURRENT PROFILE",
  1311. ["Function"] = function()
  1312. GuiLibrary["SelfDestruct"]()
  1313. delfile("vape/Profiles/"..(GuiLibrary["CurrentProfile"] == "default" and "" or GuiLibrary["CurrentProfile"])..game.PlaceId..".vapeprofile")
  1314. shared.VapeSwitchServers = true
  1315. shared.VapeOpenGui = true
  1316. loadstring(GetURL("NewMainScript.lua"))()
  1317. end
  1318. })
  1319. GUISettings.CreateButton2({
  1320. ["Name"] = "RESET GUI POSITIONS",
  1321. ["Function"] = function()
  1322. for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  1323. if (v["Type"] == "Window" or v["Type"] == "CustomWindow") and GuiLibrary["findObjectInTable"](GuiLibrary["ObjectsThatCanBeSaved"], i) then
  1324. v["Object"].Position = (i == "GUIWindow" and UDim2.new(0, 6, 0, 6) or UDim2.new(0, 223, 0, 6))
  1325. end
  1326. end
  1327. end
  1328. })
  1329. GUISettings.CreateButton2({
  1330. ["Name"] = "SORT GUI",
  1331. ["Function"] = function()
  1332. local sorttable = {}
  1333. local movedown = false
  1334. local sortordertable = {
  1335. ["GUIWindow"] = 1,
  1336. ["CombatWindow"] = 2,
  1337. ["BlatantWindow"] = 3,
  1338. ["RenderWindow"] = 4,
  1339. ["UtilityWindow"] = 5,
  1340. ["WorldWindow"] = 6,
  1341. ["FriendsWindow"] = 7,
  1342. ["ProfilesWindow"] = 8,
  1343. ["Text GUICustomWindow"] = 9,
  1344. ["TargetInfoCustomWindow"] = 10,
  1345. ["RadarCustomWindow"] = 11,
  1346. }
  1347. local storedpos = {}
  1348. local num = 6
  1349. for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  1350. if v["Type"] == "Window" and GuiLibrary["findObjectInTable"](GuiLibrary["ObjectsThatCanBeSaved"], i) and v["Object"].Visible then
  1351. local sortordernum = (sortordertable[i] or #sorttable)
  1352. sorttable[sortordernum] = v["Object"]
  1353. end
  1354. end
  1355. for i2,v2 in pairs(sorttable) do
  1356. if num > 1697 then
  1357. movedown = true
  1358. num = 6
  1359. end
  1360. v2.Position = UDim2.new(0, num, 0, (movedown and (storedpos[num] and (storedpos[num] + 9) or 400) or 6))
  1361. if not storedpos[num] then
  1362. storedpos[num] = v2.AbsoluteSize.Y
  1363. if v2.Name == "MainWindow" then
  1364. storedpos[num] = 400
  1365. end
  1366. end
  1367. num = num + 223
  1368. end
  1369. end
  1370. })
  1371. GeneralSettings.CreateButton2({
  1372. ["Name"] = "UNINJECT",
  1373. ["Function"] = GuiLibrary["SelfDestruct"]
  1374. })
  1375.  
  1376. loadstring(GetURL("AnyGame.vape"))()
  1377. if pcall(function() readfile("vape/CustomModules/"..game.PlaceId..".vape") end) then
  1378. loadstring(readfile("vape/CustomModules/"..game.PlaceId..".vape"))()
  1379. else
  1380. local publicrepo = checkpublicrepo(game.PlaceId)
  1381. if publicrepo then
  1382. loadstring(publicrepo)()
  1383. end
  1384. end
  1385.  
  1386. GuiLibrary["LoadSettings"]()
  1387. if #ProfilesTextList["ObjectList"] == 0 then
  1388. table.insert(ProfilesTextList["ObjectList"], "default")
  1389. ProfilesTextList["RefreshValues"](ProfilesTextList["ObjectList"])
  1390. end
  1391. GUIbind["Reload"]()
  1392. GuiLibrary["UpdateUI"]()
  1393. if not shared.VapeSwitchServers then
  1394. if blatantmode["Enabled"] then
  1395. pcall(function()
  1396. local frame = GuiLibrary["CreateNotification"]("Blatant Enabled", "Vape is now in Blatant Mode.", 4, "assets/WarningNotification.png")
  1397. frame.Frame.BackgroundColor3 = Color3.fromRGB(236, 129, 44)
  1398. frame.Frame.Frame.BackgroundColor3 = Color3.fromRGB(236, 129, 44)
  1399. end)
  1400. end
  1401. GuiLibrary["LoadedAnimation"](welcomemsg["Enabled"])
  1402. else
  1403. shared.VapeSwitchServers = nil
  1404. end
  1405. if shared.VapeOpenGui then
  1406. GuiLibrary["MainGui"].ScaledGui.ClickGui.Visible = true
  1407. GuiLibrary["MainBlur"].Enabled = true
  1408. shared.VapeOpenGui = nil
  1409. end
  1410.  
  1411. spawn(function()
  1412. while task.wait(10) do
  1413. if not selfdestruct then
  1414. GuiLibrary["SaveSettings"]()
  1415. end
  1416. end
  1417. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement