I made a script to add some Stats into my game, but I can't get it to work the way I want. I only want to display a Cash value, but my other value shows as well. Can someone help me?
Script
game.Players.PlayerAdded:connect(function(newPlayer)
local Stats = Instance.new("Model", newPlayer)
Stats.Name = "leaderstats"
local Cash = Instance.new("IntValue", Stats)
Cash.Name = "Cash"
local isOwner = Instance.new("BoolValue", Stats)
isOwner.Name = "isOwner"
end)
It displays like this, but I only want the Cash value to show up.
Cash = 0
isOwner = 0

1 comment
Thanks!