So i made this script but it isnt working. please take a look:
script.Parent.Touched:connect(function(hit)
if hit.Parent.Name == "B" then
print("b touched")
script.Parent.Parent.Parent.VechicleSeat.MaxSpeed = 0
end
end)
The part B is touching it because ive seen it. Ive tried it with other stuff but it doesnt work still. I know it isnt working because its not printing anything. Ive also tried hit.Name and it still dont work. Any ideas?

4 comments
Is B a part or a model?
It is a part in a model
What is this script inside of?
A model. It is inside of workspace > a model > another model > and another model