Hello, I'm a beginner scripter on ROBLOX!
I need help with something I've trying a few days ago. When you press the key "ESC" (or escape) on your keyboard it blur the background of your game.
And the same if you close the "ESC" (or escape) menu, it remove the blur of the game with the element "BlurEffect".
local GuiService = game:GetService("GuiService")
GuiService.MenuOpened(function()
print("Menu opened")
game.Lighting.Blur.Enabled = true
end)
GuiService.MenuOpened(function()
print("Menu closed")
game.Lighting.Blur.Enabled = false
end)
When I try this code, it doesn't work.
I read those, I don't found a example for them: http://wiki.roblox.com/index.php?title=API:Class/GuiService/MenuOpened http://wiki.roblox.com/index.php?title=API:Class/GuiService/MenuClosed
And: http://wiki.roblox.com/index.php?title=API:Class/GuiService

4 comments
First: Use tehe "insert lua script" When your adding a script, I dont even understand what the script is saying, second, There is no "blur" property on the lighting, And third, The community of scriptinghelpers is just a few persons, So answers may take from simply 3 minutes to 3 hours.
Aww, sorry it's my first time on Scripting Helpers. In details, "BlurEffect" in Lighting. The script see if someone has pressed Escape key, so it blurs out the game background in the menu. That's what I mean, and when someone close the menu it change Enabled to false from BlurEffect. But looks like it doesn't work.
Try checking the script lines now, you may understand what I want to do.
Aw sowwy owo uwu i will do mwor thwings like thwese