Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Getting Mouse with server script using remote events?

Asked by
Cyrakohl 108
6 years ago

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

0
Also to add I know the example code isn’t correctly formed Cyrakohl 108 — 6y

1 answer

Log in to vote
1
Answered by
gullet 471 Moderation Voter
6 years ago

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.

0
Yeah i want to send the target over Cyrakohl 108 — 6y
1
Then just send mouse.Target gullet 471 — 6y
0
So In the fireserver parameters I just put mouse.Target? Cyrakohl 108 — 6y
0
If you want to send mouse.Target yes that is what you would put gullet 471 — 6y
View all comments (2 more)
0
did it work ? I wouldn't think so Hizar7 102 — 6y
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 Cyrakohl 108 — 6y
Ad

Answer this question