uJordy
(uJordy)
April 7, 2019, 2:43pm
16
I feel like this should be a feature to be able to make a table of Instances instead of using a folder, it would be very convenient to have something like Mouse.TargetFilterList
Being able to set Mouse.TargetFilter to an array of objects rather than a single object has been requested on the developer forums before, but every time the response is “Can’t replicate a table as a property”. Replicating it to the server obviously doesn’t matter – what those responses have been referring to is telling other local scripts the new target filter. You can’t do that because even if you give them a pointer to the table’s memory address, that address can change and now the other loca…
Mouse.Targetlist is a great way of ignoring certain models from being hit by the mouse.Hit value.
Link: http://wiki.roblox.com/index.php?title=API:Class/Mouse/TargetFilter
It has some drawbacks tho, you can’t use it on all players unless you put all players in a model and set targetfilter to that model. Even so, you might have some bushes and stuff that shouldn’t be targeted, then you need to choose between what to hit and what not to hit.
SURE! This can be solved with raycasting, anyone can …