Skip to main content

DataUpdated

Gets called whenever a users data gets updated.

Parameters:

NameTypeDescription
playerplayerThe player instance of whoever's data just changed
changedKeystringThe key that was updated
newValueanyThe new value to which this has been changed
fullPathstringThe full path to the value that has been changed

Example:

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

ProStore3.DataUpdated:Connect(function(player : Player, changedKey : string, newValue : any, fullPath : string)
print(player.Name, "'s data has been updated.")
print(changedKey, "has been changed to: ", newValue, "at the following path:", fullPath)
end)