Introducing CustomVIP V2!
This is the successor to my previous module, CustomVIP, found here
What is it?
CustomVIP is a module to handle in-game VIP servers, separate from roblox official VIP servers. A player can spend money and receive a server code, which can then shared or be used to join an in game private server.
Why should you use this over the official vip servers?
Roblox by default disables VIP servers if your game is paid access. However, using this module will allow you to circumvent this limitation and create custom VIP servers with ease.
New Features
This module now has different tiers of servers that can be bought!
API
:DoesPlayerHaveVipServer(player)
→ returns two arguments, a boolean which represents whether or not the player has a VIP server and the VIP server info IF the player owns a VIP server.
:ClearServerData(playerUserId)
→ Used to delete a player’s VIP server, used internally within the module.
:PromptPurchase(player, serverTier)
→ prompts the user to purchase the specified tier of server. (Can be configured inside the config file)
:CreateServer(player, serverTier)
→ returns two arguments, whether the server creation was successful and the created server’s information.
Once a server has been created, it should return an array of information similar to this:
{
Tier = "Bronze", -- The server tier.
Code = "1-FWDoj", -- The server code which can be used to join the VIP.
TeleportCode = "dJIwufhwfe-fjwmpfonbf0enofijesof", -- The reserved server's code (used internally)
Owner = 1, -- UserId of the server owner.
Expiry = 169304434 -- The expiry of the VIP server in UNIX time
}
:TeleportToServer(player, serverCode)
→ Teleports the player to the VIP server if the code is valid.
Source Code
Github Gist: customvip.lua · GitHub
Roblox Model: CustomVIP Rewritten - Roblox
Thank you for taking your time to read this, if you find any bugs or have any questions, feel free to shoot me a DM!