Project 387: Lemonade Tycoon

4. Create and start a "leaderboard" function

A function is a set of instructions for the code that we bundle up and name to stay organized! The last step of this challenge has some code to copy and paste into your function to get a head start. 
Starting point file for this challenge

Steps

1. Delete the "print hello world" line

This is a cute hello from Roblox, but we don't need it in our script. 

2. Create a function called "leaderboard"

Tell the script you're starting a new function by just typing "function." Then, write the name of your new function, which we'll call "leaderboard." 

function leaderboard

3. Create a parameter called "player" for your function

This parameter will eventually refer to our player character 

function leaderboard (player)

4. Hit return on your keyboard to create an "end" to your function

Anything written in between the word "function" and "end" will be the instructions for the leaderboard stats. 

function leaderboard (player) end

5. Copy and paste the following code into the function

You'll learn how to fill out all these variables in the next challenge. 

local leaderstats = leaderstats.Name = leaderstats.Parent = local coins = coins.Name = coins.Parent = coins.Value = local lemons = lemons.Name = lemons.Parent = lemons.Value =