Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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?

0
You want a BoolValue in every player? MarkedTomato 810 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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
0
Thank you! It worked! TemaTechYT 2 — 3y
Ad

Answer this question