I am new to scripting and i dont really know how this works, but All i am trying to figure out is how to give the player a tool on spawn from 100 coins (not taking them away)
any help would be appreciated!
I am new to scripting and i dont really know how this works, but All i am trying to figure out is how to give the player a tool on spawn from 100 coins (not taking them away)
any help would be appreciated!
Read on leader stats you need a coin system first and datastore if you want it to be saved
i already have a datastore
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Then you should be able to use the Player.CharacterAdded event and check if the player has more than 100 coins to give them the item. Giving them the item is as simple as parenting the tool to the player's Backpack.
Don't parent it to the player's backpack, parent it to the player's starterpack (i.e inside the player object). As it will linger even after the player resets.