So I want to highlight a door when the player’s mouse is on top of it. I use mouse.Target but it get the part of the door, not the door model? how can I highlight a door with the new highlight feature on hover?
1 Like
Since your script already detects a part of the door, you can just do
local model = part:FindFirstAncestorWhichIsA("Model")
This will return the first ancestor of that part that is a model.
I recommend also checking if that model is in the right place in case it finds the wrong model (for example:
if model.Parent == workspace.Doors then
...
end
1 Like