Roblox lua language code example
Example 1: lua roblox function
function NameOfFuction()
--Your code
end
Example 2: Roblox Lerp Example in lua 2020
local part = game.Workspace.Part
local part2 = game.Workspace.Part2
for i = 0,1,.01 do
part.CFrame = part.CFrame:Lerp(part2.CFrame, .5)
end
--Script By Jub0t on Roblox & Rigby#9052 on Discord