I have a door, which is fit into a wall. I have a script for whenever a player touches the door, it opens / closes. I'm using TweenService
so the door can move from one position to the other. The whole door is one part, so there is nothing else that needs to be tweened.
The main issue i'm having is once a player touches the door, the door moves all the way to the top of the house, then tweens. I have no idea why this is happening, any solutions?
Part of the script:
local TweenService = game:GetService('TweenService') local OpenGoal = {} OpenGoal.Orientation = Vector3.new(0,100,0) local OpenTween = TweenService:Create(Door,Info,OpenGoal) OpenTween:Play()
I've already tried setting CanCollide to false and true but it didn't work.
EDIT:
I solved this by simply using CFrame.fromOrientation()
instead of Part.Orientation. Appearantly only CFrame allows colliding.