-
What do you want to achieve?
I want that when i click the yes button, from the player’s account was withdrawn exactly the amount that I wrote -
What is the issue?
The problem is that when I press the yes button, not the amount that I registered is written off, but the amount is about 10 times more
The two connections(.MouseButton1Up for No, Yes buttons) should be outside the .Touched connection, the .Touched connection should only be responsible for setting frm.Visible to true(also a debounce should be added else the event will keep getting spammed).
PS: Also keep in mind, that the server doesn’t have access to the user input(except ClickDetectors), therefore the script will only function if it’s a LocalScript, which means the value changes(Money) wont replicate to the server, unless Remote Events are used to communicate with a server script.
2 Likes

