#how do i make one time colectables?

1 messages · Page 1 of 1 (latest)

cerulean heart
#

im making a game about mushrooms that u have to find and collect, but i cant figure out how to make so that u can only get 1 at a time and i cant delete them after colecting bc its multiplayer
im using a leaderboard to keep track of how many u have and theres 18

cerulean heart
#

im a begginer but that 100% gonna be useful later on

lost dawn
cerulean heart
#

oh alr

#

but i think im going for the database cuz i gotta use that somehow later

quick zealot
# cerulean heart im making a game about mushrooms that u have to find and collect, but i cant fig...

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

cerulean heart
#

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!"
violet slateBOT
#

studio** You are now Level 2! **studio

lost dawn