How do i make parts have an outline when the mouse hovers over them?

So i’m new to scripting with very little knowledge and i’d like to know how to make parts have an outline when the mouse hovers over them. How would i go about doing this?

Example of what i’m trying to do:
https://gyazo.com/614ad4a785ba495e98c072ddf2f43b75

Help would be much appreciated

1 Like

while this isnt the full solution (since u gotta account for models and hoverable items only).
this should be in the right direction

LocalScript:

local rs = game:GetService('RunService');
local mouse = game.Players.LocalPlayer:GetMouse();

local selectionbox = Instance.new('SelectionBox');
selectionbox.LineThickness = .05
selectionbox.Parent = workspace.CurrentCamera;

rs.RenderStepped:connect(function()
	selectionbox.Adornee = mouse.Target;
end)
5 Likes