Please help me! The output says " bad argument #2 to '?' (string expected, got Object) "
local plr = game:GetService("Players")
local mouse = plr:GetMouse()
local text = script.Parent.TextLabel
mouse.KeyDown:connect(function(key)
text.Text = key
end

4 comments
thank you!
You can use input.KeyCode.Name
Okay!
Yeah^^