RGB Hover outline

Make the studio selection highlight RGB. Because why not.
Dont know who actually needs this, but yeah.

Just save this localScript as a local plugin:

local color = Color3.fromRGB(255, 0, 0)


task.spawn(function()
	while true do
		for i = 1, 360 do
			color = Color3.fromHSV(i / 360, 1, 1)
			task.wait()
		end
	end
end)


game:GetService("RunService").RenderStepped:Connect(function()
	if game:GetService("CoreGui"):FindFirstChild("DraggerUI") then
		for _, obj in pairs(game:GetService("CoreGui").DraggerUI:GetChildren()) do
			if obj:IsA("Highlight") then
				obj.OutlineColor = color
			elseif obj:IsA("SelectionBox") then
				obj.Color3 = color
			end
		end
	end
end)

Here is how it looks:

(Unfortunately doesnt work when you actually select something, since thats probably hardcoded. The highlight instance disappears altogether when you select)

10 Likes

This could be more preformant. How about this?

task.spawn(function()
    local accuracy = 255 -- number between 1 and 255
    local cycletime = 3 -- time to complete rainbow
    while true do
        for i = 1, accuracy do
            if #game.Selection:Get() == 0 then
                task.wait()
                break
            end
			color = Color3.fromHSV(i / accuracy, 1, 1)
			task.wait(1 / accuracy * cycletime)
		end
    end
end)

You may be able to get the highlight to work when selected, if you change studio settings. They may be read-only though, I haven’t checked.

3 Likes

I tried messing with the studio setting variables, and to my surprise it works.
That is, it lets me change the setting with a script, but it doesnt actually fully work :frowning:

When you select something, the color only changes once, and then its stuck at that color until you select something again. Also makes studio insanely laggy for some reason

might wanna grab the selection box itself and edit its color

Thats what I do for the hover box:
image

However, when selecting something, its gone altogether and is nowhere to be found:
image

Already tried searching is:Highlight, nothing. Even with show hidden objects in explorer, still nothing.

its not a highlight object, its probably a selectionbox

Well, it uses a highlight instance by default, but you can enable selection boxes as well with this:
image

Still cant find it anywhere in the explorer though

i saw the selection box randomly in coregui. its just named selectionbox, too.

This is actually available in your Studio settings. There was an update that I noticed last night.
You can go to your Settings and change more of your Selection Properties. They’ve also changed the line width of the selection box from Studs to Pixels to make things easier to read.

1 Like

This sounds pretty good!
Because you already made this, you could add a way to make the old Selection Boxes and remove the Outlines, sell it at math.huge Robux and I will but it

It would be possible to bring the old selection box back, but only when hovering over stuff. Probably not worth it

1 Like