-
Notifications
You must be signed in to change notification settings - Fork 374
Home
Hello! This is the page where the documentation is held.
For starters, please choose which type of script you would like to use.
- CustomModule (Internal, used to make a module that loads during vape runtime)
- Independent (External, using it like a normal ui library)
Vape stores game related modules in the folder vape/games
All of them are associated using the game's unique PlaceId.
6872274481.lua - Bedwars Main Game
You can grab a game's PlaceId by running the related code in said choice of executor.
setclipboard(tostring(game.PlaceId))
Child places with the same game code can be loaded like this to ensure the same settings will be loaded no matter the type.
(this is an example for 8444591321 - Bedwars Micro Game)
local vape = shared.vape
vape.Place = 6872274481 -- setting the profile location to Bedwars Main Game
loadfile('newvape/games/6872274481.lua')() -- loading the Bedwars Main Game module
Next is the vape table where all API's & objects are stored
This can be used for all subsections of the documentation.
local vape = shared.vape
local vape = shared.vape
local test = vape.Categories.Combat:CreateModule({
Name = 'Test',
Function = function(callback)
print(callback, 'module enabled!')
end,
Tooltip = 'This is a test module'
})
Loading the vape library is as simple as setting a local variable to the loadstring
This is where all API's & objects are stored.
shared.VapeIndependent = true
local vape = loadstring(game:HttpGet('https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/NewMainScript.lua', true))()
From there you can now set a config name by setting vape.Place
Note
Make sure its a valid Windows file name!
vape.Place = 'customplace'
Next is creating the actual script using the components found in the documentation
Once you are done you can call init at the end of the script to load all settings relating to the specified file.
vape:Init()
shared.VapeIndependent = true
local vape = loadstring(game:HttpGet('https://raw.githubusercontent.com/7GrandDadPGN/VapeV4ForRoblox/main/NewMainScript.lua', true))()
vape.Place = 'Universal'
local test = vape.Categories.Combat:CreateModule({
Name = 'Test',
Function = function(callback)
print(callback, 'module enabled!')
end,
Tooltip = 'This is a test module'
})
vape:Init()