what i am trying to do is every time a player hits the use key on the entity it changes to a different color.
but for some reason it runs through the whole entire code and picks the color on the bottom of the code and wont change. it just stays with the color red .
function ENT:Use ( ply )
if self.Entity:GetColor(0,0,255,255) then – Blue
self:SetColor(255,255,255,255) – White
if self.Entity:GetColor(0,255,0,255) then --Green
self:SetColor(0,0,255,255) – Blue
if self.Entity:GetColor(255,0,0,255) then – Red
self:SetColor(0,255,0,255) – Green
if self.Entity:GetColor(255,255,255,255) then – White
self:SetColor(255,0,0,255) – Red
what i was trying to do was since i have the entity to Initialize the color white was to let it go through the code and let it pick the color starting at the bottom on up.
white to red then red to green then green to blue then blue to white
any ideas to make something like this to work.