Hello! I'm currently making a custom system UI and I'm attempting to make the custom chat button (as shown below) turn blue when I start typing.
The problem is that I don't know how to approach this. I've tried searching for the solutions but all I get are unhelpful answers to other problems.
Is there an event that fires when the player starts/stops typing? I'm sorry I don't have code, I don't have any because I didn't know where to start.
Ok, so this is the way to do it:
local typing = false game:GetService(“UserInputService”).InputBegan:Connect(function(key, istyping) if istyping then typing = true end end)
Basically, the second argument of the function checks if the player is typing. Hope it helps!