Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

"ALIVE is not a valid member of Backpack "Players.Hack999kh.Backpack" when it is can someone help?

I have a boolvalue thats ment to set its value to true when the game starts but I get the error "ALIVE is not a valid member of Backpack "Players.Hack999kh.Backpack" every time i test it

		for i,v in pairs(game.Players:GetPlayers()) do
			v.Backpack.ALIVE = true
		end

thats the script I've changed the name but still nothing works https://i.imgur.com/CBkHvLf.png

1 answer

✓ Accepted answer

This is probably because the BoolValue has not loaded in yet. You could fix this by using :WaitForChild(). By the way you forgot the .Value!

for i, v in pairs(game.Players:GetPlayers()) do
    v.Backpack:WaitForChild("ALIVE").Value = true
end

This discussion is preserved as it was. New answers, comments, and votes are closed.