The title says it all. Im trying to get the player from a MouseButton1Click function to a Server Script. The reason is that i need to fire a BindableEvent that needs to communicate Server - Server. I tried to like just put it in on a remote event and fire it with also firing the BindableEvent inside the remote but it just wont work. So can yall give me suggestion on how i can get the player?
What type of object are you trying to listen to MouseButton1Click from?
im just trying to get the player since i cant use LocalPlayer because its not a Local Script but im using a Server Script
You’ll have to pass extract the information you need about the click event on the client, then pass that to the server via a remote event.
What information about the click specifically does the server need? Does it need the Part that was clicked on? The Ray from camera to mouse?
oh nono we’re talking about GUIs, my bad i forgot to say it
You’re using server scripts for gui? Server scripts and GUI’s don’t go together. The server script wouldn’t be able to detect the click.
i mean it does, i tested it firstly with just a print and it works, i just need to know if its possible to get the player
How come you need it to be done in a server script? Why can’t you just use a local script and then fire a remote event?
Because i tried and it just wont work
Never mind, i just didnt see that a value i tried to check was only changing on the client, thanks for the help tho.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.