I have 2 games,
one is meant to be played in publicly public servers. the other in private servers
I am trying to find a way to merge them
so far I have tried the following
1:teleport to different game
Code
if game.PrivateServerId == "" and not game:GetService("RunService"):IsStudio() then
print ("tp check")
local TeleportService = game:GetService("TeleportService")
TeleportService:Teleport(.....)
end
- this works but it doesn’t show u the number of people in-game as they are just 2 different games
2:game places
Code
server.Commands.tonewworld = {
Prefix = server.Settings.Prefix; -- Prefix to use for command
Commands = {"tptonew"}; -- Commands
Args = {}; -- Command arguments
Description = "Example command"; -- Command Description
Hidden = true; -- Is it hidden from the command list?
Fun = false; -- Is it fun?
AdminLevel = "Place Owners"; -- Admin level; If using settings.CustomRanks set this to the custom rank name (eg. "Baristas")
Function = function(plr,args) -- Function to run for command
local TeleportService = game:GetService("TeleportService")
TeleportService:Teleport(xx, plr)
end
}
end
- same issue as above,
- doesn’t let you join a person, you always end up on the starter place
3: game:Load(url)
Code
if game.PrivateServerId == "" and not game:GetService("RunService"):IsStudio() then
game:Load(url1)
else
game:Load(url2)
end
- cannot be used in scripts
4:put both games in server storage and unpack the game that is required
- haven’t tested it,
- curious how it would handle things like chat
- don’t know how to pause the server upon loading(before server load do…_
- hard to continue developing both games
is there anything I have overlooked, or a bridge between both games that I have missed?
a system I can use?