This is a LocalScript in it. It won't print "react" or "works" when a key is pressed. Hovering my mouse for example does print "react". Pls help. script.Parent is a TextBox.
script.Parent.InputBegan:Connect(function(input)
print("react")
if input.UserInputType == Enum.UserInputType.Keyboard then
print("works")
end
end)
Thanks for helping.


1 comment
Oops ignore the first sentence lol.