My script doesnt work! It says LocalPlayer is not valid member and wont add leaderstats Script:
local plr = game.Players.LocalPlayer
game.Players.PlayerAdded:Connect(function()
local folder = Instance.new("Folder")
folder.Parent = plr
folder.Name = "leaderstats"
local money = Instance.new("IntValue")
money.Parent = folder
money.Name = "Money"
end)

3 comments
The script isnt there..
Check it now now.
the script has to be local if it isn't local then LocalPlayer is nil