ID:1369314
 
(See the best response by Hikato.)
Code:
mob
Login()
alert(src, "The game has been moved to another hub because we can't edit the old hub. You will now be connected to the game on the new hub. Please become a fan of the new hub and enjoy!", "Connecting to game")
src << link("byond://BYOND.world.578318428")
..()


Problem description:
Well, it worked but not always. Is there any better way to do this? The thing I want to do is that when players connect to that world, you get a message and then when you press "Ok", you connect to the linked world.
Best response
The problem is in your link() function.
link("byond://BYOND.world.578318428")

Use the direct link to the new server.
byond://[serverip]:[port]

The BYOND.world.## link varies and will change while the ip:port link will work every time.
See here for info on using byond links.

That particular link format only lasts for one session.

If your hub only has one server, you could use the ##live option. Otherwise, you should link with the IP and port.