Advanced Roblox Scripting Tutorial #12 - Lerp / Lerping (Beginner to Pro 2019)

preview_player
Показать описание
Advanced Roblox Scripting Tutorial #12 - Lerp / Lerping (Beginner to Pro 2019)

Hey guys! welcome back to a brand new tutorial and in today's tutorial I'm going to be teaching you about lerping / lerp in roblox studio. It's a pretty useful function similar to tweening and tween service. I figured you'll probably see it one day and we might use it so I thought I'd teach it to you. Anyways make sure you watch to the end of this one because I have some exciting announcements to make. Anyways enjoy! :D

--Join my Discord Server to learn and meet other developers!--

Link to Beginner's Tutorial Series:



--What is this series about and who is it for?

So this series is meant for people who really want to learn exactly how to script, if that is you then I promise by the time you watch this whole series you will know exactly how to script on roblox. Anyways be sure to subscribe to see whenever I release a new tutorial and I will see you guys in the next one. Peace!
Рекомендации по теме
Комментарии
Автор

Every time you start the tutorial and see parts on the ground you know it’s gonna be a good tutorial

iceyberg
Автор

My guy literally just taught me everything i need to make the main part of my game lol

nikhilk
Автор

I think from now on, I'm going to try and comment something for every tutorial I watch from you. Thank you for doing this for the community. It helps people every day to try and learn how to script. We all absolutely appreciate it!

galacticquasaur
Автор

TweenService is better suited for more complex animations that involve multiple properties and require precise timing, while lerping is better suited for simple animations, such as moving an object from one point to another.

ksenon
Автор

Vid ideas:
Raycasting
Body Gyro
More Math functions
Datastore and datastore2

dragonmaster
Автор

This is what I got from searching up what the difference between Tweening and Lerping is.
"Tweening is good for animations such as opening a door without physics. Lerping is good for having something constantly animate to a part or place, such as the camera hovering over the player."

Now, you kinda get how it works.

Jetster
Автор

Lerp is very useful in making specific builds like wheel chair. In a wheel chair you put the seat in the center but you dont know what is the center so you lerp and now you will know the center so now you copy the position of the part you lerped and paste it into the seat's position.

JavierEspinosaYT
Автор

Lerping may lag the server, so tweening Is more useful in terms of not a laggy movement, etc.

insertname
Автор

Note: parts with welds that are not moving along with it cannot lerp.

bobbysmith
Автор

LERP = Linear Interpolation
(Linear intERPolation)

xboydubose
Автор

This is exactly what I was looking for I hope you Keep these tutorials going because with your teaching and what I have learned from college you may have me working from home soon and trust me if that happens I will thank you and repay you what I can for all the hard work you have put into these tutorials thank you for being a teacher. I have subbed to you already and liked most of the videos you have made and binge watched your tutorials like a good show on hulu

alfredorourke
Автор

Thanks for the tutorial! Really informative keep up the good content on your channel.

alexsports
Автор

I will learn you all this in 1 min!. So lerping is basicly a more laggier version of TweenService which can be used to move parts instead of changing its property smoothly. A script: local Part1 = workspace.Part1
local Part2 = workspace.Part2

for i = 0, 1, .01 do
Part1.CFrame = Part1.CFrame:Lerp(Part2.CFrame, i)
wait()
end

soollz
Автор

Through this whole journey i feel like your my brother or tutor and there is still A LOT more to go by then you'll be my dad lol

vennyyydev
Автор

Use lerping for the Linear setting that you use when you but use tweens for more work, you get more settings and a better result. I hope I helped :):):)

Ian_Gamer_NFL
Автор

Here's how I memorise for loops
for i = beginning, end, how much it goes up and down by

EpicLionBal
Автор

Your videos are so good, you are helping me a lot.
THANKS

sickboy
Автор

quick tip: dont put wait(3) or anything. Its a for loop thingy so it will move after 3 seconds then go 1 stud then wait another 3 seconds, then go 1 stud ect. I was stuck but i used print to detect the issue.

cheesepuffmann
Автор

i was making a boss and i wanted to have him jump in air then land on a player and i figured i can use the lerp function but i didnt know how it works but now u helped me thanks so much

Hafd_Entertainment
Автор

I think the difference between both is that TweenService allows you to do it repeatedly/infinite times, and you can also change the velocity of execution. I'm not sure if Lerping allows you to do that with the Size too because TweenService can grow a "Part" smoothly, but i'm not sure if Lerping does, tell me in the comments if it does! And for last difference, TweenService has many "EasingStyles" so it moves the part with different animations, and "EasingDirection", used mostly for ScreenGUI's, there are 2 types: "Out" "In". So yeah TweenService and Lerp/Lerping are pretty different for me.

sumixam