I am trying to script a passcode gui, but for some reason the enterPressed parameter for the FocusLost event is not working.
local frame = script.Parent local enter = script.Parent:WaitForChild("Enter") local container = script.Parent:WaitForChild("PasscodeContainer") local passcode = container:WaitForChild("Passcode") local text = container.Text print("Variables loaded.") container.FocusLost:Connect(function(enterPressed) if enterPressed then text = container.Text print(text) else print(text) end end)