How would I be able to send the mouse property over to a server script so I can change stuff on the server when a certain condition is met so like if mouse.target == humanoid then fireserver() then in my server script I want to be able to change the targets properties like change Color or kill
✓ ANSWER ACCEPTED
Getting Mouse with server script using remote events?
1 answer
✓ Accepted answer
You cannot send the mouse object as it only exists locally, you can however send data after you read it, like mouse position or target. The server cannot directly edit or even access the mouse.
6 comments
0
Yeah i want to send the target over
1
Then just send mouse.Target
0
So In the fireserver parameters I just put mouse.Target?
0
If you want to send mouse.Target yes that is what you would put
0
did it work ? I wouldn't think so
0
It did actually I just put the mouse target in the fire server parameters then index it in the server script via the on server event parameters
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Also to add I know the example code isn’t correctly formed