How to make car with A-Chassis anchor when park?

I am making a car park when its anchor and unanchor when the car not in park.

22

6 Likes

Add Part Called MainPart to your car body and add this script:

wait(.2)
if child.Name ~= "Rev" then
car.Body.MainPart.Anchored = true
end

to the end of Initialize script of you car (before “end)”)
guide

9 Likes

The only problem I have now is. When player leaves seats and drives car again the gui for the vecical wont show.

1 Like

Sorry I forgot that part, add this code to script (you can see in photo)

car.Body.MainPart.Anchored = false

5 Likes

Could you explain a bit more about why this works (for others that will read this post)?

So basically, in the first part of my post when rev destroyed which means when car sound removed it anchors the vehicle
and in the other post, it unanchors vehicle before giving GUI

1 Like

Sorry for another Confucian but now I see my GUI when in vehicle seat everything is fine but I can’t move forward or reverse. I could be my A-Chassis.

But that unanchors the part - it doesn’t make it non-CanCollide.

you can set cancollide to false when creating mainpart it doesn’t have to be cancollide true

1 Like

I never experienced something like that my vehicle moving normally when I sit again so I don’t know but I can help from discord if you want
Barocena#0001

1 Like

Because this don’t looks right

asd

Because you have to add this code to line 534 of initialize script check the photo I send

(we fixed at discord if you encounter the same problem, check your inspare plugins if there is some script that adds/removes sound to seat than add to if statement)

Example

if child.Name ~= "Rev" and child.Name ~= "Engine2" and child.Name ~= "Engine"  then 
1 Like

That’s what I did.

Yey