Help in leaderstats/leaderboard Script

Hey guys, I’m in need of help in a leaderboard script, where the data of each player appears in the upper right corner. I’m having problems because the types of data I want don’t appear, deaths and kills are appearing, I would like to see strength and money.

I’ve checked all the code several times and I haven’t found any errors, I have no idea what could be wrong.

local serverStorage = game:GetService("ServerStorage")

game.Players.PlayerAdded:Connect(function(player)

	-- Criar Leaderboard
	local leaderstats = Instance.new("Folder")
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = player

	-- Força (dentro do leaderboard)
	local strength = Instance.new("IntValue")
	strength.Name = "Strength"
	strength.parent = leaderstats

	-- Dinheiro (dentro de leaderboard)
	local money = Instance.new("IntValue")
	money.Name = "Money"
	money.parent = leaderstats
	
	-- Informações dos players
	local dataFolder = Instance.new("Folder")
	dataFolder.Name = player.Name
	dataFolder.parente = serverStorage.RemoteData
	
end)
2 Likes

Shouldn’t it be: strength.Parent = leaderstats?

Shouldn’t it be: dataFolder.Parent = serverStorage.RemoteData?

EDIT: In the future use Output to detect spelling mistakes

2 Likes

You need to spell Parent with a capital p and correctly. Also how do kills and deaths work?? Are you trying to make leaderstats from two different scripts? if so this will not work

2 Likes

I fixed the errors and it keeps appearing only death and kills, what output for spelling errors would this be?

1 Like

I’m not doing it on two different scripts, I made it based on a video and the guy’s script worked just fine

1 Like

What do you mean the deaths and kills ARE appearing??? Where is the script for the deaths and kills.

2 Likes

I managed to fix everything, thank you very much to everyone!

1 Like

On the right you can see Output.