I keep getting the error:
“ServerScriptService.CoreScript(Server).CombatScript:13: attempt to index nil with ‘CombatStatus'”
In a script I’m working on in a Roblox Game
This line of code is what the error is referring to:
if Hit.Parent:FindFirstChild(“Humanoid”) and Hit.Parent.Name ~= Player.Name and game.Players:FindFirstChild(Hit.Parent.Name).CombatStatus.Value == “” and Hitbox.CanTouch == true then
I’ve tried rewriting the entire scripts, multiple times, but this error keeps happening
EmberJack18 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.