I have a error that says "ServerScriptService.Script:7: attempt to index nil with 'WaitForChild'"
game.Players.PlayerAdded:Connect(function() local leader = Instance.new('Folder') leader.Name = 'leaderboard' leader.Parent = game.Players.LocalPlayer local leadera = Instance.new('IntValue') leadera.Name = 'Cash' leadera.Parent = game:GetService("Players").LocalPlayer:WaitForChild("leaderboard") leadera.Value = '0' end)

2 comments
thank you! it worked!
accepting this answer since you replied it worked