Backsage Posted August 14, 2015 Share Posted August 14, 2015 How do I send data to other clients via onClientGUIClick? I'm working on a script where I need to send data to other clients for example, the current number of respawns. When I click on a button called "Set Round", it sets data (for example the respawns) but only for the client that clicked that button. I can then use /round5showdx to show some text, but it only shows it to the client that clicked that "Set Round" button. If another client wants to see that text, they have to click "Set Round" as well. As soon as they click it, the text automatically shows up. I get the error attempt to concatenate global 'PlayerTeam1CurrentRespawns' (a nil value) The text wasn't showing up because of that error and it spammed my debugscript because of onClientRender. It was trying to send information to the other client, but it couldn't because it was nil and because the other client didn't click the button (setting the data). I don't want that. I want to be able to show the text to other clients with the command. Nvm. I've fixed the bug. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now