In which I have an object attached to the camera so it makes a custom holding system. My problem is whenever I move the camera the object goes to the exact place everytime, I want there to be a delay. For example if I quickly turn right I want the object to catch up to the exact place like a half a second later. How could I do this?
I’m no scripter, but I beleive if you put a wait function in there then it should make there be a delay.
local gg = workspace.gg
local camera = workspace.CurrentCamera
part.Anchored = true
part.CanCollide = false
camera.Changed:connect(function()
wait (however long you want it to wait)
gg.CFrame=camera.CFrame*CFrame.new(0,-0.43,-1.5)
end)
I beleive there might work? Like I siad I’m no scripter and I’m not sure if this would help or not, I’m pretty sure the wait function would be the way to go but where you put it and what not I’m not exactly sure.
If you’d like to have a delay I’d recommend adding a wait like guy above said or TweenService:Create to move part to new position smoothly. This will automatically be slower due to a object animation. I understood you problem like that if I am wrong let me know. I hope this helps.
Wow. You just read my mind, I did this like right after I posted this question but it turned out that if you move it, it moves very blocky and not smooth. I’m just currently looking for ways to improve the smoothness without having to just move the camera very slowly.