Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Roblox Create A Crop Farming System
Highest Rated
Rating: 4.7 out of 5(36 ratings)
348 students

Roblox Create A Crop Farming System

An intermediate coding course that expands on basic coding concepts taught in my beginner and intermediate courses.
Created byBrendon Ross
Last updated 2/2023
English

What you'll learn

  • Import the project model, and organise the project ready to start.
  • Use the changed event to update the GUI whenever the gold value changes.
  • Create a functions module script, and add a function to display feedback to the player.
  • Change the colour of the plots as they progress through their stages of growth using a variable called State.
  • Code the Rake, Bucket, and Seed Bag tools to use on the farm and grow crops.
  • Create a sunflower, pumpkin and corn seed to grow on the farm.
  • Add all the details about your crops to the seed module script.
  • Create conditional statements that guide the player to equip and use the right tools to get the job done.
  • Allow the player to collect water from the well to water the crops on the farm.
  • Create a special GUI that allows you to see your variables change during the game, and adjusts itself as you increase or decrease the number of variables in the
  • Create a start game script that gives each player their own farm.
  • Begin to develop a GUI that will hover above the ground showing the player which seeds they can plant, and allow them to click on a button to plant the seed.
  • Create a button for each seed that the player has in their inventory.
  • Write some code to get all the info about a seed from the seed dictionary and place it into the plot the seed is being planted in.
  • Spawn the correct plant and assign it to the plot ready to grow and harvest.
  • Use ray casting to change the colour of anything you click on in the project.
  • Use ray cast parameters to change the behaviour of the plot as we move it around in the workspace.
  • Stop players colliding with other players, and plots colliding with players allowing for smoother game play.
  • Let your players buy new seeds when they have made enough gold.
  • Test the game using 2 farm models and creating a 2 player test server in Roblox Studio.
  • Create a data store for each player using the data module you create.
  • Restore player saved data back to the game when they return.
  • Make adjustments to the user input script that will create mobile buttons for players using touch enabled devices allowing them to play the game on phones, and
  • Create a module script and an animation controller script to handle all the animations you might use in your project.
  • Create an animation of the player collecting water from the well using the bucket, and also watering the plants from the bucket.
  • Create an animation of the player jumping in the air when harvesting their crops.

Course content

6 sections53 lectures10h 22m total length
  • Organise Project13:31

    Import the project model, and organise the project ready to start.

  • Show Gold In The GUI13:18

    Use the changed event to update the GUI whenever the gold value changes.

  • Player Head GUI And Feedback7:38

    Create a functions module script, and add a function to display feedback to the player.

  • Starting Plot Script,Colours, And Plot State21:18

    Change the colour of the plots as they progress through their stages of growth using a variable called State.

  • Tools Basic Code And Variables9:33

    Code the Rake, Bucket, and Seed Bag tools to use on the farm and grow crops.

  • Code The Seeds And Variables11:14

    Create a sunflower, pumpkin and corn seed to grow on the farm.

  • Create The Seed Dictionary9:32

    Add all the details about your crops to the seed module script.

  • Update The Plot Script12:23

    Create conditional statements that guide the player to equip and use the right tools to get the job done.

  • Code The Well And Variables17:34

    Allow the player to collect water from the well to water the crops on the farm.

Requirements

  • Complete course 1 - Learn How To Code Games In Roblox Studio
  • Complete course 2 - Roblox Intermediate Coding Course
  • A file decompression tool such as WinZip (Windows) or Archive (Mac)
  • A Roblox account and character
  • Internet connection

Description

This course provides you with all the basic models, tools, and GUIs needed. It focuses primarily on coding and gives students an expandable and adaptable project they can use in their game development.


Some central concepts taught are

  • using module scripts in different ways

  • Using co-routines to pause and resume plant growth

  • creating and using animations

  • saving part positions and attributes to the data store.

  • ray casting to move and place parts

  • creating dictionaries of data that can be referred to from other scripts

  • coding and using surface, screen, and billboard GUI's


By the end of the project, students should have a farm to which they can add new crops and expand the farm to make it bigger.


As some coding concepts are complex, students should complete the following courses.


  • Learn To Code Games In Roblox Studio - Beginner

  • Roblox Intermediate Coding Course - Intermediate


The course structure has been designed to allow a working example to be tested at the end of most lessons. 


Many concepts taught in the course can be re-purposed and used in entirely different projects. 

To get the most out of the course, students should complete all videos in sequential order for sections one to five. The sixth section about animation is optional but does add a great finishing touch to the project.

Who this course is for:

  • Intermediate Roblox Coders
  • Roblox Developers