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

Why wont this work???? it just errors with Vaule is not a valid member of IntValue

local player = game:GetService("Players").LocalPlayer
local button = script.Parent 

button.Activated:Connect(function()
    local char = player.Character
    local UpperTorsoColor = char.UpperTorso.BrickColor

   char.UpperTorso.BrickColor = BrickColor.new(script.Parent.Color.Vaule)
end)

2 answers

✓ Accepted answer

You misspelled "Value"

local player = game:GetService("Players").LocalPlayer
local button = script.Parent 

button.Activated:Connect(function()
    local char = player.Character
    local UpperTorsoColor = char.UpperTorso.BrickColor

   char.UpperTorso.BrickColor = BrickColor.new(script.Parent.Color.Value)
end)

1 comment

0

OH THX didnt see that lol

local player = game:GetService("Players").LocalPlayer
local button = script.Parent 

button.Activated:Connect(function()
    local char = player.Character
    local UpperTorsoColor = char.UpperTorso.BrickColor

   char.UpperTorso.BrickColor = BrickColor.new(script.Parent.Color.Value)
end)

U wrote Vaule not Value

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