How would I check to see if the input matches the string I set? Ty
--Server Scripter
local Key = function(plyr, key, user)
--if user then return end
local val = "L"
if key.KeyCode == Enum.KeyCode[val] then
print(val)
end
end;
--Local
uis.InputBegan:connect(function(key, game)
if game then return end
event:FireServer()
end)

1 comment
Error: 07:17:37.988 - Workspace.Hail Alpha:84: attempt to index nil with 'KeyCode'