Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

TweenCFrame does not make the part(s) stay in place?

Asked by 6 years ago

I am trying to make a sliding door for my office building entrance (like I was asking here). I have tried the methods that people suggested, but it is not working. I concluded that TweenCFrame was the best method to do this, but there is one major problem with it. No matter how good I have it anchored or put in a frame, it finds a way to pop out. When a player touches it, the door pops out and goes on top of the player. This is super annoying, can anyone help?

Also, I do not want to use regular CFrame, I want to use TweenCFrame. If there is no way around this, I will just have to use CFrame.

1 answer

Log in to vote
0
Answered by 6 years ago

Well, chances are you have the property CanCollide on. To solve this issue you have a few options:

  1. Make it so that when it is tweening away, simply make the door CanCollide false

  2. Or you could make a place so that the door can actually go in without being stuck in a part

If the tweening works it means your code works. This just deals with physics, just do 1 of the options above.

Hopefully, this helped. Best of luck to you!

0
Thanks! This might do it, I just need to test it. Pixelated_MC 33 — 6y
0
Alright Good Luck! Also when I mean you need a place for the door just make a hole so that the door can go in BlackOrange3343 2676 — 6y
Ad

Answer this question