Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Forcing torso the be a nice shade of blue not working?

	player.Character:WaitForChild("UpperTorso")
	player.Character.UpperTorso.BrickColor = BrickColor.new(33,84,185)

3 answers

BrickColor.new() uses 0 to 1 for RGB format parameters, so you should divide it by 255 to get desired result :

player.Character.UpperTorso.BrickColor = BrickColor.new(0.1294, 0.3294, 0.7254)

Or, you can use Color3.fromRGB with Color property of Part

To do this, you should use Color3.fromRGB because of the colors you inputted. For example,

--< Variables >--
local color = Color3.fromRGB(33, 84, 185)
local part = player.Character.UpperTorso

--< Change >--
part.Color = color
--localscript

local player = game.Players.LocalPlayer
player.Character:WaitForChild("UpperTorso",.1).BrickColor = BrickColor.new("Bright blue") --R15
player.Character:WaitForChild("Torso",.1).BrickColor = BrickColor.new("Bright blue") --R6

This discussion is preserved as it was. New answers, comments, and votes are closed.