Error reference

Roblox: “attempt to index nil with …”

This is the most common runtime error in Luau, and the message points at the wrong half of the problem. Read it backwards and it becomes obvious — then there are exactly six reasons it happens.

What it actually says: in attempt to index nil with 'Humanoid', Humanoid is what you asked for. The thing that is nil is whatever stood to the left of the dot. Nothing is wrong with Humanoid; something before it does not exist.