Datastore only saves whenever i edit the players datavalues

RobloxStudioBeta_wEMPVtPtoz
RobloxStudioBeta_PBpKo8qBbj

one of the buttons i created that changes the value works but all the other scripts i made that are like the button doesn’t

What are you trying to achieve originally? What is the problem you are facing? Can you show the button script along with a screenshot of any errors/outputs in the output tab?

What i’m trying to achieve is just making an infinite reroll system and a breathing system
RobloxStudioBeta_FRQ9oT8NnL
RobloxStudioBeta_hsBDdwUz6m

but i think it’s not working because its a local script

i just changed the reroll button to a script and it actually saves it but now i don’t know how to change the players group value whenever they talk to an npc


the code for it

You should be using the local script for the client’s input, in this case is the MouseButton1Click event, and the server script that edits the player’s data.

??? I don’t quite understand. What is your main problem now?

changing the players group value whenever they select a dialogue choice

You should be using the server script to edit the group’s value, not a local script. Local scripts are only responsible for client inputs.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.