Tomroblox54321’s Lerping Module
Tomroblox54321’s Lerping Module is an easy, free to use module that I want to update frequently!
Lerp or Linear Interpolation is an object is changing by color or whatever smoothly, so when lerping a part from white to red first it will be white, then pink and then red.
Just like TweenService!
This module contains 4 base functions right now. This includes CFrame, Position, Orientation and Color.
Code Example for CFrame :
local Module = require(game:GetService("ServerScriptService"):WaitForChild("LerpModule By Tomroblox54321"))
Module:SmoothCFrameLerp(game.Workspace.MovingPart, game.Workspace.EndPart.CFrame)
Code Example for Position :
local Module = require(game:GetService("ServerScriptService"):WaitForChild("LerpModule By Tomroblox54321"))
Module:SmoothPositionLerp(game.Workspace.MovingPart, game.Workspace.EndPart.Position)
Code Example for Orientation :
local Module = require(game:GetService("ServerScriptService"):WaitForChild("LerpModule By Tomroblox54321"))
Module:SmoothOrientationLerp(game.Workspace.MovingPart, game.Workspace.EndPart.CFrame)
Code Example for Color Lerping :
local Module = require(game:GetService("ServerScriptService"):WaitForChild("LerpModule By Tomroblox54321"))
Module:SmoothColorLerp(game.Workspace.MovingPart, game.Workspace.EndPart.Color)
Video Links For All Of The Functions In The Module:
Orientation
CFrame
Position
Color
Thanks for reading and hope you enjoy!
Link to the Module : Tomroblox54321’s Lerping Module