Hello there im very clueless and i dunno what to put here so yea
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = plr
local Power = Instance.new("IntValue",leaderstats)
Power.Name = "Power"
Power.Value = 0
local Money = Instance.new("IntValue",leaderstats)
Money.Name = "Energy"
Money.Value = 0
end)
how do i save this?

8 comments
thank you
Make sure to mark the answer as correct if it helped :)
so umm im in team create and i get the error: API Services rejected request with error. HTTP 403(Forbidden) what can i do?
Oh, make sure your game has HTTP enabled. Read about how to enable it here: https://developer.roblox.com/en-us/api-reference/class/HttpService Also enable API
The API error is completely normal, due to an API not being enabled in studio. It should work completely fine in-game, although if you want it to work in studio you can find the option to turn it on in 'Configure this Game'
the HTTP Api is turned on, and i still get the same error
Did you try it in the game itself?
yes