How can I interconnect function according to the touch?
Hi, I'm messed up I've changed everything to if I have a new thread, I have two functions in one that plays the car and another stops and a debounce function until everything is fine, but when I try to change the function, start with the stop it is touching the ground, and the movement of the car comes out, I know it will be something simple, but I do not hit the key. Thank you.
1 | ground.Touched:Connect(debounce( function (touch) |
2 | if touch.Parent ~ = car then |
5 | elseif touch.Parent = = car then |