How to make a VIP server different from a normal server

I wanted to make anyone who owns a VIP server in my game to have additional stuff added to it that are only exclusive to the VIP server, but absent from a normal server.

What I want is really simple, but I don’t know much about scripting. I wanted to make a script that can detect if it’s a VIP server or not, if it detects that it’s a VIP server, it’ll then for example move models I put into ReplicatedStorage to Workspace, and if it detects that it’s a normal server, then the script will simply do nothing.

Put this script in ServerScriptService:

--//Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")

--//Variables
local MyModel1 = ReplicatedStorage.MyModel1
local MyModel2 = ReplicatedStorage.MyModel2

--//Functions
if game.PrivateServerId ~= "" and game.PrivateServerOwnerId ~= 0 then
	print("This is a private server.")
	
	MyModel1.Parent = workspace
	MyModel2.Parent = workspace
end
4 Likes