Award a player points for being in a group one time

Ive been tryna script in where when the player joins and if there in the group then award a certain amount of points. But like most it happens everytime they join and im stuck on tryna implement into a datastore like i have been reading. Any help is appreciated. Im just lost on how id implement if they already got the award vs if they didnt. Only part im stuck on

1 Like

Create a boolvalue called “HasClaimed” for each player which should also be saved in a datastore. When the reward is claimed you put “HasClaimed” on true. Then the next time that the player gets a reward, you check if “HasClaimed” is false, if it is true, then you don’t give the rewards.

1 Like

How would i create the BoolValue inside the datastore? Didnt see much on BoolValues in datastores. Only seen tables and then NumberValues if im being honest. And then how would i change that value in the datastore

Making a BoolValue Instance is unnecessary, he can just cache the value in a dictionary

You can save dictionaries in a datastore which would allow you to save strings, numbers, bools etc.

post:1, topic:2231838, full:true, username:Gwyllgi"]
Ive been tryna script in where when the player joins and if there in the group then award a certain amount of points. But like most it happens everytime they join and im stuck on tryna implement into a datastore like i have been reading. Any help is appreciated. Im just lost on how id implement if they already got the award vs if they didnt. Only part im stuck on

In a DataStore, save a value for ClaimedGroupBenefit or something. When they join, see if it’s false, and if it is, save it as true and give them the points.