allright so, i wanna make when you get into a car, you press L you turn on the headlights and taillights, you press S the brakelights activate. i want to do this with the keyboard keys, i don't want the gui button on screen. lets say that the headlights are called "HL", the taillights "TL", the brakelights "BL" and reverse "RV", this might help with the scripting. this might be something simple for some of you, but i s*ck at scripting. (indicators are already done)
COMMUNITY QUESTION
L to activate lights?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
You should try doing this yourself. it seems you haven't even tried.
Not a req site.
I'm not going to give code, but an idea: Use UserInputService. If a player is sitting down, see if they press L, if so, enable the lights. If they click it again, un-enable the lights (Toggle using Boolean Variable!); You can do the brakelights by doing the same thing. InputBegan, check if it's S, if so, enable the lights. InputEnded, check if it's S, if so, Disable the lights.