What do you want?
I want to know how to tell which player (Of 2) click a gui button first?
What solutions have you found?
I have found no solutions yet, im looking for help, i think this is simple
Detailed game mechanics
So a ImageButton will randomly appear on the screen, there are two players who wants to click the button first, but im having trouble on finding out which player clicked first. Please help
I’m not really a coder, but I saw nobody has replied yet and I think I’ll be able to help. My apologies if this isn’t the correct way to go about it! I’m sure a more experienced coder will come along, but hopefully this will help you get through the logic of it all!
I’d say have the button fire an event to the server, and have the server check which player fired it? I believe firing an event to the server from a client always passes through which client pressed it as the first parameter.
then for example, you could have the ‘server check function’ fire to all clients which opens a GUI that displays who clicked it first? Good luck Yami!
Yes this is correct, but for more precision, find out the exact millisecond when the player pressed the button, instead of relying on which event is fired first, this can hopefully counter the ping difference. It’s likely that you have to use something from os.