------------------variables--------------------------------
local f = workspace.Floor
local p = game.Players.LocalPlayer
local c = p:FindFirstChild("Character")
local h = c:FindFirstChild("Humanoid")
local gui = p.PlayerGui.PressF.Frame
------------------user input------------------------------
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(input)
local keyIn = input.KeyCode
if keyIn == Enum.KeyCode.A then
print("A was pressed!")
end
end)
this is the script.it's parented in a part and it's a local script why doesn't it work? any answer that explains this will be appriciated

1 comment
it doesn't work and i don't get any error