Skip to main content

PlayerLeft

Gets called whenever a user leaves the experience.

Parameters:

NameTypeDescription
playerplayerThe player instance of whoever just left the game
playerDatatableAll of users current data

Example:

local ServerScriptService = game:GetService("ServerScriptService")
local ProStore3 = require(ServerScriptService.ProStore3)

ProStore3.PlayerLeft:Connect(function(player : Player, playerData : table)
print(player.Name, " left the game.")
print("Player data: ", playerData)
end)