how do i make a script to turn on car lights i tried to find a video about it but can't find it plz help me. i have this coding from a other car but i can't get it to work
local m = game.Players.LocalPlayer:GetMouse()
db = true
m.KeyDown:connect(function(k)
k = k:lower()
if k == "l" then
if db == true then
script.Parent.Parent.Body.Lichten.Koplampen.Part.Lighto.Enabled = true
script.Parent.Parent.Body.Lichten.Koplampen.Part.Point.Enabled = true
db = false
wait(3)
db = true
end
end
end)

3 comments
put in codebox
You can't rely on a tutorial existing for everything.. Tutorials are just that: tutorials. You are kind of close though, so don't give up trying. Don't use KeyDown, use UserInputService.
i bet u used yt i saw that code