I'm trying to make a "Bucks" currency but however when I tested my game, it wasn't there so I checked my script again and here what it says on my script:
Expected ')' (to close '(' at line 1), got 'local'
Here's a picture of my script:
1 game.Players.PlayerAdded:Connect(Function(player)
2
3 local leaderstats = Instance.new("Folder")
4 leaderstats.Name = "leaderstats"
5 leaderstats.Parent = player
6
7 local bucks = Instance.new("IntValue")
8 bucks.Name = "Bucks"
9 bucks.Value = 0
10 bucks.Parent = leaderstats
11
12 end)
PLEASE HELP ME and the "local" at line 3 is where it said I messed up. Please send me the "FIXED" script so I can copy and paste because sometimes I get confused on what to do.

2 comments
Lol! sorry, btw ty for the help! :D
Accept the answer!!!