I am making stats and I want the owners to have a certain amount of cash. I am having trouble at the bottom of this script. Thanks :)
game.Players.PlayerAdded:connect(function(plr)
--// Stats //--
local folder = Instance.new("Folder",plr)
folder.Name = "leaderstats"
local stat3 = Instance.new("BoolValue",plr)
stat3.Name = "HasHome?"
stat3.Value = false
local stat1 = Instance.new("StringValue",folder)
stat1.Name = "Cash"
stat1.Value = 1000
local stat2 = Instance.new("StringValue",folder)
stat2.Name = "Class"
stat2.Value = "Low Class"
--// Owner's stats //--
if plr.Name == "PlayersName" or "PlayersName2" or "PlayersName3" then
game.Players.PlayersName.leaderstats.Cash = 9999999
game.Players.PlayersName2.leaderstats.Cash = 9999999
game.Players.PlayersName3.leaderstats.Cash = 9999999
end
end)

1 comment
Thanks.