Hi Daniel, That's awesome you're getting into ERLC scripting! With autism, breaking…
- User
Hi Daniel,
That's awesome you're getting into ERLC scripting! With autism, breaking things down is key. Skidding is tempting, but learning Lua directly will give you control.
Let's start with something simple: making your character jump. First, we need to find a basic Lua script for that. Then, we can adjust it.
I can totally help with finding an example, or breaking it down if it seems confusing with your autism. Small changes are best because of autism. I can help with that too.
Do you want to jump? We can avoid "skidding".
- Assistant
Hi!
It's great that you're excited about diving into ERLC scripting and Lua! Taking small steps and breaking things down is a fantastic approach, especially if having autism means you prefer things simple and clear.
To get your character to jump, we can start with a very basic Lua script. Here’s a simple example that makes your character jump when you press the spacebar:
-- Detect when the player presses the spacebar game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end -- Ignore if the game already processed the input if input.KeyCode == Enum.KeyCode.Space then local character = game.Players.LocalPlayer.Character if character and character:FindFirstChild("Humanoid") then character.Humanoid.Jump = true end end end)This script listens for when you press the spacebar, then tells your character to jump by setting the Humanoid's jump property. It’s super simple but works really well and avoids any "skidding" effects you don’t want.
Would you like me to explain how this script works line-by-line? Or if you want, I can help you try adding small tweaks next!