Connect all Players on Server to Another Server

Is there a script I can run on my server that will make all the people on that server connect to another server?

Use theJoinServer hook.

Last I checked, Menu functions are offlimits to Lua. Robot said he removed the other menu functions ( the ones to force load addons / games ), which was annoying to hear as it did fix some issues, which is why I think this one may be removed too…

Your question has many answers. The simple one is on the client use LocalPlayer( ):ConCommand( “connect” ); ( could be run from server too, replace LocalPlayer( ) with the player entity reference ).

local ip = “198.852.526.238:26598”
function connectserver()
if LocalPlayer():GetNWString(“usergroup”) == “eg. owner” then
for k, v in pairs(player.GetAll()) do
v:ConCommand("connect "…ip)

concommand.Add(“connectall”, connectserver)[/lua]
This would go in lua/autorun/server

Isn’t that a blocked command?