local Camera = workspace.CurrentCamera
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character.Humanoid --errorline
Using any FindFirstChild or WaitForChild didn’t work.
local Camera = workspace.CurrentCamera
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.Character:Wait()
local Humanoid = Character.Humanoid
The reason it doesn’t find the Humanoid is that the Character hasn’t loaded, so you need to wait for it to load.
Try to use this script, but on StarterPlayer > StarterCharacterScripts:
local Camera = workspace.CurrentCamera
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")