How to change leaderboard stats?
Posted by JaxonFerrero1 on Mar 10th 2023, 7:38PM
I put a part touched script so whenever you touch it it sets a stat. It gives this error

(Log) Script error: [string "Script"]:8: attempt to call field 'SetPlayerColumnValue' (a nil value) Lua (at <no source>)

This is my code

game.Leaderboard.SetPlayerColumnValue(player.Name,"Spawned",9)
Posted by snail on Mar 11th 2023, 6:22AM
SetPlayerColumnValue()'s first argument is a Player instance and not a player's name
Posted by JaxonFerrero1 on Mar 11th 2023, 11:37PM
I still get the same error
Posted by JaxonFerrero1 on Mar 12th 2023, 1:34AM
Got it to work nvm