Basically, the problem is that the y and z will update while the x says at zero, despite all using the same variable. Any help would be greatly appreciated!
local part = script.parent
c = 13
for i=1, 100 do
part.Transparency += 0.01
c += 1
part.Color = Color3:fromRGB(c,c,c)
wait(0.05)
end
part:Destroy()
try doing Color3.fromRGB instead of Color3:fromRGB
4 Likes
Thank you, this fixed the problem. I don’t know how I didn’t see that lol
1 Like
If you’re wondering why, I believe this is due to implicit passing of the Color3 object through to the fromRGB function call, so that said the first parameter is viewed as the Color3 object itself, which is not a valid argument, so as a result the other arguments are pushed down and a default parameter of 0 is used in place of the object that was passed through.
1 Like