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
The way Roblox is set up, anything inside 'leaderstats' will show on the leaderboard. Therefore just parent your objects directly inside the player.
Instance.new("BoolValue", newPlayer)