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

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

Asked by 2 years ago

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)

0
Please use code blocks. AronYstad 101 — 2y
0
agreed Krektonix_Youtube 85 — 2y

1 answer

Log in to vote
0
Answered by
AronYstad 101
2 years ago

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

Ad

Answer this question