Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Local script Keybind for lights. Doesn't work? [closed]

Asked by 6 years ago

local light = script.Parent.Parent.Parent.Body.Li
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
    if key == "z" then
        light.Lamp.Lighto.Light.Visible = true
    else
        light.Lamp.Lighto.Light.Visible = false
    end
end)
game.Players.LocalPlayer:GetMouse().KeyUp:connect(function(key)
    if key == "z" then
        light.Lamp.Lighto.Light.Visible = true
    else
        light.Lamp.Lighto.Light.Visible = false
    end
end)

i have a picture to https://gyazo.com/3e6a07a3f427c5ab97c84b1848cbcd94 and https://gyazo.com/637b682a109629f07e12158c6786a5ea

0
ewww free models LoganboyInCO 150 — 6y

Marked as Duplicate by theking48989987, User#24403, yHasteeD, and Shawnyg

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?