I want to be able to run a tween that updates its property while it’s running. The problem I’m running into is that tween properties only take values in once.
My code is like this:
local InProp = {CFrame = CCam.CFrame:ToWorldSpace(AdsCF)}
Basically the property that I’m setting is that it takes the camera’s current CFrame and moves it over there with an offset. The problem with it is that the camera is always changing so if I look around or move while the tween is happening, the viewmodel stays in place. I understand that I can use animations but I would need to do that in blender and I’m not very experienced in it so I assumed that tweening would be better.
robloxapp-20210329-1036581.wmv (3.2 MB)
https://streamable.com/3n08un
Maybe try to :Lerp
the CFrame instead of tweening it? What code do you have so far?
I’ll try to lerp it and let you know how it goes.
1 Like
The 3rd parameter of creating a tween expects a dictionary of properties to change
1 Like
I’m just used to putting tween properties in an array even though there’s only one property that I’m changing.
1 Like
Lerping does actually work but I’m running into two problems.
- If you stop right-clicking halfway through the Lerp it does this:
robloxapp-20210329-1106304.wmv (3.0 MB)
https://streamable.com/yak649
(if you can’t tell what’s going on, the viewmodel is glitching out)
- I want there to be various speeds for aiming in and lerping only allows one speed.
1 Like
My bad for putting so many downloads, I’ll put it on a website right now.
1 Like