Skip to main content

PlayerJoined

Gets called whenever a user joins the experience (will only get called once his data gets retrieved from the DataStore).

Parameters:

NameTypeDescription
playerplayerThe player instance of whoever just joined the game
playerDatatableAll of users current data
firstTimebooleanWhether it is the first time of this user in this experience

Example:

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

ProStore3.PlayerJoined:Connect(function(player : Player, playerData : table, firstTime : boolean)
print(player.Name, " joined the game.")
print("Player data: ", playerData)
print("First Time: ", firstTime)
end)