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

Any help with this leader board script?Has this problem that does not create I suppose the folder.

Hi, I have problems with this leader board. Problem: Workspace.Gem LeaderBoard:6: ')' expected (to close '(' at line 1) near ''

Script:

game.Players.PlayerAdded:connect(function(player)
    local folder = Instance.new("Folder",player)
    folder.Name = "leaderstats"
    local cash = Instance.new("IntValue",folder)
    cash.Name = "Gems" 
end

Any help? Thanks alot, Bob.

1 answer

You are supposed to write

end) 

On the last line to close

(function(player) 

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