Skip to content
7GrandDadPGN edited this page Dec 21, 2024 · 2 revisions

Getting Started

Hello! This is the page where the documentation is held.
For starters, please choose which type of script you would like to use.

CustomModule

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

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

Vape Library

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

Example

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'
})

Independent

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))()

Saving

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'

Loading

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()

Example

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()

Resources

Clone this wiki locally