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
LoIify
(Loii)
July 30, 2020, 5:30pm
#2
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