I'm not sure how to make a blur effect work with a keypress?
Any ideas on how I can fix this?
local mouse = game.Players.LocalPlayer:GetMouse()
local gui = game.Players.LocalPlayer.PlayerGui.KD.Main -- replace Frame to the name of the frame your gui is in
mouse.KeyDown:connect(function(key)
if key == "q" then
if script.Parent.Parent.Parent.MAIN.Main.Visible == true then
print("Loading Screen Is Visible!")
else
gui.Visible = not gui.Visible
game.Lighting.BlurMenu.Size = 34
print("Blur Enabled")
end
end
end)
script.Parent.Changed:Connect(function()
if script.Parent.Visible == false then
game.Lighting.BlurMenu.Size = 0
print("Blur Disabled")
end
end)

1 comment
Thx