-- Homework 31, problem 1 -- sample answers. -- -- (The two snippets are unchanged. The answers are inside the -- multi-line comment at the bottom.) local function greet(name) print("Hello, " .. name) end io.write("Your name: ") local input = io.read() greet(input) --[[ Sample differences (any three or more): 1. The Lua version reads input from the keyboard with io.read(). The Luau version receives the name from a Roblox event (Players.PlayerAdded). 2. The Lua version calls greet(input) directly. The Luau version passes greet into :Connect, so the engine calls it later when the event fires -- once per joining player. 3. The Luau version uses game:GetService("Players") to find the Players service. Standalone Lua has no `game` and no services. 4. The Luau version reads `player.Name` -- a property of an Instance. Standalone Lua has no Instances. 5. print() in plain Lua writes to the terminal. In Roblox it writes to the Output panel inside Studio. ]]