Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

"Bucks" Currency Won't Show Up?

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.

1 answer

Oh my god. This is like the 20th thing without CODING BOXES. Its so simple but so hard for you guys and make us go threw this. Please do it next time by clicking LUA at the top of the text. Here..

game.Players.PlayerAdded:Connect(function(player) --You did Function instead of function. Its case sensitive

local leaderstats = Instance.new("Folder")

leaderstats.Name = "leaderstats"

leaderstats.Parent = player

local bucks = Instance.new("IntValue")

bucks.Name = "Bucks"

bucks.Value = 0

bucks.Parent = leaderstats

end)

2 comments

0

Lol! sorry, btw ty for the help! :D

0

Accept the answer!!!

This discussion is preserved as it was. New answers, comments, and votes are closed.