Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

i cant seem to get a leaderboard no mater what i do?

ok here is what i have in my "leaderboard" script `local serverStorage = game:GetService("ServerStorage")

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

local dataFolder = Instance.new("Folder")
dataFolder.Name = player.Name
dataFolder.Parent = serverStorage.remotedata

local debounce = Instance.new("BoolValue")
debounce.Name = "debounce"
debounce.Parent = dataFolder

local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.parent = player

local strenth = Instance.new("NumberValue")
strenth.Name = "Strenth"
strenth.Parent = leaderstats

local rebirths = Instance.new ("IntValue")
rebirths.Name = "rebirths"
rebirths.Parent = leaderstats

end)

` please help me fix this

2 comments

0

Ok but every time a player connects you want to add a bool named debounce into server storage?

0

yes

1 answer

On Line 11, you forgot to Capitalize "parent" to "Parent" Below is the Revised Script

local serverStorage = game:GetService("ServerStorage")

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

local dataFolder = Instance.new("Folder")
dataFolder.Name = player.Name
dataFolder.Parent = serverStorage.remotedata

local debounce = Instance.new("BoolValue")
debounce.Name = "debounce"
debounce.Parent = dataFolder

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

local strength = Instance.new("NumberValue")
strength.Name = "Strength"
strength.Parent = leaderstats

local rebirths = Instance.new("IntValue")
rebirths.Name = "Rebirths"
rebirths.Parent = leaderstats

end)

4 comments

0

idk if this is on purpose but he also spelled strength wrong -- just being helpful and doing all i can for the community

0

No blame to you but lines 5-11 should be outside of the PlayerAdded.

0

for some realon this still didnt seem to work?

0

@wekzzl, this will work, try looking at this "serverStorage.remotedata" and seeing if the names match

This discussion is preserved as it was. New answers, comments, and votes are closed.