local uis = game:GetService("UserInputService")
local anim = Instance.new("Animation")
local p = game.Players.LocalPlayer
local c = p.Character
local h = c:WaitForChild("Humanoid")
if h then
print("H")
end
it doesn't print in the output h but it says that c is a nil value how can i solve this?

2 comments
thank you!
welcome