Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago
Edited 3 years ago

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

Log in to vote
0
Answered by
Jo1nts 134
3 years ago

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

Ad
Log in to vote
0
Answered by 3 years ago

i already have a datastore

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. guildedcow 30 — 3y
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. radiant_Light203 1166 — 3y

Answer this question