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

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

Asked by 6 years ago
    player.Character:WaitForChild("UpperTorso")
    player.Character.UpperTorso.BrickColor = BrickColor.new(33,84,185)

3 answers

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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

Ad
Log in to vote
0
Answered by
joshxie 25
6 years ago

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
Log in to vote
0
Answered by
GingeyLol 338 Moderation Voter
6 years ago
--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

Answer this question