so i didnt exactly describe what i want. heres my script
local player = game.Players.LocalPlayer
local userinputservice = game:GetService("UserInputService")
local bool = false -- going to make this turn on and off when a player enters a chair
userinputservice.InputBegan:Connect(function(object)
print(tostring(object.KeyCode))
if workspace.Seat:FindFirstChild("SeatWeld") then
-- game.ReplicatedStorage.KeyBoard:InvokeServer(object.KeyCode)
end
end)
basicly what i want is when the player pressed down a key. i want it to turn into a string and print (for now) but when i do it prints out "Enum.KeyCode.D" or whatever key i pressed. i just want it it print out "D". its kind of confusing but let me know if that kind of makes any since?

2 comments
object.KeyCode.Name lol
please tell me your kidding me XD