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)

1 comment

0

Are you trying to get the key p, and if it is pressed to make vis true?