All localscripts in startercharacterscripts parent into the character.
-- StarterCharacterScripts
local Humanoid = script.Parent:WaitForChild("Humanoid")
-- ServerScript
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local Humanoid = char:WaitForChild("Humanoid")
end)
end)
-- LocalScript not inside startercharacterscripts
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()