Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would i make a script give a player an item on spawn if they have 100 coins?

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!

2 answers

Read on leader stats you need a coin system first and datastore if you want it to be saved

i already have a datastore

2 comments

0

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.

0

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.