FastCast & CanQuery

Maybe I could use the Mouse.TargetFilter and set the Zone to be that?

No, it happens on every Player Click Input.

If i understand true you need to which zone you selected fired by (SFX bomb whatever). Can’t enter zone and expode its interface?

TargetFilter only accept one instance (and all its descendants)
if you at least want to ignore all zones, you can try putting all zones into a Folder, and set TargetFilter to the zone folder

1 Like

because a “mouse position” is a raycast from camera position to the point in the focal plane. in other words, it is still a raycast, you may want to make your own raycast so you can have more control such as the exact filter list

I wonder if it is possible to set can query to false only on the client, assuming the zone enter/zone exit events are only needed on the server? I wonder if this would make the mouse ignore the part.

i think yes if zone enter/exit is purely server sided.

Well I managed to fix it by using Mouse.TargetFilter and I set it on the Client. Apparently I can’t send the Mouse to the server by using Network Utility BridgeNet2 which accepts Instances.

I’ve placed the Zones in the Zones Folder and set the Mouse.TargetFilter to it.

Mouse.TargetFilter = Workspace:FindFirstChild("ZoneFolder")

–// Client Code

2 Likes

Oh that’s great hoping it will never cause a problem.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.