local FireBall = Meshes:WaitForChild("FireBall"):Clone() local RootP = FireBall.Root FireBall.PrimaryPart = RootP RootP.CFrame = Humrp.CFrame * CFrame.new(0,0,-4) FireBall.Parent = clonedMeshes local FFireI = TweenInfo.new(0.5) local FFireT = TweenService:Create(RootP, FFireI, {CFrame = mousehit}) FFireT:Play()
So I wrote this code with the help of this post https://devforum.roblox.com/t/introduction-to-tweening-models/315253 because tweening models were kinda confusing for me.
What I want to achieve is that when I press "F" I want the model (so I have to tween the root) to go towards "HumanoidRootPart.CFrame.LookVector" but when I insert it into the table of Tween I get this error
" TweenService:Create property named 'CFrame' cannot be tweened due to type mismatch (property is a 'CoordinateFrame', but given type is 'Vector3')"
so I replaced it for now with mouse.hit (sent from a local script to server script that's why its called mousehit) and works as expected.
So how can I do the LookVector part?