I was wondering if there was any ways to know what value changed between the different players.
I searched on the Dev hub and did not found ways to trace what object change.
In conclusion i want to know wich player got their EXP value changed through the server.
local function Changed(change)
print()
end
game.Players.PlayerAdded:Connect(function (child)
wait(3)
child.PlayerGui.PlayerValues.DataStoreValues.EXP.Changed:Connect(Changed)
end)
for _, player in pairs(game.Players:GetChildren()) do
player.PlayerGui.PlayerValues.DataStoreValues.EXP:Connect(Changed)
end
what prevents you from subscribing to events after creating data in the player
local Players = game:GetService('Players')
Players.PlayerAdded:Connect(function(plr)
local cash = Instance.new('IntValue', plr)
cash:GetPropertieChangeSignal('Value'):Connect(function()
print(1)
end
end)