Hello!
So I am currently trying to make a simple FPS game to practice development and ive came into a issue. Using the tutorial that ive used to assist me they use :Lerp to change the position of the gun. I found that lerp works but not very well, its a bit buggy and does not always play correctly. The goal is to convert to tweens.
When the player begins to sprint:
sprintcf = sprintcf:Lerp(WeaponData.SprintCFrame,0.2)
WeaponData.SprintCFrame referring to the module script that has
module.SprintCFrame = CFrame.new(-0.5,-0.25,0) * CFrame.Angles(0,math.rad(55), 0)
For converting this into a tween ive come into an issue.
local TI = TweenInfo.new(0.2)
local tween = Tween:Create(sprintcf, TI, WeaponData.SprintCFrame)
tween:Play()
Ive tried some different variations of this and none seem to work. Could I get some help?
Thanks,
- Alex