Roblox Scripting – practical tasks

Here are practical tasks that an adept of our Roblox Course should be able to code in the Roblox environment. The tasks are in order from the easiest to more complex, and some of them are related to the previous ones.

Task 1: Create a script that prints “Hello, world!” to the output window when the game starts.

Task 2: Create a script that changes the color of a part when it is clicked by the player.

Task 3: Create a script that makes a part move back and forth along the x-axis using a loop.

Task 4: Create a script that makes a part rotate around its center using math functions.

Task 5: Create a script that spawns a new part at a random position every second using a timer.

Task 6: Create a script that makes a part follow the mouse cursor using user input events.

Task 7: Create a script that makes a part bounce off the walls and floor using physics and collision detection.

Task 8: Create a script that makes a part emit particles when it is touched by player using touch events.

Task 9: Create a script that makes a part play a sound when it is clicked by the player using sound objects.

Task 10: Create a script that makes a part change its shape and size using CFrame and Vector3 properties.

Task 11: Create a script that makes a part display a message above it using GUI objects.

Task 12: Create a script that makes a part explode when it is touched by player

Task 13: Create a script that makes a part teleport to another location when it is clicked by the player using teleportation service.

Task 14: Create a script that allows the player to spawn a new part with random color by pressing a specified key using proximity prompts

Task 15: Create a script that makes a part change its appearance based on the time of day using lighting service and time functions.

Task 16: Create a script that makes a GUI interact with an external API using HTTP service and JSON encoding/decoding.

Task 17: Create a script that makes a part apply decal from workspace

Task 18: Create a script that makes a part generate procedural terrain using perlin noise and voxel models.

Final Task: Create a script that makes a part implement complex game logic divided into following sub-tasks:

Task 19.1 Define Variables and Data Types for health and scores:

Create variables to store information related to scoring, health, and inventory. Use appropriate data types (such as integers, strings, or booleans) to represent different aspects of the game.

Task 19.2 Implement Scoring Logic:

Write a script that increments the player’s score based on specific actions (e.g., collecting items, defeating enemies, completing objectives).

Task 19.3 Manage Health System:

Design a health system using variables to track the player’s health. Implement logic for decreasing health (e.g., when the player takes damage) and handling game over conditions (e.g., when health reaches zero).

Task 19.4 Create Inventory System:

Develop an inventory system using tables (arrays) to store items the player collects. Each item can be represented by a unique identifier (e.g., item names or IDs). Implement functions to add, remove, or use items from the inventory.

Task 19.5 Handle Game Events:

Use event listeners (such as Touched or Clicked) to trigger specific actions in response to player interactions. For example, when the player picks up an item, update the inventory and adjust the game state accordingly.