How To Make Part Face Tween Direction?

I want the part to face where its tweening to

heres what it looks like
https://gyazo.com/46d3681bf586f4ac987d79870e4c7a95

i tried looking up my problem but i wasnt able to find any thing that could help

its just a simple tween
it just uses ray casting to get the mouse position and tween it from there

thx in advance :smiley:

1 Like

You could tween the CFrame of the part, because CFrame includes position and orientation

tried it out but now it faces where my camera face

Can we see the script that you used?

Why don’t you just use CFrame.lookAt() to look at the position it’s tweening?

local part = game:GetService("ReplicatedStorage").FireBolt:Clone()
part.Parent = workspace.DebrisFolder

local goal = {}
goal.CFrame = CFrame.new(mpos)

local tweenInfo = TweenInfo.new(1)

local tween = TweenService:Create(part, tweenInfo, goal)

tween:Play()

heres the tween script
mpos is the mouse position

goal.CFrame = CFrame.lookAt(mpos)

i tried it now it just gave me an error i tried it with
mouse.hit and mouse.hit.p

Goal.CFrame = mpos.CFrame

This might work, if I does not I don’t know what to do

image
it didnt work but thx for trying to help i appreciate it :smiley: