vertfire
|
  |
| Joined: 30 Mar 2014 |
| Total Posts: 88 |
|
|
| 08 Sep 2016 05:53 PM |
Well, I'm a noob at data stores and I am wondering how to make a item you can only collect once using datastores?
|
|
|
| Report Abuse |
|
|
WildGuest
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 647 |
|
|
| 08 Sep 2016 06:20 PM |
Step 1: Put a BoolValue in the player when they join. Keep it false to start with. When they pick up the item, make the value true. Have the item check if it is already set to true before they pick up.
Step 2: Save it in a datastore.
I would write the script but it would be a lot of work.
|
|
|
| Report Abuse |
|
|
|
| 08 Sep 2016 06:50 PM |
| ##################################################################################################################################################################################################################################################################################################################################################################################################################################################### |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 08 Sep 2016 06:55 PM |
| https://forum.roblox.com/Forum/ShowPost.aspx?PostID=195621950 |
|
|
| Report Abuse |
|
|
Skelris
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 4785 |
|
| |
|
Skelris
|
  |
| Joined: 02 Jan 2009 |
| Total Posts: 4785 |
|
|
| 08 Sep 2016 07:25 PM |
Since my last post got '[REDACTED]', due to the filter being silly, take a copy of this and look at it:
https://www.roblox.com/item.aspx?id=498730501
Note that it isn't very good in terms of efficiency, as it only serves the purpose of providing an example of how DataStores work to you. (It also isn't tested, so sorry if it doesn't work)
You should know this if you look at it, but you need two parts in the workspace: One named "Coin1" and another named "Coin2" if you wanna test it. |
|
|
| Report Abuse |
|
|