Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
wekzz1 0
5 years ago

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

0
Ok but every time a player connects you want to add a bool named debounce into server storage? DinozCreates 1070 — 5y
0
yes wekzz1 0 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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)
0
idk if this is on purpose but he also spelled strength wrong -- just being helpful and doing all i can for the community Donut792 216 — 5y
0
No blame to you but lines 5-11 should be outside of the PlayerAdded. DinozCreates 1070 — 5y
0
for some realon this still didnt seem to work? wekzz1 0 — 5y
0
@wekzzl, this will work, try looking at this "serverStorage.remotedata" and seeing if the names match SerpentineKing 3885 — 5y
Ad

Answer this question