Script itself is local. So the main problem is that it completely refuses to work if using isTyping before input.KeyCode, removing it makes it work, what the problem could be in? Local script parented to starterplayer.
uis.InputBegan:Connect(function(input,isTyping)
print("1")
if isTyping then return end
print("2")
if input.KeyCode == Enum.KeyCode.G then
print("3")
end
end)
What are your intentions here? gameProcessed (in your case, isTyping) is a boolean to determine whether the engine has processed the input, or if the script requires to handle it.
If by isTyping you mean whether the player is currently typing on a TextBox, put the script in said TextBox instead.
Oh wait, it works the other way, why did I post this?
Alright, ignore what I said, what are your intentions here?