I’m making a placing system similar to 3008 and I’m trying to lerp a cframe and it work. I looked up other posts on dev forum and non will work
code:
Model.PrimaryPart.CFrame:Lerp(CFrame.new(Pos),1)
this in a event that gets fired everytime the mouse moves
1 Like
you actually have to set it, I don’t know why, basically something like this.
script.Parent.CFrame = script.Parent.CFrame:Lerp(workspace.Part.CFrame, 1)
I was recreating your scenario so it should look something like this.
2 Likes
I’m guessing if I want it to be slower, I lower the number?
nvm I probably should have just changed the value to see myself
1 Like
The number(Alpha) is just the distance, if in my example I set it to 0.5 it would be between the end goal and the start. But for it to be slower you have to have it increase slower.
system
(system)
Closed
November 23, 2024, 9:41pm
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.