My best practices for roblox dev (mostly on the technical side)

you should do

if Character and Character:FindFirstChildOfClass("Humanoid") then

end

this will never error

and nested-ifs are always the worse solution (for me… after all it is subjective because technically there is no difference)