I added a script where if you press certain letters on the keyboard, GUI Frames open up. But when I chat with the letter (example. I press E to open the Frame, but I chat hello) Since I added the E in hello, the GUI Frame opens!
How do I make it where when I chat, the GUI Frame does NOT open, but when I do not chat, it opens?!
Basically... What script should I add in the script below to make the chat not interfere with the script?!
BTW this is a LocalScript
The open script...
---------------------Keyboard------------------------
game:GetService("UserInputService").InputBegan:connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.T then
script.Parent:TweenPosition(UDim2.new(-1, 0, 0.289, 0), "Out", "Quad", 2, true)
script.Parent.Parent.A.Visible = true
script.Parent.Parent.A:TweenSize(UDim2.new(0.338, 0, 0.71, 0), "Out", "Bounce", 2, true)
--Enabled
script.Parent.Parent.A.CodeRedeemer.LocalScript.Disabled = false
script.Parent.Parent.A.Teleporters.LocalScript.Disabled = false
script.Parent.Parent.A.Exit.LocalScript.Disabled = false
script.Parent.Parent.A.Next.LocalScript.Disabled = false
--Disabled
script.Disabled = true
wait(2)
script.Parent.Visible = false
end
end
end)

1 comment
Not a request site! Come back when you have attempted this.