I am honestly confused as to why this is happening, all I am doing is tweening the camera, and it is tweening fine, but when it reaches the end, it flies off randomly. It was working fine a few days ago, but now it suddenly does this.

https://my.mixtape.moe/ahtxjb.gif

This is when I try to tween it back.

https://my.mixtape.moe/mplgig.gif

I have checked my CFrame calculations and they work fine when I set a part's CFrame there, but for some reason, this happens when I tween the camera.

-- First Gif
local tween = TweenService:Create(
	camera,
	TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
	{
		CFrame = CFrame.new(closestPart.CFrame.p + Vector3.new(0,15,0),closestPart.CFrame.p),
		Focus = closestPart.CFrame
	}
)
 
tween:Play()

-- Second Gif
local tween = TweenService:Create(
	camera,
	TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
	{
		CFrame = CFrame.new(closestPart.CFrame.p + Vector3.new(0,25,0),closestPart.CFrame.p),
		Focus = closestPart.CFrame
	}
)
 
tween:Play()

3 comments

2

Reallyyy don't want to click on those links. Might be safe but yea...

1

This could be a problem with Roblox's recent player script update. See the devforums on recent updates.

0

Wow! thanks, that was exactly the problem!!!