Advertisement
MateoPOP

BEDWRAS SCIRPT

Jan 24th, 2022
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.97 KB | None | 0 0
  1. repeat 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 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 checkpublicrepo(id)
  19. local req = requestfunc({
  20. Url = "https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/CustomModules/"..id..".vape",
  21. Method = "GET"
  22. })
  23. if req.StatusCode == 200 then
  24. return req.Body
  25. end
  26. return nil
  27. end
  28.  
  29. if not (getasset and requestfunc and queueteleport) then
  30. print("Vape not supported with your exploit.")
  31. return
  32. end
  33.  
  34. if shared.VapeExecuted then
  35. error("Vape Already Injected")
  36. return
  37. else
  38. shared.VapeExecuted = true
  39. end
  40.  
  41. if isfolder("vape") == false then
  42. makefolder("vape")
  43. end
  44. if isfolder("vape/CustomModules") == false then
  45. makefolder("vape/CustomModules")
  46. end
  47. if isfolder("vape/Profiles") == false then
  48. makefolder("vape/Profiles")
  49. end
  50. if isfolder("vape/assets") == false then
  51. makefolder("vape/assets")
  52. end
  53.  
  54. local GuiLibrary = loadstring(GetURL("NewGuiLibrary.lua"))()
  55.  
  56. local function getcustomassetfunc(path)
  57. if not isfile(path) then
  58. local req = requestfunc({
  59. Url = "https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/"..path:gsub("vape/assets", "assets"),
  60. Method = "GET"
  61. })
  62. writefile(path, req.Body)
  63. end
  64. if not isfile(path) then
  65. local textlabel = Instance.new("TextLabel")
  66. textlabel.Size = UDim2.new(1, 0, 0, 36)
  67. textlabel.Text = "Downloading "..path
  68. textlabel.BackgroundTransparency = 1
  69. textlabel.TextStrokeTransparency = 0
  70. textlabel.TextSize = 30
  71. textlabel.TextColor3 = Color3.new(1, 1, 1)
  72. textlabel.Position = UDim2.new(0, 0, 0, -36)
  73. textlabel.Parent = GuiLibrary["MainGui"]
  74. repeat wait() until isfile(path)
  75. textlabel:Remove()
  76. end
  77. return getasset(path)
  78. end
  79.  
  80. shared.GuiLibrary = GuiLibrary
  81. local workspace = game:GetService("Workspace")
  82. local cam = workspace.CurrentCamera
  83. local selfdestruct = false
  84. local GUI = GuiLibrary.CreateMainWindow()
  85. local Combat = GuiLibrary.CreateWindow("Combat", "vape/assets/CombatIcon.png", 15, UDim2.new(0, 223, 0, 6), false)
  86. local Blatant = GuiLibrary.CreateWindow("Blatant", "vape/assets/BlatantIcon.png", 16, UDim2.new(0, 223, 0, 6), false)
  87. local Render = GuiLibrary.CreateWindow("Render", "vape/assets/RenderIcon.png", 17, UDim2.new(0, 223, 0, 6), false)
  88. local Utility = GuiLibrary.CreateWindow("Utility", "vape/assets/UtilityIcon.png", 17, UDim2.new(0, 223, 0, 6), false)
  89. local World = GuiLibrary.CreateWindow("World", "vape/assets/WorldIcon.png", 16, UDim2.new(0, 223, 0, 6), false)
  90. local Other = GuiLibrary.CreateWindow("Other", "vape/assets/OtherIcon.png", 20, UDim2.new(0, 223, 0, 6), false)
  91. local Friends = GuiLibrary.CreateWindow2("Friends", "vape/assets/FriendsIcon.png", 17, UDim2.new(0, 177, 0, 6), false)
  92. local Profiles = GuiLibrary.CreateWindow2("Profiles", "vape/assets/ProfilesIcon.png", 19, UDim2.new(0, 177, 0, 6), false)
  93. GUI.CreateDivider()
  94. GUI.CreateButton("Combat", function() Combat.SetVisible(true) end, function() Combat.SetVisible(false) end, "vape/assets/CombatIcon.png", 15)
  95. GUI.CreateButton("Blatant", function() Blatant.SetVisible(true) end, function() Blatant.SetVisible(false) end, "vape/assets/BlatantIcon.png", 16)
  96. GUI.CreateButton("Render", function() Render.SetVisible(true) end, function() Render.SetVisible(false) end, "vape/assets/RenderIcon.png", 17)
  97. GUI.CreateButton("Utility", function() Utility.SetVisible(true) end, function() Utility.SetVisible(false) end, "vape/assets/UtilityIcon.png", 17)
  98. GUI.CreateButton("World", function() World.SetVisible(true) end, function() World.SetVisible(false) end, "vape/assets/WorldIcon.png", 16)
  99. GUI.CreateButton("Other", function() Other.SetVisible(true) end, function() Other.SetVisible(false) end, "vape/assets/OtherIcon.png", 20)
  100. GUI.CreateDivider("MISC")
  101. GUI.CreateButton("Friends", function() Friends.SetVisible(true) end, function() Friends.SetVisible(false) end)
  102. GUI.CreateButton("Profiles", function() Profiles.SetVisible(true) end, function() Profiles.SetVisible(false) end)
  103. local FriendsTextList = {["RefreshValues"] = function() end}
  104. FriendsTextList = Friends.CreateTextList("FriendsList", "Username / Alias", function(user) end, function(num) end, function(obj)
  105. local friendcircle = Instance.new("Frame")
  106. friendcircle.Size = UDim2.new(0, 10, 0, 10)
  107. friendcircle.Name = "FriendCircle"
  108. friendcircle.BackgroundColor3 = Color3.fromHSV(0.44, 1, 1)
  109. friendcircle.BorderSizePixel = 0
  110. friendcircle.Position = UDim2.new(0, 10, 0, 13)
  111. friendcircle.Parent = obj
  112. local friendcorner = Instance.new("UICorner")
  113. friendcorner.CornerRadius = UDim.new(0, 8)
  114. friendcorner.Parent = friendcircle
  115. obj.ItemText.Position = UDim2.new(0, 36, 0, 0)
  116. obj.ItemText.Size = UDim2.new(0, 157, 0, 33)
  117. end)
  118. Friends.CreateColorSlider("Friends Color", function(val)
  119. pcall(function()
  120. FriendsTextList["Object"].AddBoxBKG.AddButton.ImageColor3 = Color3.fromHSV(val, 1, 1)
  121. end)
  122. for i, v in pairs(FriendsTextList["ScrollingObject"].ScrollingFrame:GetChildren()) do
  123. pcall(function()
  124. if v:IsA("Frame") then
  125. v.FriendCircle.BackgroundColor3 = Color3.fromHSV(val, 1, 1)
  126. end
  127. end)
  128. end
  129. end)
  130. Friends.CreateToggle("Use Friends", function() end, function() end, false, "")
  131. Friends.CreateToggle("Use Roblox Friends", function() end, function() end, false, "")
  132. Friends.CreateToggle("Use color", function() end, function() end, false, "")
  133. local ProfilesTextList = {["RefreshValues"] = function() end}
  134. ProfilesTextList = Profiles.CreateTextList("ProfilesList", "Type name", function(user)
  135. GuiLibrary["Profiles"][user] = {["Keybind"] = "", ["Selected"] = false}
  136. end, function(num)
  137. if #ProfilesTextList["ObjectList"] == 0 then
  138. table.insert(ProfilesTextList["ObjectList"], "default")
  139. ProfilesTextList["RefreshValues"](ProfilesTextList["ObjectList"])
  140. end
  141. end, function(obj, profilename)
  142. if GuiLibrary["Profiles"][profilename] == nil then
  143. GuiLibrary["Profiles"][profilename] = {["Keybind"] = ""}
  144. end
  145. obj.MouseButton1Click:connect(function()
  146. GuiLibrary["SwitchProfile"](profilename)
  147. end)
  148. local newsize = UDim2.new(0, 20, 0, 21)
  149. local bindbkg = Instance.new("TextButton")
  150. bindbkg.Text = ""
  151. bindbkg.AutoButtonColor = false
  152. bindbkg.Size = UDim2.new(0, 20, 0, 21)
  153. bindbkg.Position = UDim2.new(1, -50, 0, 6)
  154. bindbkg.BorderSizePixel = 0
  155. bindbkg.BackgroundColor3 = Color3.fromRGB(54, 53, 54)
  156. bindbkg.Visible = true
  157. bindbkg.Parent = obj
  158. local bindimg = Instance.new("ImageLabel")
  159. bindimg.Image = getcustomassetfunc("vape/assets/KeybindIcon.png")
  160. bindimg.BackgroundTransparency = 1
  161. bindimg.Size = UDim2.new(0, 12, 0, 12)
  162. bindimg.Position = UDim2.new(0, 4, 0, 5)
  163. bindimg.Active = false
  164. bindimg.Visible = (GuiLibrary["Profiles"][profilename]["Keybind"] == "")
  165. bindimg.Parent = bindbkg
  166. local bindtext = Instance.new("TextLabel")
  167. bindtext.Active = false
  168. bindtext.BackgroundTransparency = 1
  169. bindtext.TextSize = 16
  170. bindtext.Parent = bindbkg
  171. bindtext.Font = Enum.Font.SourceSans
  172. bindtext.Size = UDim2.new(1, 0, 1, 0)
  173. bindtext.TextColor3 = Color3.fromRGB(201, 201, 201)
  174. bindtext.Visible = (GuiLibrary["Profiles"][profilename]["Keybind"] ~= "")
  175. local bindtext2 = Instance.new("TextLabel")
  176. bindtext2.Text = "PRESS A KEY TO BIND"
  177. bindtext2.Size = UDim2.new(0, 150, 0, 33)
  178. bindtext2.Font = Enum.Font.SourceSans
  179. bindtext2.TextSize = 17
  180. bindtext2.TextColor3 = Color3.fromRGB(201, 201, 201)
  181. bindtext2.BackgroundColor3 = Color3.fromRGB(37, 37, 37)
  182. bindtext2.BorderSizePixel = 0
  183. bindtext2.Visible = false
  184. bindtext2.Parent = obj
  185. local bindround = Instance.new("UICorner")
  186. bindround.CornerRadius = UDim.new(0, 4)
  187. bindround.Parent = bindbkg
  188. bindbkg.MouseButton1Click:connect(function()
  189. if GuiLibrary["KeybindCaptured"] == false then
  190. GuiLibrary["KeybindCaptured"] = true
  191. spawn(function()
  192. bindtext2.Visible = true
  193. repeat wait() until GuiLibrary["PressedKeybindKey"] ~= ""
  194. local key = (GuiLibrary["PressedKeybindKey"] == GuiLibrary["Profiles"][profilename]["Keybind"] and "" or GuiLibrary["PressedKeybindKey"])
  195. if key == "" then
  196. GuiLibrary["Profiles"][profilename]["Keybind"] = key
  197. newsize = UDim2.new(0, 20, 0, 21)
  198. bindbkg.Size = newsize
  199. bindbkg.Visible = true
  200. bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
  201. bindimg.Visible = true
  202. bindtext.Visible = false
  203. bindtext.Text = key
  204. else
  205. local textsize = game:GetService("TextService"):GetTextSize(key, 16, bindtext.Font, Vector2.new(99999, 99999))
  206. newsize = UDim2.new(0, 13 + textsize.X, 0, 21)
  207. GuiLibrary["Profiles"][profilename]["Keybind"] = key
  208. bindbkg.Visible = true
  209. bindbkg.Size = newsize
  210. bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
  211. bindimg.Visible = false
  212. bindtext.Visible = true
  213. bindtext.Text = key
  214. end
  215. GuiLibrary["PressedKeybindKey"] = ""
  216. GuiLibrary["KeybindCaptured"] = false
  217. bindtext2.Visible = false
  218. end)
  219. end
  220. end)
  221. bindbkg.MouseEnter:connect(function()
  222. bindimg.Image = getcustomassetfunc("vape/assets/PencilIcon.png")
  223. bindimg.Visible = true
  224. bindtext.Visible = false
  225. bindbkg.Size = UDim2.new(0, 20, 0, 21)
  226. bindbkg.Position = UDim2.new(1, -50, 0, 6)
  227. end)
  228. bindbkg.MouseLeave:connect(function()
  229. bindimg.Image = getcustomassetfunc("vape/assets/KeybindIcon.png")
  230. if GuiLibrary["Profiles"][profilename]["Keybind"] ~= "" then
  231. bindimg.Visible = false
  232. bindtext.Visible = true
  233. bindbkg.Size = newsize
  234. bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
  235. end
  236. end)
  237. if GuiLibrary["Profiles"][profilename]["Keybind"] ~= "" then
  238. bindtext.Text = GuiLibrary["Profiles"][profilename]["Keybind"]
  239. local textsize = game:GetService("TextService"):GetTextSize(GuiLibrary["Profiles"][profilename]["Keybind"], 16, bindtext.Font, Vector2.new(99999, 99999))
  240. newsize = UDim2.new(0, 13 + textsize.X, 0, 21)
  241. bindbkg.Size = newsize
  242. bindbkg.Position = UDim2.new(1, -(30 + newsize.X.Offset), 0, 6)
  243. end
  244. end)
  245. GUI.CreateDivider()
  246. ---GUI.CreateCustomButton("Favorites", "vape/assets/FavoritesListIcon.png", UDim2.new(0, 17, 0, 14), function() end, function() end)
  247. --GUI.CreateCustomButton("Text GUIVertical", "vape/assets/TextGUIIcon3.png", UDim2.new(1, -56, 0, 15), function() end, function() end)
  248. local TextGui = GuiLibrary.CreateCustomWindow("Text GUI", "vape/assets/TextGUIIcon1.png", 21, UDim2.new(0, 177, 0, 6), false)
  249. --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")
  250. GUI.CreateCustomToggle("Text GUI", "vape/assets/TextGUIIcon3.png", function() TextGui.SetVisible(true) end, function() TextGui.SetVisible(false) end, false, "OptionsButton", 2)
  251.  
  252. local rainbowval = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 1))})
  253. local rainbowval2 = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 0.42)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 0.42))})
  254. local rainbowval3 = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromHSV(0, 0, 1)), ColorSequenceKeypoint.new(1, Color3.fromHSV(0, 0, 1))})
  255. local guicolorslider = {["RainbowValue"] = false}
  256.  
  257. local onething = Instance.new("ImageLabel")
  258. onething.Parent = TextGui.GetCustomChildren()
  259. onething.Name = "Logo"
  260. onething.Size = UDim2.new(0, 100, 0, 27)
  261. onething.Position = UDim2.new(1, -140, 0, 3)
  262. onething.BackgroundColor3 = Color3.new(0, 0, 0)
  263. onething.BorderSizePixel = 0
  264. onething.BackgroundTransparency = 1
  265. onething.Visible = false
  266. onething.Image = getcustomassetfunc("vape/assets/VapeLogo3.png")
  267. local onething2 = Instance.new("ImageLabel")
  268. onething2.Parent = onething
  269. onething2.Size = UDim2.new(0, 40, 0, 27)
  270. onething2.Name = "Logo2"
  271. onething2.Position = UDim2.new(1, 0, 0, 0)
  272. onething2.BorderSizePixel = 0
  273. onething2.BackgroundColor3 = Color3.new(0, 0, 0)
  274. onething2.BackgroundTransparency = 1
  275. onething2.Image = getcustomassetfunc("vape/assets/VapeLogo4.png")
  276. local onething3 = onething:Clone()
  277. onething3.ImageColor3 = Color3.new(0, 0, 0)
  278. onething3.ImageTransparency = 0.5
  279. onething3.ZIndex = 0
  280. onething3.Position = UDim2.new(0, 1, 0, 1)
  281. onething3.Visible = false
  282. onething3.Parent = onething
  283. onething3.Logo2.ImageColor3 = Color3.new(0, 0, 0)
  284. onething3.Logo2.ZIndex = 0
  285. onething3.Logo2.ImageTransparency = 0.5
  286. local onetext = Instance.new("TextLabel")
  287. onetext.Parent = TextGui.GetCustomChildren()
  288. onetext.Size = UDim2.new(1, 0, 1, 0)
  289. onetext.Position = UDim2.new(1, -154, 0, 35)
  290. onetext.TextColor3 = Color3.new(1, 1, 1)
  291. onetext.RichText = true
  292. onetext.BackgroundTransparency = 1
  293. onetext.TextXAlignment = Enum.TextXAlignment.Left
  294. onetext.TextYAlignment = Enum.TextYAlignment.Top
  295. onetext.BorderSizePixel = 0
  296. onetext.BackgroundColor3 = Color3.new(0, 0, 0)
  297. onetext.Font = Enum.Font.Gotham
  298. onetext.Text = ""
  299. onetext.TextSize = 20
  300. local onetext2 = Instance.new("TextLabel")
  301. onetext2.Name = "ExtraText"
  302. onetext2.Parent = onetext
  303. onetext2.Size = UDim2.new(1, 0, 1, 0)
  304. onetext2.Position = UDim2.new(0, 1, 0, 1)
  305. onetext2.BorderSizePixel = 0
  306. onetext2.Visible = false
  307. onetext2.ZIndex = 0
  308. onetext2.Text = ""
  309. onetext2.BackgroundTransparency = 1
  310. onetext2.TextTransparency = 0.5
  311. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  312. onetext2.TextYAlignment = Enum.TextYAlignment.Top
  313. onetext2.TextColor3 = Color3.new(0, 0, 0)
  314. onetext2.Font = Enum.Font.Gotham
  315. onetext2.TextSize = 20
  316. local onetext3 = onetext:Clone()
  317. onetext3.Name = "ExtraText"
  318. onetext3.Position = UDim2.new(0, 0, 0, 0)
  319. onetext3.TextColor3 = Color3.new(0.65, 0.65, 0.65)
  320. onetext3.Parent = onetext
  321. local onetext4 = onetext3.ExtraText
  322. onetext4.TextColor3 = Color3.new(0, 0, 0)
  323. onetext4.TextTransparency = 0.5
  324. onetext3:GetPropertyChangedSignal("Text"):connect(function() onetext4.Text = onetext3.Text end)
  325. TextGui.GetCustomChildren().Parent:GetPropertyChangedSignal("Position"):connect(function()
  326. if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
  327. onetext.TextXAlignment = Enum.TextXAlignment.Right
  328. onetext2.TextXAlignment = Enum.TextXAlignment.Right
  329. onetext3.TextXAlignment = Enum.TextXAlignment.Right
  330. onetext4.TextXAlignment = Enum.TextXAlignment.Right
  331. onetext2.Position = UDim2.new(0, 1, 0, 1)
  332. onething.Position = UDim2.new(1, -142, 0, 8)
  333. onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 5))
  334. else
  335. onetext.TextXAlignment = Enum.TextXAlignment.Left
  336. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  337. onetext2.Position = UDim2.new(0, 4, 0, 1)
  338. onetext3.TextXAlignment = Enum.TextXAlignment.Left
  339. onetext4.TextXAlignment = Enum.TextXAlignment.Left
  340. onething.Position = UDim2.new(0, 2, 0, 8)
  341. onetext.Position = UDim2.new(0, 6, 0, (onething.Visible and 35 or 5))
  342. end
  343. end)
  344.  
  345. onething.Visible = true onetext.Position = UDim2.new(0, 0, 0, 35)
  346.  
  347. local sortingmethod = "Alphabetical"
  348. local textwithoutthing = ""
  349. local function getSpaces(str)
  350. local strSize = game:GetService("TextService"):GetTextSize(str, 20, Enum.Font.SourceSans, Vector2.new(10000, 10000))
  351. return math.ceil(strSize.X / 3)
  352. end
  353. local function UpdateHud()
  354. local text = ""
  355. local text2 = ""
  356. local tableofmodules = {}
  357. local first = true
  358.  
  359. for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  360. if v["Type"] == "OptionsButton" and v["Api"]["Name"] ~= "Text GUI" then
  361. if v["Api"]["Enabled"] then
  362. table.insert(tableofmodules, {["Text"] = v["Api"]["Name"], ["ExtraText"] = v["Api"]["GetExtraText"]})
  363. end
  364. end
  365. end
  366. if sortingmethod == "Alphabetical" then
  367. table.sort(tableofmodules, function(a, b) return a["Text"]:lower() < b["Text"]:lower() end)
  368. end
  369. for i2,v2 in pairs(tableofmodules) do
  370. if first then
  371. text = v2["Text"]..string.rep(" ", getSpaces(v2["ExtraText"]()))
  372. text2 = string.rep(" ", getSpaces(v2["Text"]))..v2["ExtraText"]()
  373. first = false
  374. else
  375. text = text..'\n'..v2["Text"]..string.rep(" ", getSpaces(v2["ExtraText"]()))
  376. text2 = text2..'\n'..string.rep(" ", getSpaces(v2["Text"]))..v2["ExtraText"]()
  377. end
  378. end
  379. textwithoutthing = text
  380. onetext.Text = text
  381. onetext2.Text = text
  382. onetext3.Text = text2
  383. local newsize = game:GetService("TextService"):GetTextSize(text, onetext.TextSize, onetext.Font, Vector2.new(1000000, 1000000))
  384. onetext.Size = UDim2.new(0, 154, 0, newsize.Y)
  385. onetext3.Size = UDim2.new(0, 154, 0, newsize.Y)
  386. if TextGui.GetCustomChildren().Parent then
  387. if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
  388. onetext.TextXAlignment = Enum.TextXAlignment.Right
  389. onetext2.Position = UDim2.new(0, 1, 0, 1)
  390. onetext2.TextXAlignment = Enum.TextXAlignment.Right
  391. onetext3.TextXAlignment = Enum.TextXAlignment.Right
  392. onetext4.TextXAlignment = Enum.TextXAlignment.Right
  393. onething.Position = UDim2.new(1, -142, 0, 8)
  394. onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 5))
  395. else
  396. onetext.TextXAlignment = Enum.TextXAlignment.Left
  397. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  398. onetext2.Position = UDim2.new(0, 4, 0, 1)
  399. onetext3.TextXAlignment = Enum.TextXAlignment.Left
  400. onetext4.TextXAlignment = Enum.TextXAlignment.Left
  401. onething.Position = UDim2.new(0, 2, 0, 8)
  402. onetext.Position = UDim2.new(0, 6, 0, (onething.Visible and 35 or 5))
  403. end
  404. end
  405. end
  406.  
  407. GuiLibrary["UpdateHudEvent"].Event:connect(UpdateHud)
  408.  
  409. TextGui.CreateToggle("Watermark", function()
  410. onething.Visible = true
  411. if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
  412. onetext.TextXAlignment = Enum.TextXAlignment.Right
  413. onetext2.TextXAlignment = Enum.TextXAlignment.Right
  414. onetext2.Position = UDim2.new(0, 1, 0, 1)
  415. onetext3.TextXAlignment = Enum.TextXAlignment.Right
  416. onetext4.TextXAlignment = Enum.TextXAlignment.Right
  417. onething.Position = UDim2.new(1, -142, 0, 8)
  418. onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 5))
  419. else
  420. onetext.TextXAlignment = Enum.TextXAlignment.Left
  421. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  422. onetext2.Position = UDim2.new(0, 4, 0, 1)
  423. onetext3.TextXAlignment = Enum.TextXAlignment.Left
  424. onetext4.TextXAlignment = Enum.TextXAlignment.Left
  425. onething.Position = UDim2.new(0, 2, 0, 8)
  426. onetext.Position = UDim2.new(0, 6, 0, (onething.Visible and 35 or 5))
  427. end
  428. end, function()
  429. onething.Visible = false
  430. if (TextGui.GetCustomChildren().Parent.Position.X.Offset + TextGui.GetCustomChildren().Parent.Size.X.Offset / 2) >= (cam.ViewportSize.X / 2) then
  431. onetext.TextXAlignment = Enum.TextXAlignment.Right
  432. onetext2.TextXAlignment = Enum.TextXAlignment.Right
  433. onetext2.Position = UDim2.new(0, 1, 0, 1)
  434. onetext3.TextXAlignment = Enum.TextXAlignment.Right
  435. onetext4.TextXAlignment = Enum.TextXAlignment.Right
  436. onething.Position = UDim2.new(1, -142, 0, 8)
  437. onetext.Position = UDim2.new(1, -154, 0, (onething.Visible and 35 or 5))
  438. else
  439. onetext.TextXAlignment = Enum.TextXAlignment.Left
  440. onetext2.TextXAlignment = Enum.TextXAlignment.Left
  441. onetext2.Position = UDim2.new(0, 4, 0, 1)
  442. onetext3.TextXAlignment = Enum.TextXAlignment.Left
  443. onetext4.TextXAlignment = Enum.TextXAlignment.Left
  444. onething.Position = UDim2.new(0, 2, 0, 8)
  445. onetext.Position = UDim2.new(0, 6, 0, (onething.Visible and 35 or 5))
  446. end
  447. end)
  448. TextGui.CreateToggle("Shadow", function() onetext2.Visible = true onetext4.Visible = true onething3.Visible = true end, function() onetext2.Visible = false onetext4.Visible = false onething3.Visible = false end)
  449. TextGui.CreateToggle("Render background", function()
  450. onething.BackgroundTransparency = 0.5
  451. onething2.BackgroundTransparency = 0.5
  452. onetext.BackgroundTransparency = 0.5
  453. end, function()
  454. onething.BackgroundTransparency = 1
  455. onething2.BackgroundTransparency = 1
  456. onetext.BackgroundTransparency = 1
  457. end)
  458.  
  459. local TargetInfo = GuiLibrary.CreateCustomWindow("Target Info", "vape/assets/TargetInfoIcon1.png", 16, UDim2.new(0, 177, 0, 6), false)
  460. local targetinfobkg1 = Instance.new("Frame")
  461. targetinfobkg1.BackgroundColor3 = Color3.fromRGB(26, 25, 26)
  462. targetinfobkg1.BorderSizePixel = 0
  463. targetinfobkg1.Size = UDim2.new(0, 220, 0, 72)
  464. targetinfobkg1.Position = UDim2.new(0, 0, 0, 0)
  465. targetinfobkg1.Parent = TargetInfo.GetCustomChildren()
  466. local targetinfobkg2 = targetinfobkg1:Clone()
  467. targetinfobkg2.ZIndex = 0
  468. targetinfobkg2.Position = UDim2.new(0, 0, 0, -6)
  469. targetinfobkg2.Size = UDim2.new(0, 220, 0, 86)
  470. targetinfobkg2.Parent = targetinfobkg1
  471. local targetinfobkg3 = Instance.new("Frame")
  472. targetinfobkg3.BackgroundColor3 = Color3.fromRGB(31, 30, 31)
  473. targetinfobkg3.Size = UDim2.new(0, 220, 0, 80)
  474. targetinfobkg3.Position = UDim2.new(0, 0, 0, -5)
  475. targetinfobkg3.Name = "MainInfo"
  476. targetinfobkg3.Parent = targetinfobkg1
  477. local targetname = Instance.new("TextLabel")
  478. targetname.TextSize = 17
  479. targetname.Font = Enum.Font.SourceSans
  480. targetname.TextColor3 = Color3.new(1, 1, 1)
  481. targetname.Position = UDim2.new(0, 72, 0, 6)
  482. targetname.BackgroundTransparency = 1
  483. targetname.Size = UDim2.new(0, 80, 0, 14)
  484. targetname.TextScaled = true
  485. targetname.Text = "Target name"
  486. targetname.ZIndex = 2
  487. targetname.TextXAlignment = Enum.TextXAlignment.Left
  488. targetname.TextYAlignment = Enum.TextYAlignment.Top
  489. targetname.Parent = targetinfobkg3
  490. local targethealth = Instance.new("TextLabel")
  491. targethealth.TextColor3 = Color3.fromRGB(95, 94, 95)
  492. targethealth.Font = Enum.Font.SourceSans
  493. targethealth.Size = UDim2.new(0, 0, 0, 0)
  494. targethealth.TextSize = 17
  495. targethealth.Position = UDim2.new(0, 210, 0, 6)
  496. targethealth.BackgroundTransparency = 1
  497. targethealth.Text = '20'..' hp'
  498. targethealth.TextScaled = false
  499. targethealth.ZIndex = 2
  500. targethealth.TextXAlignment = Enum.TextXAlignment.Right
  501. targethealth.TextYAlignment = Enum.TextYAlignment.Top
  502. targethealth.Parent = targetinfobkg3
  503. local targethealthbkg = Instance.new("Frame")
  504. targethealthbkg.BackgroundColor3 = Color3.fromRGB(43, 42, 43)
  505. targethealthbkg.Size = UDim2.new(0, 138, 0, 4)
  506. targethealthbkg.Position = UDim2.new(0, 72, 0, 29)
  507. targethealthbkg.Parent = targetinfobkg3
  508. local targethealthgreen = Instance.new("Frame")
  509. targethealthgreen.BackgroundColor3 = Color3.fromRGB(40, 137, 109)
  510. targethealthgreen.Size = UDim2.new(1, 0, 0, 4)
  511. targethealthgreen.Parent = targethealthbkg
  512. local targetimage = Instance.new("ImageLabel")
  513. targetimage.Size = UDim2.new(0, 61, 0, 61)
  514. targetimage.BackgroundTransparency = 1
  515. targetimage.Image = 'rbxthumb://type=AvatarHeadShot&id='..game:GetService("Players").LocalPlayer.UserId..'&w=420&h=420'
  516. targetimage.Position = UDim2.new(0, 5, 0, 10)
  517. targetimage.Parent = targetinfobkg3
  518. local round1 = Instance.new("UICorner")
  519. round1.CornerRadius = UDim.new(0, 4)
  520. round1.Parent = targetinfobkg2
  521. local round2 = Instance.new("UICorner")
  522. round2.CornerRadius = UDim.new(0, 4)
  523. round2.Parent = targetinfobkg3
  524. local round3 = Instance.new("UICorner")
  525. round3.CornerRadius = UDim.new(0, 4)
  526. round3.Parent = targethealthbkg
  527. local round4 = Instance.new("UICorner")
  528. round4.CornerRadius = UDim.new(0, 4)
  529. round4.Parent = targethealthgreen
  530. local round5 = Instance.new("UICorner")
  531. round5.CornerRadius = UDim.new(0, 4)
  532. round5.Parent = targetimage
  533. TargetInfo.GetCustomChildren().Parent:GetPropertyChangedSignal("Size"):connect(function()
  534. if TargetInfo.GetCustomChildren().Parent.Size ~= UDim2.new(0, 220, 0, 0) then
  535. targetinfobkg3.Position = UDim2.new(0, 0, 0, -5)
  536. targetinfobkg2.BackgroundTransparency = 0
  537. targetinfobkg1.BackgroundTransparency = 0
  538. else
  539. targetinfobkg3.Position = UDim2.new(0, 0, 0, 0)
  540. targetinfobkg2.BackgroundTransparency = 1
  541. targetinfobkg1.BackgroundTransparency = 1
  542. end
  543. end)
  544. shared.VapeTargetInfo = {
  545. ["UpdateInfo"] = function(tab, targetsize)
  546. targetinfobkg3.Visible = (targetsize > 0) or (TargetInfo.GetCustomChildren().Parent.Size ~= UDim2.new(0, 220, 0, 0))
  547. for i,v in pairs(tab) do
  548. targetimage.Image = 'rbxthumb://type=AvatarHeadShot&id='..v["UserId"]..'&w=420&h=420'
  549. targethealthgreen:TweenSize(UDim2.new(v["Health"] / v["MaxHealth"], 0, 0, 4), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 0.05, true)
  550. targethealth.Text = math.floor(v["Health"]).." hp"
  551. targetname.Text = i
  552. end
  553. end,
  554. ["Object"] = TargetInfo
  555. }
  556. GUI.CreateCustomToggle("Target Info", "vape/assets/TargetInfoIcon2.png", function() TargetInfo.SetVisible(true) end, function() TargetInfo.SetVisible(false) end, false, "OptionsButton", 1)
  557.  
  558. GUI.CreateDivider2("MODULE SETTINGS")
  559. GUI.CreateToggle("Players", function() end, function() end, true, "")
  560. GUI.CreateToggle("NPCs", function() end, function() end, false, "")
  561. GUI.CreateToggle("Ignore naked", function() end, function() end, false, "")
  562. GUI.CreateToggle("Teams by server", function() end, function() end, false, "")
  563. GUI.CreateToggle("Teams by color", function() end, function() end, true, "")
  564. local MiddleClickInput
  565. GUI.CreateToggle("MiddleClick friends", function()
  566. MiddleClickInput = game:GetService("UserInputService").InputBegan:connect(function(input1)
  567. if input1.UserInputType == Enum.UserInputType.MouseButton3 then
  568. if mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or mouse.Target.Parent:IsA("Accessory") and mouse.Target.Parent.Parent:FindFirstChild("HumanoidRootPart") then
  569. local user = (mouse.Target.Parent:IsA("Accessory") and mouse.Target.Parent.Parent.Name or mouse.Target.Parent.Name)
  570. if table.find(FriendsTextList["ObjectList"], user) == nil then
  571. table.insert(FriendsTextList["ObjectList"], user)
  572. FriendsTextList["RefreshValues"](FriendsTextList["ObjectList"])
  573. else
  574. table.remove(FriendsTextList["ObjectList"], table.find(FriendsTextList["ObjectList"], user))
  575. FriendsTextList["RefreshValues"](FriendsTextList["ObjectList"])
  576. end
  577. end
  578. end
  579. end)
  580. end, function()
  581. if MiddleClickInput then
  582. MiddleClickInput:Disconnect()
  583. end
  584. end, false, "")
  585. local blatantmode = GUI.CreateToggle("Blatant mode", function()
  586.  
  587. end, function()
  588.  
  589. end, false, "")
  590. GUI.CreateDivider2("GENERAL SETTINGS")
  591. guicolorslider = GUI.CreateColorSlider("GUI Theme", function(val) GuiLibrary["Settings"]["GUIObject"]["Color"] = val GuiLibrary["UpdateUI"]() end)
  592.  
  593. GuiLibrary["UpdateUI"] = function()
  594. pcall(function()
  595. GuiLibrary["ObjectsThatCanBeSaved"]["GUIWindow"]["Object"].Children.Extras.MainButton.ImageColor3 = (GUI["GetVisibleIcons"]() > 0 and Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1) or Color3.fromRGB(199, 199, 199))
  596. GuiLibrary["ObjectsThatCanBeSaved"]["GUIWindow"]["Object"].Logo1.Logo2.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  597. onething.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  598. onetext.TextColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  599. local newtext = ""
  600. local newfirst = false
  601. for i2,v2 in pairs(textwithoutthing:split("\n")) do
  602. local rainbowsub = 2
  603. local rainbowcolor = GuiLibrary["Settings"]["GUIObject"]["Color"] + (-0.015 * i2)
  604. if rainbowcolor < 0 then rainbowsub = 3 rainbowcolor = rainbowcolor * 0.25 end
  605. local str = tostring(rainbowcolor)
  606. local newcol = tonumber("0"..string.sub(str, rainbowsub, string.len(str)))
  607. local newcolor = Color3.fromHSV(newcol, 1, 1)
  608. 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>'
  609. newfirst = true
  610. end
  611. onetext.Text = newtext
  612. for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  613. if v["Type"] == "Button" and v["Api"]["Enabled"] then
  614. v["Object"].ButtonText.TextColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  615. if v["Object"]:FindFirstChild("ButtonIcon") then
  616. v["Object"].ButtonIcon.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  617. end
  618. end
  619. if v["Type"] == "OptionsButton" then
  620. if v["Api"]["Enabled"] then
  621. v["Object"].BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  622. end
  623. end
  624. if v["Type"] == "ExtrasButton" then
  625. if v["Api"]["Enabled"] then
  626. v["Object"].ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  627. end
  628. end
  629. if v["Type"] == "Toggle" and v["Api"]["Enabled"] then
  630. v["Object"].ToggleFrame1.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  631. end
  632. if v["Type"] == "Slider" then
  633. v["Object"].Slider.FillSlider.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  634. v["Object"].Slider.FillSlider.ButtonSlider.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  635. end
  636. if v["Type"] == "TwoSlider" then
  637. v["Object"].Slider.FillSlider.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  638. v["Object"].Slider.ButtonSlider.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  639. v["Object"].Slider.ButtonSlider2.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  640. end
  641. end
  642. ProfilesTextList["Object"].AddBoxBKG.AddButton.ImageColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  643. for i3, v3 in pairs(ProfilesTextList["ScrollingObject"].ScrollingFrame:GetChildren()) do
  644. -- pcall(function()
  645. if v3:IsA("TextButton") and v3.ItemText.Text == GuiLibrary["CurrentProfile"] then
  646. v3.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  647. v3.ImageButton.BackgroundColor3 = Color3.fromHSV(GuiLibrary["Settings"]["GUIObject"]["Color"], 1, 1)
  648. v3.ItemText.TextColor3 = Color3.new(1, 1, 1)
  649. v3.ItemText.TextStrokeTransparency = 0.75
  650. end
  651. -- end)
  652. end
  653. end)
  654. end
  655.  
  656. GUI.CreateToggle("Auto-load module states", function() end, function() end, false, "VapeOptions")
  657. GUI.CreateToggle("Blur Background", function() GuiLibrary["MainBlur"].Size = 25 end, function() GuiLibrary["MainBlur"].Size = 0 end, true, "VapeOptions")
  658. local rescale = GUI.CreateToggle("Rescale", function()
  659. GuiLibrary["MainRescale"].Scale = cam.ViewportSize.X / 1920
  660. end, function()
  661. GuiLibrary["MainRescale"].Scale = 1
  662. end, true, "VapeOptions")
  663. cam:GetPropertyChangedSignal("ViewportSize"):connect(function()
  664. if rescale["Enabled"] then
  665. GuiLibrary["MainRescale"].Scale = cam.ViewportSize.X / 1920
  666. end
  667. end)
  668. GUI.CreateToggle("Enable Multi-Keybinding", function() end, function() end, false, "VapeOptions")
  669. local welcomemsg = GUI.CreateToggle("GUI bind indicator", function() end, function() end, true, "VapeOptions")
  670. GUI.CreateToggle("Smooth font", function()
  671. for i,v in pairs(GuiLibrary["MainGui"]:GetDescendants()) do
  672. if (v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("TextBox")) then
  673. v.Font = Enum.Font.SourceSans
  674. if v.Name == "DividerLabel" then
  675. local string1 = v.Text:sub(2, v.Text:len())
  676. v.Text = " "..string1
  677. end
  678. end
  679. end
  680. for i2,v2 in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  681. if v2["Type"] == "Toggle" then
  682. v2["Object"].Text = " "..v2["Object"].Name
  683. v2["Object"].TextSize = 18
  684. end
  685. end
  686. end, function()
  687. for i,v in pairs(GuiLibrary["MainGui"]:GetDescendants()) do
  688. if (v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("TextBox")) then
  689. v.Font = Enum.Font.Sarpanch
  690. if v.Name == "DividerLabel" then
  691. local string1 = v.Text:sub(3, v.Text:len())
  692. v.Text = " "..string1
  693. end
  694. end
  695. end
  696. for i2,v2 in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  697. if v2["Type"] == "Toggle" then
  698. v2["Object"].Text = " "..v2["Object"].Name
  699. v2["Object"].TextSize = 16
  700. end
  701. end
  702. end, true, "VapeOptions")
  703. GUI.CreateToggle("Show Tooltips", function() GuiLibrary["ToggleTooltips"] = true end, function() GuiLibrary["ToggleTooltips"] = false end, true, "VapeOptions")
  704. GUI.CreateToggle("Discord integration", function() end, function() end, false, "VapeOptions")
  705. GUI.CreateToggle("Notifications", function() GuiLibrary["ToggleNotifications"] = true end, function() GuiLibrary["ToggleNotifications"] = false end, true, "VapeOptions")
  706.  
  707. local teleportfunc = game:GetService("Players").LocalPlayer.OnTeleport:Connect(function(State)
  708. if State == Enum.TeleportState.Started then
  709. GuiLibrary["SaveSettings"]()
  710. queueteleport('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')
  711. end
  712. end)
  713.  
  714. local SelfDestructButton = {["ToggleButton"] = function() end}
  715. SelfDestructButton = Other.CreateOptionsButton("SelfDestruct", function()
  716. selfdestruct = true
  717. SelfDestructButton["ToggleButton"](false)
  718. GuiLibrary["SaveSettings"]()
  719. for i,v in pairs(GuiLibrary["ObjectsThatCanBeSaved"]) do
  720. if (v["Type"] == "Button" or v["Type"] == "OptionsButton") and v["Api"]["Enabled"] then
  721. v["Api"]["ToggleButton"](false)
  722. end
  723. end
  724. shared.VapeExecuted = nil
  725. shared.VapeSwitchServers = nil
  726. shared.GuiLibrary = nil
  727. GuiLibrary["KeyInputHandler"]:Disconnect()
  728. GuiLibrary["KeyInputHandler2"]:Disconnect()
  729. if MiddleClickInput then
  730. MiddleClickInput:Disconnect()
  731. end
  732. teleportfunc:Disconnect()
  733. GuiLibrary["MainGui"]:Remove()
  734. GuiLibrary["MainBlur"]:Remove()
  735. end, function() end, false)
  736.  
  737. loadstring(GetURL("AnyGame.vape"))()
  738. if pcall(function() readfile("vape/CustomModules/"..game.PlaceId..".vape") end) then
  739. loadstring(readfile("vape/CustomModules/"..game.PlaceId..".vape"))()
  740. else
  741. local publicrepo = checkpublicrepo(game.PlaceId)
  742. if publicrepo then
  743. loadstring(publicrepo)()
  744. end
  745. end
  746.  
  747. GuiLibrary["LoadSettings"]()
  748. if #ProfilesTextList["ObjectList"] == 0 then
  749. table.insert(ProfilesTextList["ObjectList"], "default")
  750. ProfilesTextList["RefreshValues"](ProfilesTextList["ObjectList"])
  751. end
  752. GuiLibrary["UpdateUI"]()
  753. if blatantmode["Enabled"] then
  754. pcall(function()
  755. local frame = GuiLibrary["CreateNotification"]("Blatant Enabled", "Vape is now in Blatant Mode.", 4, "⚠️")
  756. frame.Frame.BackgroundColor3 = Color3.fromRGB(218, 134, 75)
  757. frame.Frame.Frame.BackgroundColor3 = Color3.fromRGB(218, 134, 75)
  758. end)
  759. end
  760. if not shared.VapeSwitchServers then
  761. GuiLibrary["LoadedAnimation"](welcomemsg["Enabled"])
  762. else
  763. shared.VapeSwitchServers = nil
  764. end
  765. if shared.VapeOpenGui then
  766. GuiLibrary["MainGui"].ClickGui.Visible = true
  767. GuiLibrary["MainBlur"].Enabled = true
  768. shared.VapeOpenGui = nil
  769. end
  770.  
  771. spawn(function()
  772. while wait(10) do
  773. if not selfdestruct then
  774. GuiLibrary["SaveSettings"]()
  775. end
  776. end
  777. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement