Hi, I am very new to Roblox and coding I need help with one of my first codes. My code:
script.Parent.Touched:connect(function(hit) local Humanoid = hit.Parent:FindFirstChild("Humaoid") Humanoid.WalkSpeed = 50 end)
I want to make a speed run so I made this code for Padboost but it is not working,
it says:
Workspace.Part.Script:3: attempt to index local 'Humanoid' (a nil value)
Can you help me, please?
Thank you,
GWA001

1 comment
Check if the humanoid exists first by using an if statement.