Door triangle tram

Hello,

I need help with scripting about door triangle for trams, I can’t see any video for that tutorial.

1 Like

I don’t quite understand what you mean, do you mind elaborating? If you mean a simple door, you can turn off Collisions.

2 Likes

Can you give me a reference image and describe what exactly you want?

You know the doors of tram?

2 Likes

Ohh, I see. I’m not sure how to script that, really, as I only know the basics of scripting. Like I said before, I think the best advice I can give you is model it, and turn off collisions through properties, so you can walk through it. Then just add a clear barrier on the sides of the track, so people don’t fall out.

I know, that easy way collisions off like considering doors are open. xD

What about sliding door?

Hmm, That could take a lot of work, of which I don’t know the steps. Try looking up how to script collisions off on queue, if possible? Again, I only know basic scripting for jobs I commonly do.

1 Like

You should be able to set the CanCollide property of the door to false when tweening it in the case of a sliding door, that way it doesn’t hinder the player if something goes wrong with the tweening/the door isn’t open all the way.

1 Like

Or, could use transparency. As doors open collisions on, doors closed collisions off and transparency 1 so people can go trough of it. :stuck_out_tongue: