of     1   

wish_z
#139401176Sunday, July 06, 2014 7:03 AM GMT

mouse = game.Players.LocalPlayer:GetMouse() mouse.TargetFilter = {Workspace.Part,Workspace.Part2} mouse.Button1Down:connect(function() print(mouse.Hit.Name) end) how do I ignore both Part and Part2 without putting them under the same model?
AnonyAnonymous
#139401339Sunday, July 06, 2014 7:06 AM GMT

for _,v in pairs(Workspace:GetChildren()) do if v.Name == "Part" or "Part2" then --Code Here end end
wish_z
#139401423Sunday, July 06, 2014 7:07 AM GMT

I don't see how that applies to mouse.TargetFilter :/
AnonyAnonymous
#139401497Sunday, July 06, 2014 7:09 AM GMT

Mouse.TargetFilter = v
wish_z
#139401545Sunday, July 06, 2014 7:09 AM GMT

Doesn't .TargetFilter only apply to one instance at a time?
AnonyAnonymous
#139401601Sunday, July 06, 2014 7:10 AM GMT

That should work, try testing it out.
wish_z
#139401698Sunday, July 06, 2014 7:12 AM GMT

bad cast Script 'Players.Player1.PlayerGui.LocalScript', Line 5 mouse.TargetFilter = v
AnonyAnonymous
#139401919Sunday, July 06, 2014 7:16 AM GMT

Alright then, FilteredTargets ={"Part","Part2"} if Mouse.Target.Name == FilteredTargets[1] or FilteredTargets[2] then Mouse.TargetFilter = Mouse.Target.Name
Notunknown99
#139403437Sunday, July 06, 2014 7:47 AM GMT

Put simply: You cant.

    of     1