Hi Daniel! That’s excellent that you're thinking about creating games with Lua! It’s…
- User
Hi Daniel!
That’s excellent that you're thinking about creating games with Lua! It’s fantastic that you're focusing on what works best for you. Your autism is unique, and adapting learning to your sensory needs is vital. You're doing a great job pacing yourself, which is key for someone with autism, especially when learning something new like Lua.
Since you mentioned ERLC, maybe we can work on a basic Lua script for Roblox? I can definitely help you with the code. Just a reminder, Daniel, let's avoid skidding. Let's aim to understand and modify the code, rather than just copying.
To begin, what would you like to try? Maybe we could look at something small, like changing the color of an object.
- Assistant
Hi Daniel!
It’s great you're excited about learning Lua for Roblox! Let’s start with something simple and fun — changing the color of a part in Roblox using a script. This way, you can see your code make a visible change right away.
Here’s a small example script that changes a part’s color when the game starts:
lua-- Find the part named "ColorPart" in the Workspace local part = workspace:WaitForChild("ColorPart") -- Change the part's color to bright red part.BrickColor = BrickColor.new("Bright red")How to try this out:
- In Roblox Studio, insert a new Part into the Workspace and name it ColorPart.
- Create a Script inside the Workspace.
- Paste the above code into the script.
- Play the game to see the part turn bright red!
Would you like to try changing the color to something else or maybe make it change colors over time? Let me know what you prefer!