Help With ADS Script Error

Im trying to make an ADS script, but Im still new too scripting. I don’t understand why its not working. so far this is what I have local script in startercharacterscripts

local mouse = game.Players.LocalPlayer:GetMouse()
local plr = game.Players.LocalPlayer
local cam = workspace.CurrentCamera
local tweenService = game:GetService("TweenService")


game:GetService("UserInputService").InputBegan:Connect(function(input, gameprocessedevent)
	if input.KeyCode ==  Enum.KeyCode.Q then
        local aimpart = game.StarterPack.Gun.AimPart
		local tweenInfo = TweenInfo.new(
			0.7, 
			Enum.EasingStyle.Linear, 
			Enum.EasingDirection.Out, 
			0, 
			false, 
			0 
		)

		local properties = {
			Position = aimpart.CFrame
		}

		local tween = tweenService:Create(cam, tweenInfo, properties)

		tween:Play()
		
		
		
		game:GetService("UserInputService").InputEnded:Connect(function()
			wait()
			local tweenIfo = TweenInfo.new(
				0.7,
				Enum.EasingStyle.Linear,
				Enum.EasingDirection.Out, 
				0, 
				false,
				0 )

			local propsmoveback = {
				Position = script.Parent:FindFirstChild("Head").Position
			}

			local tween2 = tweenService:Create(cam, tweenIfo, propsmoveback)

			tween2:Play()
		end)
	end
end)

its giving me this error

Stack End - Studio
09:43:12.748 TweenService:Create no property named ‘Position’ for object ‘Camera’ - Client - AdsScript:23
09:43:12.748 Stack Begin - Studio
09:43:12.749 Script ‘Workspace.refightx.AdsScript’, Line 23 - Studio - AdsScript:23
09:43:12.749 Stack End

any help is hugely appreciated thanks in advance

1 Like

You want to manipulate the camera’s CFrame, not its position.

1 Like

I have tried doing cam.CFrame but it didn’t work what should I change??

1 Like

If you want to directly manipulate the camera’s CFrame you have to change its camera type to Scriptable. I’m not sure exactly what it is because im replying from my phone but check the documentation for Camera.

1 Like

tysm ill go do that right now hehe

1 Like

if that didn’t work, you can always try to use a variable for the CFrameValue of the camera

1 Like