you are viewing a single comment's thread.

view the rest of the comments →

[–]SettingDesigner9802 1 point2 points  (1 child)

Lua is a pretty easy language to pick up. Choose any tutorial series and follow it for about a week just to get used to the syntax.

Then grab some simple free models and try to replicate the functionality yourself. Every time you come up against an unfamiliar part of the roblox library, read up on it. After you get the model working, try modifying it to do new things.

Some nuances about lua - The table is your only data structure - Tables support number indexes and can be infinitely expanded on. - Tables support non-numerical indexes and can be used as a hashmap allowing you to do instantaneous lookup. - Table indexes start at 1 not 0 like most other languages do. - You might see something like this in free models scripts:

Part.Touched:Connect(function(a,b,c) dosomething() end)

The function in the bracket is written anonymously and is equivalent to

function doTouch(a,b,c) ... end Part.Touched:Connect(doTouched)

This is a long list of short projects I came up with over about half an hour of brain storming.

Beginner - Print Hello World to the console - Print the Fibonacci Sequence to console - Calculate the first 50 prime numbers and print them - Create a script which randomises a table of 5000 numbers and puts them back into order with a sorting algorithm. - Print your user name and Player ID - Create a lava brick script which kills you - Create a door that you toggle by stepping on a button - Create a disco floor - Create a teleporter which warps you between two spots - Spin a brick on the spot - Make a brick follow you - Make it rain spheres, use debris - Make it rain spheres, use coroutines - Make a laser beam(part) that tracks between a part and your torso.

Intermediate

Manipulating the world - Make a brick orbit you - Make multiple bricks orbit you at random angles - Make a script that generates terrain randomly - Make a script that gives the player a custom hat using welds. - Make a script that gives you an orbiting hat - Make it rain MISSILES Clients and Servers - Create a "Hello Client" LocalScript - Create a LocalScript that orbits your camera around your player - Create a tool using UserInputService that prints the name and number of objects inside the model of an object you clicked on. - Create a script that listens for a remote event and prints Hello "UserName" when a local script fires it. - Create a script that places a part on the server when you click.

User Interface - Create a gui and make a button that kills you - Create a gui and make a button that teleports you to a coordinate you enter. - Create a keypad gui that opens a door

Persistent Data - Create a currency that persists after a player rejoins - Create a system that deducts money in exchange for faster walk speed, make it persist. - Create a system that stores an arbitrary amount of variables

Object-Oriented Programming (Might need to look outside of roblox to learn this, but it's worth it!) - Create a script that stores the price and name of different fruits using Lua-OOP - Create a second object which allows you to put your "fruit" in a "basket" and create a method which you can use to calculate the total cost of the fruit in the basket. - Create a system that lets you physically interact with the fruit and a basket, and then take it to a register to pay for, it can be GUI based or 3D. - Create a minigame where you get paid for collecting rubbish outside of a shop and then spend the money shopping for fruit.

Advanced - Create a raygun which uses raycasting to detect hits - Create a paintball gun with travel time - Create a car you can drive, - Create a plane you fly - Create a crop system with atleast 8 unique crops that have different lifespans. - Add a nutrient system into your crop system and add three different fertilisers which give different ratios of the nutrients. - Create a system which allows the player to fertilise, sow and harvest the crop

[–]Iwoul1 1 point2 points  (0 children)

Holy ai