#how do i make one time colectables?
1 messages · Page 1 of 1 (latest)
use a datastore
im a begginer but that 100% gonna be useful later on
You can send a message using a remote event
The server sends a message to the client containing the object then the client removes it (the server still has it)
you should use localscripts for collecting the mushrooms because client doesn't replicate to server, so, in a nutshell, you could do something like this:
on the client:
**-> **spawn in the mushrooms
-> fire a remote event whenever a mushroom is touched, also deleting it (only deletes for the player)
-> maybe add a delayed function to respawn the mushroom (use task.delay(delayAmount, function))
on the server:
-> handle the mushroom's remote
thx, but i made a script that
-when a player joins checks if it has a custom file
- if he dosent creates one
- creates bool values for each mushroom
- if the value is false then it checks when a mushroom is colected it sets it to true and adds one to the leaderboard
- if its true and the mushroom gets clicked it says " u alr have this mushroom!"
** You are now Level 2! **
You would need to use DataStoreService