Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

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

Log in to vote
0
Answered by
Lolnox 47
6 years ago

You are supposed to write

end) 

On the last line to close

(function(player) 
Ad

Answer this question