Ok, here is my script:
game.Players.PlayerAdded:Connect(function(plr)
local money = Instance.new(“IntValue”, plr)
money.Parent = plr
end)
Ok, here is my script:
game.Players.PlayerAdded:Connect(function(plr)
local money = Instance.new(“IntValue”, plr)
money.Parent = plr
end)
Okay here is the fix:
game.Players.PlayerAdded:Connect(function(plr)
-- You forgot the leaderstats folder, the money val, and the name
local leaderstats = Instance.new("Folder",plr)
local money = Instance.new(“IntValue”)
money.Parent = leaderstats
money.Name = "money"
money.Value = 0
end)
Hope it helps!
You need a folder called "leaderstats".
Here is an example:
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = plr
local money = Instance.new("IntValue")
money.Name = "Money" -- You can change this
money.Parent = leaderstats
money.Value = 30 -- You can change this
end)
Remember, if this answer helped, please upvote and accept, it helps! :)
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
The parent argument of Instance.new() is deprecated.
Those quotation marks aren't UTF-8 compatible.
Ik, I was typing on iPad, I hope ThatWorldDev understands that and changes them.
Yeah, I ddI