Tween stays same even when model rotated?

So i made an obby that has tweens within kill bricks, but when stage is rotated 180 degrees, even with the killbricks rotated as well, the kill bricks remain tweening the other way and not in their corresponding way, could i get any help with this :+1:

–CORRECT WAY ( tween towards the obby platforms )

– INCORRECT WAY ( they tween away from the obby platforms ) ALSO MODEL ( the stage ) 180 DEGREES ROTATED!

try making the positions they tween to being 2 anchored and uncollidable parts so it can tween to wherever it needs to no matter the rotation

so set the cframe to anchored and uncollidable? or make the parts that

point1 = blahblah.point1.CFrame
point2 = blahblah.point2.CFrame

tween between these 2 positions

1 Like

oh no, i dont have 2 points, i just have the cframe property being changed within the properties for the tween

local killBrick = script.Parent

local tweenInfo = TweenInfo.new(
	3, -- number of seconds to complete
	Enum.EasingStyle.Cubic, -- how it moves
	Enum.EasingDirection.InOut, -- how it moves too 
	-1, -- how may times it repeats
	true, -- reverse too aka go back to start
	0 -- seconds before starting
)

local properties = {
	["CFrame"] = killBrick.CFrame + Vector3.new(-8.5, 0, 20)
}

local tween = TweenService:Create(killBrick, tweenInfo, properties)

tween:Play()

that’s probably why it’s messing up then

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.