Hey, Is there a method i can use to make it so the mouse can ignore parts, because there’s a skill-move/ability in game and sometimes the player faces backwards, instead of towards where the mouse is pointing like in the image here. (You see how it’s facing backwards instead of facing towards the mouse?)
Try using:
local Mouse = game.Players.LocalPlayer:GetMouse();
Mouse.TargetFilter = InstancePathHere
You can view the TargetFilter reference here:
1 Like
Thanks for replying! I humbly ask, is there a way to make it so it filters more than one part? let’s say for example
local Map = workspace.Map
How would i apply every children in the Map (Parts, et cetera) to be filtered/ignored by mouse?
TargetFilter applies to everything in that instance, and the instance itself.
Ah okay thanks, is there a way to make it apply to more than one instance?
E.g.
local Map = workspace.Map
local Effects = workspace.Effects
Is there a way to make it apply to both Map and Effects?
Sadly no, it only applies to a single instance, hopefully Roblox will fix this soon. If that were a thing, you would use a table. Example TargetFilter = {Map, Effects}