-
What do you want to achieve?
I want it so my crosshair goes gray when I start running. -
What is the issue?
The prints for debugging ends up printing, but no color is changed. Other code changes the color but not this. -
What solutions have you tried so far?
I’ve tried putting the piece of code in different parts of the script, but it didn’t work. I also tried changing from Color3.fromRGB to Color3.new and it didn’t work.
There are no errors.
PlayerStuff.Values["Running"].Changed:Connect(function(Value)
print('Value Changed')
if PlayerStuff.Values["Running"].Value == true then
print('True')
for _, CrossPart in pairs(CrossFrame:GetChildren()) do
CrossPart.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) -- doesn't work
print('DoubleTrue')
end
elseif PlayerStuff.Values["Running"].Value == false then
print('False')
for _, CrossPart in pairs(CrossFrame:GetChildren()) do
CrossPart.BackgroundColor3 = Color3.new(1, 1, 1) -- doesn't work
print('DoubleFalse') -- these end up printing anyway
end
end
end)