Was using a leaderboard and wanted to be able to set specific players' leaderstat to something different than another leaderstat. hers the script if needed:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect (function(Player)
if Player
then
local Folder = Instance.new('Folder')
Folder.Name = ("leaderstats")
Folder.Parent = Player
local Power = Instance.new("IntValue")
Power.Name = ("Power")
Power.Parent = Folder
Power.Value = Players.
end
end)
Edit: I figured it out, by putting a script in one of the replicated folders, such as PlayerGUI, then you can detect and run a function based on the player's name value.
if script.Parent.Parent.Name == "PlayersName" then
script.Parent.Parent.leaderstats.Power.Value = 100
else
end
In this example, I put the script in the ScreenGUI folder and made it search for the Player's Name, then edited the IntValue in the "leaderstats" folder if the players name was equal to the String Value.

2 comments
Not sure what you meant by that. Are you trying to check player's leaderstats or set it?
Trying to set someone's leaderstat, as an example I want PlayerB's value to be 100 while playerA's is 0, I only need PlayerB's to be 100, so if PlayerC joined his would be 0 by default but PlayerB's would be 100 by default if he joined