Code
Code shelf
Small snippets and notes from systems I'm working on.
notes/player-data.luau
A small note for keeping player currency updates in one place.
1local function giveCoins(player, amount)2 local profile = Profiles[player]3 4 if not profile then5 return6 end7 8 profile.Data.Coins += amount9 Remotes.SyncCoins:FireClient(player, profile.Data.Coins)10endCoins updated through one helper.