This started happening within the last 2-3 days for my SoftShutdown2 resource - there has not been any updates since June 27 2023, and now all of a sudden teleports aren’t going through via TeleportAsync when the server is marked as closing via “Shut Down All Servers” through the website.
Nothing prints, no errors, but the client appears to immediately close connection to the server (you can’t move your character for example). Sometimes it’ll give you an error, and sometimes it’ll stay unresponsive.
I’ve noticed that by wrapping the teleport call into a pcall it does return an “error”, “The Source Game is invalid.”, it’s very odd behavior to say the least
Hi, I have tried to reproduce the issue a few times now but no success. I have set up the place and script and on shut down the script seems to run fine and I am teleported.
Do you have client logs of the most recent time this has happened?
I also have this issue using SoftShutdown2 & it only occurs when there are multiple people in a server. When I test alone I’m able to teleport after shutdown. Just thought I’d note that
As a temporary fix you can reserve a server, teleport players to that server, and teleport them back to a non-reserved server (Unfortunately, this is defeats the purpose of SoftShutdown2 but it’s the best you’ll get until the issue is fixed!)
To replicate you need multiple (2+) people in one server.
I am 100% confident this is a new and reproducible issue, I used this script for the entirety of August and when updating servers I would drop from 25k CCU to like 24.8k, which is expected. On the 31st August when I updated servers I dropped from 25k to 8k as the players weren’t automatically rejoined. Over the next 30+ minutes my playercount returned as players manually joined back.
Currently I’m using a workaround fix which teleports players to a reserved server first, and then teleports them again to a normal (non reserved) server which seems to mostly work however it’s not an ideal solution as it counts as +2 visits for each player, and I believe it is hurting my session time.
If you would like to reach out I’m happy to demonstrate to you with another game of mine (300 CCU~) which still has softshutdown.
Hello! I’m experiencing this issue in my game too. I teleport all the players back to the game once it shutdowns, and as of recently (past week ish) they just hang indefinitely and don’t teleport nor crash or close or anything. Keep me updated!
A temporary solution I found is instead of teleporting everyone in the server using a single table with TeleportAsync’s second parameter, you have to teleport every player individually.
Put this at the end of your soft shutdown code:
--Teleporting each player individually instead as one group
for _, player in Players:GetPlayers() do
task.spawn(function()
pcall(function()
return TeleportService:TeleportAsync(targetPlaceId, {player}) -- teleport the user in a protected call to prevent erroring
end)
end)
end
-- TeleportService:TeleportAsync(targetPlaceId, CurrentPlayers)
-- Keep the server alive until all of the player(s) have been teleported.
while Players:GetPlayers()[1] do
task.wait(1)
end
@SuperPat77 So it could be an issue with teleporting a group of players using TeleportAsync in the BindToClose function