Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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
  1. 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!

2 comments

0

Thanks! This might do it, I just need to test it.

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

This discussion is preserved as it was. New answers, comments, and votes are closed.