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