it wont work it just errors in output saying argument #3 to 'Color' (Color3 expected, got string)
local player = game:GetService("Players").LocalPlayer local button = script.Parent button.Activated:Connect(function() local char = player.Character local UpperTorsoColor = char.UpperTorso.color local UpperTorsoColor = char.UpperTorso.color ~= '0, 0, 255' end)
You need to do A LOT of research. Don't know why you're using Color3 when you can use BrickColor and don't know why you're confusing yourself by setting it = to each other for the 2n'd time
local player = game:GetService("Players").LocalPlayer local button = script.Parent button.Activated:Connect(function() local char = player.Character local UpperTorsoColor = char.UpperTorso.Color local UpperTorsoColor = Color3.new(0, 0, 255) end)
Hope this helps, I don't use Color3 a lot so if it has an error, you know why.
Unfortunately, JayShepherdMD's answer wont work, the code is wrong.
Here's my version.
local player =game:GetService("Players").LocalPlayer local button =script.Parent button.Activated:Connect(function() local char =player.Character char.UpperTorso.Color =Color3.new(0,0,255) end)
Hope it helps. If it doesn't, tell me and I'll rewrite it.