Ok so I’m working on a knife throw projectile and the tween keeps rotating. How can I make it stop rotating and just go straight?
heres my code and a visual of the issue
local tweeninfo = TweenInfo.new(
3, -- length
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0, --repeat how many times?
false, -- should it repeat?
0 -- delay between each tween.
)
local throwdagger = SS.weapons.ThrowDagger:Clone()
throwdagger.Parent = game.Workspace
throwdagger:SetPrimaryPartCFrame(char.HumanoidRootPart.CFrame)
throwdagger.Handle.CFrame = char["HumanoidRootPart"].CFrame * CFrame.new(0,-1,-0.25)
throwdagger.Handle.CFrame = throwdagger.Handle.CFrame * CFrame.Angles(0,math.rad(-90),0)
local tweenprops = {CFrame = CFrame.new(mouse.Position) * CFrame.Angles(0,math.rad(-90),0)}
local tween = TweenService:Create(throwdagger.Handle,tweeninfo,tweenprops)
tween:Play()
https://gyazo.com/07ec494ed2eea769ea2322147fc2a9af
btw mouse = the players mouse.Hit