Everytime I run the script and test it, it gives me the error "attempt to call a nil value". Multiple attempts to fix it but nothings working. :/
Button = workspace.TRAIN.Button
Button.Touched:Connect(OnTouch)
function OnTouch()
wait(5)
workspace.TRAIN.Engine.Locomotive.Drive.Throttle = 1
end
ParkButton = workspace.TrainParkTrigger
ParkButton.Touched:Connect(Touched)
function Touched()
workspace.TRAIN.Engine.Locomotive.Drive.Throttle = 0
end

6 comments
What number does the error say?
Just literally "Attempt to call a nil value"
Are you able to send an image of the full error?
Yea - how?
Press Win+Shift+S, and try to take the image and post it as a link.
we cant really help you without more info about it ;-;