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

How to make a selection box red?

Asked by
Rurith 10
10 years ago
function nvg(p)
    p.CharacterAdded:connect(function(c)
        Instance.new('SelectionBox',p.Character).Adornee=c
    end)
end

for _,p in next, game.Players:GetPlayers() do
    Instance.new('SelectionBox',p.Character).Adornee=c
    nvg(p)
end
game.Players.PlayerAdded:connect(function(p)   
    nvg(p)
end)

How do I make it red?

1 answer

Log in to vote
0
Answered by 10 years ago
local sb = Instance.new("SelectionBox", p.Character)
sb.Adornee = c
sb.Color = BrickColor.new("Really red")
0
Thanks! Rurith 10 — 10y
Ad

Answer this question