1 | local item = game.Workspace:FindFirstChild("Collectable-Mic", true) -- Searches the entire Workspace for the item |
2 | |
3 | if item then |
4 | local highlight = Instance.new("Highlight") -- Creates a new Highlight instance |
5 | highlight.Parent = item -- Sets the item as the parent of the highlight |
6 | highlight.FillColor = Color3.new(1, 0, 0) -- Sets the fill color of the highlight (red in this case) |
7 | highlight.OutlineColor = Color3.new(0, 1, 0) -- Sets the outline color of the highlight (green in this case) |
8 | else |
9 | warn("Item not found") |
10 | end |