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

Is there a way to get Mouse.TargetSurface in local?

Asked by
kaemi 21
5 years ago

Is there a way to use the Mouse.TargetSurface as a script not in a local script? i tried to use any methods find in objects but always run in error.. How?

1 answer

Log in to vote
0
Answered by
Fad99 286 Moderation Voter
5 years ago

What you have to do is get the TargetSurface from a local script, then use a Remote event and pass it over as an argument, but because this is Client to Server make sure to remember that the first argument is always the player, then its what you want to pass.

Ad

Answer this question