#My traffic light blink script will not work.
1 messages · Page 1 of 1 (latest)
** You are now Level 7! **
i have a theory why it doesn't work 
oh my god is this real
oh my god this is even worser
it should work, it don't..
man i also have a theory why it doesnt work
and whats that theory?
i think you are using too many lines man
im sorry but no one will try to read one thousand lines
https://www.youtube.com/playlist?list=PLQ1Qd31Hmi3W_CGDzYOp7enyHlOuO3MtC might wanna watch this
dude im sorry to tell you but this is horrible
structure it something more like this
local greenLight = [green light here]
local yellowLight = [yellow light here]
local redLight = [red light here]
function enable(light)
greenLight.Enabled = false
yellowLight.Enabled = false
redLight.Enabled = false
light.Enabled = false
end
-- your determining algorithm here, the above code just makes sure lights are flipped off except the one you want on, and if they're not, the problem's in the determination
and please, use some real variable names 😭
nobody knows what D1S and D1L and D1R is
overall just learn OOP
sounds scary, it was for me, but it's much easier than it looks and very useful
oh holy shit its way more code than i thought
its a toolbox one I modified.
and theres I think 10-15 lights in the entire thing
not just 3
even if it was 15 lights
this is like trying to understand chinese without knowing chinese
so way long
and what the hell is D1S D1L
no one can fix this