#Changing Stats of players in a table (Server Script)
27 messages · Page 1 of 1 (latest)
ok
Yes
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
Yeah
Just the thing is
I need to give the players that are in the table survivals
And the players that arent
ah
No survivals
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
and add their name n stuff to it
Teadf
alr
i get it
this wok thanks