I’m struggling to tween the rotation of a model without using primary part. So how would I do this?
tween:Create(clone, TweenInfo.new(0.75, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {Orientation = clone:PivotTo(CFrame.Angles(0, 180, 0))}):Play()
I tried this but then it just breaks this
local cam = Instance.new("Camera")
cam.Parent = viewport
cam.CFrame = CFrame.new(Vector3.new(13.056, -13.916, -183.302)) -- move the camera 3 studs in front of da pet, and make it look at the pet
cam.Focus = CFrame.new(Vector3.new(13.056, -13.916, -183.302))
cam.CFrame *= CFrame.Angles(math.rad(-4.638), math.rad(90.179), 0)
cam.Focus *= CFrame.Angles(math.rad(-4.638), math.rad(90.179), 0)
viewport.CurrentCamera = cam
ray:TweenSize(UDim2.new(0.5, 0, 0.5, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.75)
viewport:TweenSize(UDim2.new(1, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.75)
task.wait(3)
ray:TweenSize(UDim2.new(0.1, 0, 0.1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.75)
viewport:TweenSize(UDim2.new(0.1, 0, 0.1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.75)
task.wait(0.5)
clone:Destroy()
cam:Destroy()
ray.Visible = false
debounce = false