How to Force a player to Connect to another server.


I’ve been trying to find out how to force players to connect to other servers by clicking a button for example.

The problem is that the RunConsoleCommand function has “connect” as blocked…

the error i receive is:
Bad server address (“”)
(and the IP is clearly valid and the server is up and running)

I’ve tried alot of things but none worked.

RunConsoleCommand("connect", "" )
LocalPlayer():ConCommand("connect", "" )
RunConsoleCommand("connect", "")
RunConsoleCommand("connect", "")
timer.simple(0.01, function()
end )

Tested, use

a rly big thanks =)