ldallmann
(ldallmann)
June 19, 2021, 7:31pm
#1
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
keith_220
(keith_220)
June 19, 2021, 7:34pm
#3
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
ldallmann
(ldallmann)
June 19, 2021, 7:37pm
#4
I fixed the errors and it keeps appearing only death and kills, what output for spelling errors would this be?
1 Like
ldallmann
(ldallmann)
June 19, 2021, 7:38pm
#5
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
keith_220
(keith_220)
June 19, 2021, 7:39pm
#6
What do you mean the deaths and kills ARE appearing??? Where is the script for the deaths and kills.
2 Likes
ldallmann
(ldallmann)
June 19, 2021, 7:40pm
#7
I managed to fix everything, thank you very much to everyone!
1 Like
On the right you can see Output.