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

Why Wont This Visiblity On Key Press Script Work Properly?

Asked by 7 years ago

I Know I Seem To Be On A Roll With Questions Today But There Was No Error Appearing But It Would Not Appear

This Is The Script:

local Vis = false

game:GetService('RunService').RenderStepped:connect(function()
    wait(.1)
    if Vis == true then
        script.Parent.Visible = true
    else
        script.Parent.Visible = false
    end
end)

game:GetService('Players').LocalPlayer:GetMouse().KeyDown:connect(function(key)
    if key == 'P' then
        Vis = not Vis
    end
end)
0
Are you trying to get the key p, and if it is pressed to make vis true? xXxDaBossElmoxXx 22 — 7y

Answer this question