PlayerAdded not firing when player teleported

if you want people to rejoin when the server updates dont use reversedServer just use regular TeleportAsync here’s a simple function that you can use to reTeleport Players to the same place in another server


local TeleportService = game:GetService(`TeleportService`)

local function reTeleportPlayers(options: {any}?)
    TeleportService:TeleportAsync(game.PlaceId, Players:GetPlayers(), options)
end

and here’s an example I made you can put it in serverScriptService as a script and play the game in public & use the command /reupdate it will make you rejoin the game


local Players = game:GetService(`Players`)
local TeleportService = game:GetService(`TeleportService`)
local TextChatService = game:GetService(`TextChatService`)

local textChatCommands = TextChatService:WaitForChild(`TextChatCommands`)

local function getRefreshCommand()
    local refreshCommand = Instance.new(`TextChatCommand`)
    refreshCommand.PrimaryAlias = `/reupdate`
    refreshCommand.Enabled = true
    refreshCommand.Parent = textChatCommands
    
    return refreshCommand
end

local function reTeleportPlayers(options: {any}?)
    TeleportService:TeleportAsync(game.PlaceId, Players:GetPlayers(), options)
end

local refreshCommand = getRefreshCommand()
refreshCommand.Triggered:Connect(function()
    reTeleportPlayers()
end)
  1. Are there any errors in output?
  2. Is the script definitely not disabled?
  3. Put prints throughout the code to see what is actually running
  4. Is MainFolder.Datastore.Values a ModuleScript?

I’m pretty sure Roblox has a bug where it teleports you back in the same server.

no, if the game is published and detects that the server is old it wont teleport when the server reaches 0 players it will call game.BindToClose

There are no errors except for other scripts that couldn’t find the data; It’s not disabled; I have tried that; Yes

What I don’t understand and that nobody does is why is it running in the first server but not after?

I would also like to use that command even if the game is not published but I’m gonna try it…

teleportService will work only in-game