I have already asked this question and I am sorry, but it is not showing in Roblox Studio, is this a glitch with roblox studio?
01 | game.Players.PlayersAdded:Connect( function (player) |
02 | local stats = Instance.new( "Folder" ) |
03 | stats.Name = "leaderstats" |
04 | stats.Parent = player |
05 |
06 | local power = Instance.new( "IntValue" ) |
07 | power.Name = "Power" |
08 | power.Value = 0 |
09 | power.Parent = stats |
10 |
11 | local cash = Instance.new( "IntValue" ) |
12 | cash.Name = "Power" |
13 | cash.Value = 0 |
14 | cash.Parent = stats |
15 | end ) |
Hello, kimbriel!
Your problem is easily fixable."stats" should be an IntValue rather than a Folder.
1 | local stats = Instance.new( "IntValue" ) |
I hope this helps! :)