lord_lol
(toothpaste)
October 1, 2021, 1:54pm
1
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
1 Like
You could tween the CFrame of the part, because CFrame includes position and orientation
lord_lol
(toothpaste)
October 1, 2021, 2:03pm
3
tried it out but now it faces where my camera face
Can we see the script that you used?
Sarchyx
(Sarchyx)
October 1, 2021, 2:04pm
5
Why don’t you just use CFrame.lookAt() to look at the position it’s tweening?
lord_lol
(toothpaste)
October 1, 2021, 2:08pm
6
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)
lord_lol
(toothpaste)
October 1, 2021, 2:17pm
8
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
lord_lol
(toothpaste)
October 1, 2021, 2:20pm
10
it didnt work but thx for trying to help i appreciate it