How do I make it that if a tButton is clicked from a GUI, it changes a value in the workspace?
Asked by
4 years ago Edited 4 years ago
So, I am making a minigame place, and it has a GUI for the players to click on and pay Robux to pick the next minigame. It works fine, but the only problem is that there is a string value in the workspace. I want to make it so when the button is pressed, it changes it to the value that it's set to.
If i insert a local script into the textbutton and type this code...
1 | script.Parent.MouseButton 1 Click:Connect( function () |
2 | workspace.Value.Value = "Obby" |
..it will only show up to the client. It will not change for the server.
How do i make it so it does change for the server?
Please let me know.