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

how do i do instance.new("boolvalue" players[i])?

how do i do instance.new("boolvalue" players[i])? i want to make a value to a players in the table, but thats not working. why?

1 comment

0

You want a BoolValue in every player?

1 answer

✓ Accepted answer

Hiya, welcome to Scripting Helpers. I don't want to be the sour jelly bean but please try attempt making this your self.

For this script, you can use: Pairs an iPairs (Roblox Resource) to iterate over the players in a list

Something like:

for index, player in pairs(game:GetService("Players"):GetPlayers()) do
	local BoolValue = Instance.new("BoolValue", player)
	-- do something
end

1 comment

0

Thank you! It worked!

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