Can someone help me with this, I've tried using a remote event, and that didn't work. Then I tried the script you see below (I actually thought it would work) but it didn't work! Is anyone able to help me with this?

local tweenService = game:GetService("TweenService")
local part = game.Workspace.CameraPart

local tweeningInformation = TweenInfo.new(

5,
Enum.EasingStyle.Quad,
Enum.EasingDirection.In,
0,
false
)

local partProperties = {
	
	Position = Vector3.new(-54.33,7,-0.02);
	Orientation = Vector3.new(0,-90,0)

}

script.Parent.MouseButton1Click:Connect(function()
	local Tween = tweenService:Create(part,tweeningInformation,partProperties)
        Tween:Play()
end)

1 comment

0

You can use CFrame to define both position and rotation.