Ultimate Solution Hub

How To Make Button That Will Reset All Stats Datastore 2 Scripting

how To Make Button That Will Reset All Stats Datastore 2 Scripting
how To Make Button That Will Reset All Stats Datastore 2 Scripting

How To Make Button That Will Reset All Stats Datastore 2 Scripting But how i can get the player , because if you go from game.players.localplayer.stats.gold.value = 0, then it will do nothing , it has to be userdata.stats.gold = 0, but i can’t get userdata from other script, and even if i do it in the same script, i has to know the player who clicked, but you can’t get the player who clicked from activated function, so what am i doing?. I’m currently making a gui that shows player stats and also a button that resets player stats. i made a script that resets, but i’m using data store and it makes the stats not reset if the player leave and rejoin the game. any help will help me. thanks. local script inside button that reset stats: script.parent.mousebutton1click:connect(function() game.players.localplayer.leaderstats.

how To Make A datastore For Your stats In Roblox Studio Youtube
how To Make A datastore For Your stats In Roblox Studio Youtube

How To Make A Datastore For Your Stats In Roblox Studio Youtube What i do and this might seem a little over the top but it’s fine as long as you’re not using datastores excessively elsewhere is have a datastore and an ordereddatastore for each player. when you perform a save, add a key (can be anything) with the value of os.time() to the ordereddatastore and save a key with the os.time() and the value of the player’s data to the regular datastore. In this video, i explain how to create your own datastore2 saving system in your games. datastore2 is a module that uses the normal datastoreservice from rob. In this video, i will be teaching all of you how to use datastore2 in roblox studio!how to use it with strings and tables!: youtu.be wbobrofo6a8note:. Learn how to create working datastores in roblox with profileservice, a powerful and easy to use library that handles data saving and loading for you.

Blox Fruits Codes reset stats 2024 October Dani Michaelina
Blox Fruits Codes reset stats 2024 October Dani Michaelina

Blox Fruits Codes Reset Stats 2024 October Dani Michaelina In this video, i will be teaching all of you how to use datastore2 in roblox studio!how to use it with strings and tables!: youtu.be wbobrofo6a8note:. Learn how to create working datastores in roblox with profileservice, a powerful and easy to use library that handles data saving and loading for you. To save player data in the data store: create a variable named playeruserid for the data store key. then, use playergold to store a player's starting gold amount. local datastoreservice = game:getservice("datastoreservice") local goldstore = datastoreservice:getdatastore("playergold") data store key and value. Gold.name = "gold". gold.parent = leaderstats. local playeruserid = "player " player.userid gets player id. local data = playerdata:getasync (playeruserid) checks if player has stored data. if data then. data exists for this player. gold.value = data. else. data store is working, but no current data for this player.

Comments are closed.