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)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
By default, bool values are set to false.
game.Players[playerName].BoolValue.Value = true or false