So, I've made a script with a GUI to where if I press a key the GUI will open and close, and I have a few other things in place. But they aren't Filtering Enabled friendly and I have no clue how to go about making them work with it.
local Prty = script.Parent.Party
local Plr = script.Parent.Player
local Sttg = script.Parent.Settings
local Bkp = script.Parent.Backpack
local Msg = script.Parent.Messages
local Map = script.Parent.Map
local Hlp = script.Parent.Help
local Tggl = true
local MenuO = script.Parent.Menu_Open
local Blr = game.Workspace.CurrentCamera.Blur
function KeyDown(OpenMenu, Toggle, Menu)
if Toggle == Enum.UserInputState.Begin then
if Tggl == true then
Plr:TweenPosition(UDim2.new(0.2, 0, 0.1, 0), "Out", "Back", .75)
Prty:TweenPosition(UDim2.new(0.2, 0, 0.2, 0), "Out", "Back", .75)
Bkp:TweenPosition(UDim2.new(0.2, 0, 0.3, 0), "Out", "Back", .75)
Msg:TweenPosition(UDim2.new(0.2, 0, 0.4, 0), "Out", "Back", .75)
Map:TweenPosition(UDim2.new(0.2, 0, 0.5, 0), "Out", "Back", .75)
Sttg:TweenPosition(UDim2.new(0.2, 0, 0.6, 0), "Out", "Back", .75)
Hlp:TweenPosition(UDim2.new(0.2, 0, 0.7, 0), "Out", "Back", .75)
Blr.Enabled = true
MenuO:Play()
Tggl = false
else
Prty:TweenPosition(UDim2.new(0.2, 0, -0.5, 0), "Out", "Back", .5)
Plr:TweenPosition(UDim2.new(0.2, 0, -0.5, 0), "Out", "Back", .5)
Sttg:TweenPosition(UDim2.new(0.2, 0, -0.5, 0), "Out", "Back", .5)
Bkp:TweenPosition(UDim2.new(0.2, 0, -0.5, 0), "Out", "Back", .5)
Map:TweenPosition(UDim2.new(0.2, 0, -0.5, 0), "Out", "Back", .5)
Msg:TweenPosition(UDim2.new(0.2, 0, -0.5, 0), "Out", "Back", .5)
Hlp:TweenPosition(UDim2.new(0.2, 0, -0.5, 0), "Out", "Back", .5)
Blr.Enabled = false
MenuO:Play()
Tggl = true
end
end
end
game.ContextActionService:BindAction("KeyPress", KeyDown, false, Enum.KeyCode.M)

1 comment
This is all in a LocalScript, thought I should clear that up just incase.