#Should variables like player stats(health, strength, etc) be in a server script?

4 messages · Page 1 of 1 (latest)

neat prairie
#

Should variables like player stats(health, strength, etc) be in a server script so exploiters can't change the variables and if so, how can I make the server script "personalized" to a client then? Like if I had a server script that has the player's health variable how can I make that personalized to a specific player, is it even possible or do I have to make a table of health values that are paired with a player?

wide heart
#

Make a table with the stats for each player eg.

local PlayerStats = {
  BuiltToWreck = {
    Strength = 200,
    Coins = 24
  },
  GreaterPlays= {
    Strength = 900000,
    Coins = 221
  }
}
#

You could even use the player instance as the index for the table if you wanted to