Here is a script that I have that adds a folder directory within players in game.Players. How do I access these values via a server-sided script that can edit those player-specific values? ex: Change the Class.Value of a specific player.
game.Players.PlayerAdded:connect(function(player)
local folder = Instance.new("Folder")
folder.Parent = player
folder.Name = "Stats"
--folder.Name = p.Name
local Team= Instance.new("StringValue", folder)
Team.Name = "Team"
Team.Value = "No team"
local Class = Instance.new("StringValue", folder)
Class.Name = "Class"
Class.Value = "No class"
local Level = Instance.new("IntValue", folder)
Level.Name = "Level"
Level.Value = 1
end)

5 comments
Would this change via a localscript reflect globally (seen by other players and the server)?
You also can use LocalScript. but it's for advanced coding uses, like game.Players.LocalPlayer.Stats.Class.Value = "Thing"
Both will also effect the Server because Player Service is not client
This is absolutely wrong. LocalScripts are programs designated to run on the user's device. The Client only has allotted NetworkOwnership over their Avatar, any other modifications made locally will n o t reflect on the Server.
How in the world is a LocalScript, let alone the 'LocalPlayer' pointer, considered "advanced" coding?