#Changing Stats of players in a table (Server Script)

27 messages · Page 1 of 1 (latest)

slim maple
#

Please help

lean temple
#

ok

slim maple
#

Yes

lean temple
#

fuck wait didnt mean to

#
local players = game.Players

for _,player in pairs(players:GetPlayers()) do
  local leaderstats = player.leaderstats
  local survivals = leaderstats.Survivals
  survivals.Value += 1
end
#

i assume you've already made something to make the leaderstats

#

so

slim maple
#

Yeah

#

Just the thing is

#

I need to give the players that are in the table survivals

#

And the players that arent

lean temple
#

ah

slim maple
#

No survivals

lean temple
#
local players = game.Players

for _,player in pairs(players:GetPlayers()) do
  if table.find(tablename,player.Name) then
    local leaderstats = player.leaderstats
    local survivals = leaderstats.Survivals
    survivals.Value += 1
  end
end
#

obviously define the table and stuff

slim maple
#

Ah

#

I'll teat this out

#

Teasr

lean temple
#

and add their name n stuff to it

slim maple
#

Teadf

lean temple
#

alr

slim maple
#

Seast

#

Teast

lean temple
#

i get it

slim maple
#

Teadt

#

Test