Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make group name handler border change colors?

Asked by 8 years ago
Edited 8 years ago

I have a nametag handler for a group but I want to make the border change colors how do I do that?

01function Create(ClassName)
02    return function(Properties)
03        local Obj = Instance.new(ClassName)
04 
05        for i,v in pairs(Properties) do
06            if type(i) == 'number' then
07                v.Parent = Obj
08            else
09                Obj[i] = v
10            end
11        end
12 
13        return Obj
14    end
15end
View all 68 lines...

1 answer

Log in to vote
0
Answered by 8 years ago

First, you would have to make sure the border is visible

1button.BorderSizePixel = 1 --Can really change this to anything other than 0

Then apply the color.

1button.BorderColor3 = Color3.new(1, 1, 1) --Anything here as well
0
@Turtletowerz I want it changing between colors do I do BrickColor.new(math.random() after the = thecoolx123 -5 — 8y
0
You would do Color3.new(math.random(1, 255), math.random(1, 255), math.random(1, 255)) I think User#9949 0 — 8y
Ad

Answer this question