The script that creates the bool value works, but the one to change the value does not

Script to create bool:

game.Players.PlayerAdded:Connect(function(plr)
	bool = Instance.new("BoolValue",plr)
	bool.Value = false
end)

2 comments

0

By default, bool values are set to false.

0

game.Players[playerName].BoolValue.Value = true or false