This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ServerScriptService/Core/Trade (DO NOT TOUCH) | |
| local HttpService = game:GetService("HttpService") | |
| local Players = game:GetService("Players") | |
| local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
| local Workspace = game:GetService("Workspace") | |
| local Money = require(ReplicatedStorage:WaitForChild("Money")) | |
| local Trade = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ColorBlock Main Controller | |
| -- Handles the entire Color Block minigame system | |
| -- including countdown, block generation, player validation, and reward flow | |
| -- Demonstrates OOP, coroutines, events, raycasting, attributes, physics, CFrame math | |
| local Players = game:GetService("Players") -- service handle for player lifecycle and lookups | |
| local RunService = game:GetService("RunService") -- per frame/heartbeat timing and scheduling | |
| local ReplicatedStorage = game:GetService("ReplicatedStorage") -- shared container for modules/remotes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ColorBlock Main Controller | |
| -- Handles the entire Color Block minigame system | |
| -- including countdown, block generation, player validation, and reward flow | |
| -- Demonstrates OOP, coroutines, events, raycasting, attributes, physics, CFrame math | |
| local Players = game:GetService("Players") -- service handle for player lifecycle and lookups | |
| local RunService = game:GetService("RunService") -- per frame/heartbeat timing and scheduling | |
| local ReplicatedStorage = game:GetService("ReplicatedStorage") -- shared container for modules/remotes |