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

Coins is not a valid member of Folder "Players.robloxnoob20921.leaderstats" how to fix?

help

game.Players.PlayerAdded:Connect(function(player) local stats = Instance.new("Folder") stats.Name = "leaderstats" stats.Parent = player

local Strength = Instance.new("IntValue") Strength.Name = "Strength" Strength.Value = 0 Strength.Parent = stats

local Strength = Instance.new("IntValue") Coins.Name = "Coins" Coins.Value = 0 Coins.Parent = stats end)

2 comments

0

Please use code blocks.

0

agreed

1 answer

You typed "Strength" twice, instead of "Coins" the second time.

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