Projectile Physics - Roblox Scripting Tutorial

  Рет қаралды 96,512

Suphi Kaner

Suphi Kaner

Күн бұрын

Пікірлер: 403
@mrstarfish
@mrstarfish 2 жыл бұрын
You're one of the best scripting channels I seen, most of the tutorials you upload are things that are so useful that I didn't even think about!(I was going to use bezier curves for my projectile😅) Your tutorials are very helpful to me and many others, Hope you're having a wonderful day!
@5uphi
@5uphi 2 жыл бұрын
Thank you, I had a very nice day today and I hope you also have a wonderful day
@yourmomlookslikeurdad6588
@yourmomlookslikeurdad6588 2 жыл бұрын
Your voice, your speed, your explanation. It's all perfect.
@5uphi
@5uphi 2 жыл бұрын
(˵◠‿◠˵)
@maxbd2618
@maxbd2618 9 ай бұрын
Absolutely amazing breakdown and pacing, great job explaining everything and not over complicating it.
@orips
@orips 2 жыл бұрын
Wow, I'm surprised youtube recommended this to me. This is amazing! You explained a useful concept that can apply to many things in a extremely simple way, while showing examples and graphs. Amazing!
@JDevYT
@JDevYT 2 жыл бұрын
I was looking for this! I actually tried to program my own physics into Roblox -- however I had no idea I could completely override their physics engine. This is extremely useful, thank you.
@tempus1232
@tempus1232 2 жыл бұрын
Most underrated scripting channel I need, not too simple but not too complicated
@zechariahcaraballo8765
@zechariahcaraballo8765 Жыл бұрын
exactly I dont know why other scripting channels seem to either be so simple and basic its not even useful and others are so complicated it feels like they dont even know what they are talking about and usually dont explain a thing not nearly as good as this guy, we need more scripting channels like him
@MaxL8200
@MaxL8200 Жыл бұрын
I struggled so much
@mattc0473
@mattc0473 Жыл бұрын
I was looking for a way to make a curving projectile for my game, this is perfect, its so easy to understand. Thanks man, keep it up!
@frootloopii
@frootloopii Ай бұрын
you came in CLUTCH with my player cannon system!! thank you so much for your videos!!!💪
@Ricky-ch7ew
@Ricky-ch7ew Жыл бұрын
this is actually a really good tutorial and i never knew learning high school physics can help me understand it more lmao
@Hazuzis
@Hazuzis Жыл бұрын
Tysm, you actually helps people, thank you for existing!
@PoppinCorn
@PoppinCorn 2 жыл бұрын
I love your videos, you actually make tutorials about underrated scripting topics
@hdbsbejfbbf1864
@hdbsbejfbbf1864 2 жыл бұрын
I’ve always needed this formula, thanks so much for figuring this out
@Korum211
@Korum211 29 күн бұрын
Appreciate this friend, this is super articulate and cool.
@Bluoed
@Bluoed Жыл бұрын
This video came out of nowhere and solves the exact problem I was having, despite me spending ages searching for a solution. Great video!!
@superkc2557
@superkc2557 2 жыл бұрын
Perfectly timed video! I couldn't think of something to make but I wanted to script, lol.
@cruz6538
@cruz6538 2 жыл бұрын
Mood 😩, I can never think of what to code
@sovietcrab1876
@sovietcrab1876 Жыл бұрын
this is the best roblox tutorial that I have EVER seen. It's really well thought out
@seadrown6252
@seadrown6252 2 жыл бұрын
You're so helpful for people trying to go from intermediate to advanced scripters on Roblox, thank you
@superstorm4228
@superstorm4228 Жыл бұрын
Thanks for the video suphi. This was was really awesome and has lots of fun and interactive applications.
@ropi314
@ropi314 Жыл бұрын
Awesome videro! I will be using this for my game :)
@Cowwy
@Cowwy 9 ай бұрын
Wow. Really well explained. Deserves way more subs.
@abukaram9343
@abukaram9343 2 жыл бұрын
Like 2 minutes in and you've solved the issues I was having. I didn't realize that box for showing what was going on was there, I didn't
@5uphi
@5uphi 2 жыл бұрын
I'm happy you managed to solve your problem in 2 minutes
@KebeMaro
@KebeMaro 2 жыл бұрын
Keep up the amazing work , Every video you make is always something unique an great!
@5uphi
@5uphi 2 жыл бұрын
Thank you very much!
@정준희-e1w
@정준희-e1w 2 жыл бұрын
Thank you for helping i honestly dont know that much math but you help me alot with these ecuations!
@gameryt-oo3tk
@gameryt-oo3tk 2 жыл бұрын
Just wanted to express how helpful your videos are!! you are extrely good at explaining tNice tutorialngs in-depth but still at a basic level for
@charger4299
@charger4299 8 ай бұрын
thank you i had seen the phicis funtins in documentation but i didnt know how they worked so o just came up with my own way but i want to improve and was looking for helpful videos thank you you explained it vey well definetly gonna rewatch a couple of times
@ahmad.mhamed
@ahmad.mhamed 2 жыл бұрын
So smooth! EverytNice tutorialng he says goes into my brain and sticks in.
@koainanis5840
@koainanis5840 Жыл бұрын
very well explained tutorial my friend. 💯👍 today i learnd a lot and bring it into a small game. every video that you made is so interesting and helpful.
@kirby7350
@kirby7350 2 жыл бұрын
Dude every video you make is amazing what the heck
@5uphi
@5uphi 2 жыл бұрын
Thank you
@williamospina6371
@williamospina6371 Ай бұрын
excellent job bro , greeting from colombia :D
@codeinvalid
@codeinvalid Жыл бұрын
This was really intuitive!
@DanielMoleGuacamole
@DanielMoleGuacamole 2 жыл бұрын
Math is my worst skill 😅. Thanks for uploading this ive been lookin for something like this for a while
@barnacolium6947
@barnacolium6947 Жыл бұрын
damn you can type fast. also your amazing at explaining the concept.
@vikovitch
@vikovitch 56 минут бұрын
i wanted to make a thing that falls out of the sky and absolutely gobsmacks a player, and this is precisely what i needed to make it happen.
@mattsYT42
@mattsYT42 2 жыл бұрын
this is aweeeesome. saved to my playlist 😊
@feimfeim7095
@feimfeim7095 Жыл бұрын
Simply an amazing Turorial i understand everything you said Thank you so much
@alexisfernandez8052
@alexisfernandez8052 2 жыл бұрын
If it is intriguing to you, you won't be forgetting it easily
@normik7771
@normik7771 2 жыл бұрын
I am getting back into production after so ti and tNice tutorials makes it so easy to understand. Thank you so much for making these videos.
@5uphi
@5uphi 2 жыл бұрын
No problem
@_quite.essentiallyjay
@_quite.essentiallyjay Жыл бұрын
i usually use bezier curves but this is amazing
@shivamkumargaur9871
@shivamkumargaur9871 2 жыл бұрын
Thanks bud! great video and instructions.
@venox.
@venox. 2 жыл бұрын
Very interesting video! 👍
@Monopulator69420
@Monopulator69420 3 ай бұрын
Thanks! I will apply this to my mortar system
@thenermer
@thenermer 2 жыл бұрын
how have I not watched your videos before
@IncredibleTeamAidan
@IncredibleTeamAidan Жыл бұрын
this makes it seem so simple!
@Anobot
@Anobot 2 жыл бұрын
Ay thanks for this useful video!
@ayoomike
@ayoomike 2 жыл бұрын
unironically felt my brain expand and my inability to do math slowly fade away
@dahorrorazguy7905
@dahorrorazguy7905 Жыл бұрын
Haha same
@coolcons1930
@coolcons1930 3 ай бұрын
You can also change the arc by lowering the gravity multiplication and also multiplying the direction by what the gravity is divded by 0.5
@5uphi
@5uphi 3 ай бұрын
I believe we cover that in the video already
@coolcons1930
@coolcons1930 3 ай бұрын
@@5uphi oh whoops I didn’t see
@zn3128
@zn3128 2 жыл бұрын
Bro, you're a great teacher and explainer! Thank you for tNice tutorials tutorial!
@ar1n372
@ar1n372 2 жыл бұрын
I'm a rapper who can't really afford production so I want to learn to make my own soft. I just want to say that I appreciate your teacNice tutorialng
@GalaxyWhale999
@GalaxyWhale999 2 жыл бұрын
This is an awesome video, tysm
@rebecabalderas3715
@rebecabalderas3715 2 жыл бұрын
fire video, thanks bro
@shahbazqasim8682
@shahbazqasim8682 2 жыл бұрын
Bro! Thanks so much! I got and installed and wNice tutorialle watcNice tutorialng tNice tutorials I'm following your steps, and I really fully understand. So Kool! Thanks
@-CENSORED0-
@-CENSORED0- 2 ай бұрын
instructions unclear, my workspace’s gravity was 0 and my computer exploded
@mathijsdsv8780
@mathijsdsv8780 2 жыл бұрын
I just adore your videos
@EuAmoBloxyCola
@EuAmoBloxyCola Жыл бұрын
insane tutorial, thanks
@ignayep
@ignayep Жыл бұрын
Good Video!, I hope you are good!
@5uphi
@5uphi Жыл бұрын
Thanks I'm doing well how are you doing?
@ignayep
@ignayep Жыл бұрын
@@5uphi Excellent, thank God, I really like your videos, I have learned a lot, many successes!
@alessandromarin3803
@alessandromarin3803 2 жыл бұрын
I was surprised how understandable tNice tutorials tutorial is, thanks!
@5uphi
@5uphi 2 жыл бұрын
No problem
@AlberTesla1024
@AlberTesla1024 2 ай бұрын
To those who didn't understand why he halved the gravity value to get the initial vertical velocity, here is an explanation : Consider the common link between x and y axis movement is time. Suppose to move the ball from point A to point B without gravity is T seconds, without gravity the ball will go straight. But in presence of Gravity we need to give the vertical velocity in such a way that it reaches back to the Point A vertical Position in T time also. Also the time taken by ball to reach the max height is same as time taken by ball to come down from the max height. Hence the final velocity will be zero. the initial upwards velocity can be calculated as : v = u - gt where v = final velocity, u = initial velocity, g = gravity, t = time, total time of flight is T, hence to reach max height it's T/2 and v = 0 at max height. final equation becomes u = gt, where u = gravity * T/2., (this equation is for Y axis) as in roblox the vertical axis is the Y axis.
@5uphi
@5uphi 2 ай бұрын
So in short part go up for 50% of the time then part go down for 50% of the time ;)
@vinsovan9707
@vinsovan9707 2 жыл бұрын
I love the channels that explain what every single line of code does. This is absolute perfection. Also I'm only a 7th grader so do you mind explaining to me how it's possible to subtract vector3s?
@5uphi
@5uphi 2 жыл бұрын
A vector3 stores 3 numbers for instance 1 vector3 has the values 2, 3, 4 and another vector3 has the values 5, 6, 2 if you subtract these 2 vector3s it's doing 2 - 5, 3 - 6, 4 - 2 and it will create a new vector3 with the values -3, -3, 2
@C901-p8i
@C901-p8i 2 жыл бұрын
years! Let know your questions!
@5uphi
@5uphi 2 жыл бұрын
What's 1 + 1?
@CartmanRoblox
@CartmanRoblox 5 ай бұрын
Great tutorial! I do have a question (if you'll even respond on a year old video), i want the projectile to curve upward instead of not curving much, would I have to use the first method of duration or is there a way to do it with the final method?
@danielboigenzahn9565
@danielboigenzahn9565 2 жыл бұрын
Amazing share
@wahra4526
@wahra4526 2 жыл бұрын
bro thanks so much. dis video is tiless 3 years ltr n still great
@5uphi
@5uphi 2 жыл бұрын
No problem
@urbanexploration818
@urbanexploration818 2 жыл бұрын
Completed ur 500 likes mate
@ascel6799
@ascel6799 4 ай бұрын
Wow that's easy, thanks brodi
@masonbuk9092
@masonbuk9092 Жыл бұрын
he types out the roast before the argument even begins
@asmaafifah1262
@asmaafifah1262 2 жыл бұрын
Nice tutorial Michael,
@5uphi
@5uphi 2 жыл бұрын
thanks George
@cherifiimene2625
@cherifiimene2625 2 жыл бұрын
it very well! Good Job!
@elitegamingandmore3723
@elitegamingandmore3723 2 жыл бұрын
This is so good!
@oilo742
@oilo742 Жыл бұрын
im having more fun than i should using car free models thanks
@jaivierbirring9757
@jaivierbirring9757 Жыл бұрын
This helped me so much
@lamortoutchetche6156
@lamortoutchetche6156 Жыл бұрын
Love this
@kennethkline7702
@kennethkline7702 2 жыл бұрын
I read somewhere that you should always set the parent of a new/cloned part at the very end (after setting any parameters). Is this true, or does the impulse/force & network owner need to be set after the parenting? I just LOVE your tutorials btw!
@5uphi
@5uphi 2 жыл бұрын
Yes it's better to set the parent at the end and yes some things only work after you have set the parent like impulse and setnetworkowner
@goreacraft
@goreacraft 2 жыл бұрын
brilliant and simple
@NikitaIsLive
@NikitaIsLive 2 жыл бұрын
Thank you for taking the ti to do tNice tutorials i know I’m gonna enjoy figuring it out
@ritsu9837
@ritsu9837 2 жыл бұрын
omg I discovered a jem of a channel
@fr1gid
@fr1gid Жыл бұрын
this helped with my nextbots game
@hoangtuantu8871
@hoangtuantu8871 2 жыл бұрын
Thanks ArcNice tutoriale! If you ever have a question, just write a comnt and I’ll try my best to help. Also consider joining my free community
@andreypetrovart
@andreypetrovart 8 ай бұрын
Hi, thank you so much for the great tutorial! I have a question. I noticed that there is a slight delay between the appearance of the projectile and the beginning of its movement. Do you know how to get rid of the delay?
@5uphi
@5uphi 8 ай бұрын
If you do it locally there won't be a delay as the information won't need to travel between your computer and Roblox servers
@andreypetrovart
@andreypetrovart 8 ай бұрын
@@5uphi Thank you for the quick response and for the information!
@Y_Bahy
@Y_Bahy 2 жыл бұрын
super dope... thanks
@BMFish
@BMFish Жыл бұрын
i wanted to make something like mugen's anger weapon
@wowland6873
@wowland6873 2 жыл бұрын
This is fantastic! Although I do have a question, is it possible to add a distance limit? For example only allowing the projectile to shoot out 125 studs from its current position?
@5uphi
@5uphi 2 жыл бұрын
yes its possible if you message me in discord id be happy to help
@wowland6873
@wowland6873 2 жыл бұрын
@@5uphi Sure thing! My tag is wowland#0928
@mythored8054
@mythored8054 2 жыл бұрын
@@5uphi whats your discord id sir
@d.veloper826
@d.veloper826 Жыл бұрын
You are not one of the best scripting channels, you are the best scripting/tutorial channel in my obviously objective opinion.
@mojcalicen101
@mojcalicen101 2 жыл бұрын
just seeing tNice tutorials tutorial so glad I did, I was about to go back to jogging in the creek, but now there is hope and inspiration will definitely
@kwrahawrami21
@kwrahawrami21 2 жыл бұрын
If you're a complete beginner to soft production then soft is imo the easiest daw that you can get, I started off with it.. If you have a little bit
@5uphi
@5uphi 2 жыл бұрын
Whats soft production?
@ManlyCreator
@ManlyCreator Жыл бұрын
Thanks so much for actually explaining what you're doing, but I'd like a little bit more knowledge on these systems. What math would you recommend learning to better understand the physics in this game?
@5uphi
@5uphi Жыл бұрын
I personally have never learned math by trying to learn math what I would do in the past is keep reading the code over and over going over each step trying to follow the numbers as they go through the code and understand how each line of code changes the number to get the final value
@ManlyCreator
@ManlyCreator Жыл бұрын
@@5uphi I see, so would you just recommend watching enough tutorials until I have a good grasp of physics?
@5uphi
@5uphi Жыл бұрын
I personally never watched any videos to learn physics
@Tettzz
@Tettzz 2 ай бұрын
WOAH THANKS
@aren1709
@aren1709 7 ай бұрын
great video! but if i can ask (and maybe this is already mentioned but idk), why should the force of the y axis on the projectile half of the gravity? why cant it be other values?
@5uphi
@5uphi 7 ай бұрын
If the part starts at a velocity of 0 and gravity is set to -10 after 1 second the part will have a velocity of -10 If I set the parts velocity to 5 after 0.5 seconds the part will have a velocity of 0 and after a total of 1 second will have a velocity of -5 So if it takes one second for the part to get to it's target we set its velocity to 50% of gravity
@aren1709
@aren1709 7 ай бұрын
@@5uphi ah ok i get it now, thank you man! love your videos 👍
@Total_Studios_Games
@Total_Studios_Games 2 жыл бұрын
Really helped in 19 thx
@atomixstrange
@atomixstrange 2 жыл бұрын
tNice tutorials tutorial was very satisfying
@hazel9083
@hazel9083 2 жыл бұрын
Up to you dawg, how good do you want it?
@randomgreatness2298
@randomgreatness2298 2 жыл бұрын
Absolutely incredible tutorial! I'm trying to implement an AI spear throw, but I'm having trouble figuring out a way to have to object move nose first along the trajectory it's thrown at. I've tried a few things with alignorientation that dont quite work, any insight on how I can do this?
@5uphi
@5uphi 2 жыл бұрын
If you message me in discord I can try to help
@randomgreatness2298
@randomgreatness2298 2 жыл бұрын
@@5uphi Sure thing
@justgiova789
@justgiova789 2 жыл бұрын
AMAZIMG
@mr.crazycrest9195
@mr.crazycrest9195 4 ай бұрын
Great tutorial! I do want to know though how you could implement all this into a tool. I'm trying to make it so that whenever a player clicks somewhere, it'll spawn in the "From" part while "To" stays in the tool. Making it seem as though the player is shooting a projectile towards the spot. Thank you!
@knight9441
@knight9441 2 жыл бұрын
Thank you so much!!
@5uphi
@5uphi 2 жыл бұрын
Your very welcome
@dfzoz9032
@dfzoz9032 Жыл бұрын
I was able to apply drag on my projectiles, but i wanted to get the required initial velocity to travel x distance on a θ angle, but its too much pain trying to get the derivations for velocity, because drag force, which is based on current velocity, changes acceleration, which changes velocity, which changes drag, and so on lol. I saw it can be approximated using some iterations but even that was too hard for me.
@nanthiriwinOfficial
@nanthiriwinOfficial 2 жыл бұрын
nice tuto, I had the sa issue
@Whitethunder-vf4px
@Whitethunder-vf4px 2 жыл бұрын
So useful thx
@Furjns
@Furjns 10 ай бұрын
Heyy! thanks for tutorial video i understand it very well and it helps me a lot but i have a question. How do u apply mathematic to lua? its really confusing how can i learn or can u make tutorial for this?
@Furjns
@Furjns 10 ай бұрын
nvm after watching video 2-3 times i understand, problem is my english knowledge Lol now i understand it thanks again!
@jackiem6125
@jackiem6125 Жыл бұрын
This is so much help. However, how would u go about calculating the angle of the projectile after it is shot (before falling back down)
@5uphi
@5uphi Жыл бұрын
You can use cframe.lookat
@jackiem6125
@jackiem6125 Жыл бұрын
@@5uphi So I'm trying to make a missile launcher (RAM). The launcher needs to point at the angle in which the projectile would launch at. Otherwise the missile would be pointing let's say 90* while the projectile launches at 45* and looks weird. I need I to point at it before launching.
@5uphi
@5uphi Жыл бұрын
I guess you would need to use align orientation constraint and keep updating the cframe so the missile always faces the direction its going in
@jackiem6125
@jackiem6125 Жыл бұрын
@@5uphi How would I supply the align orientation constraints before firing the projectile to make the missile "holder" face the way the missile is going to be launched?
@Yan234-eg5rx
@Yan234-eg5rx Жыл бұрын
Very good tutorial! can you make one where it deletes the moment it touches the target?
Stop Hackers / Exploiters - Roblox Scripting Tutorial
36:04
Suphi Kaner
Рет қаралды 52 М.
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 922 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 17 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 14 МЛН
The ONLY Raycasting Tutorial You'll EVER NEED
23:54
script_ing
Рет қаралды 25 М.
How To EASILY Make Procedural Animations In Roblox
6:46
Roox4
Рет қаралды 102 М.
The Most ACCURATE Projectile in ROBLOX!!
25:37
fidgetspinner71
Рет қаралды 43 М.
Content Streaming - Roblox Scripting Tutorial
29:24
Suphi Kaner
Рет қаралды 20 М.
A Guide to Minecraft's Most Ridiculous Mod
16:16
Mykra
Рет қаралды 357 М.
Bye-bye Raycasting! There's a new kid on the block...
15:13
Crusherfire
Рет қаралды 58 М.
I Built a Robot that Plays FPS Games
21:23
Basically Homeless
Рет қаралды 828 М.
Why I Hate Roblox Abilities
11:52
ByteBlox
Рет қаралды 393 М.
Inverse Kinematics, HingeConstraint - Roblox Scripting Tutorial
59:03
Animation Controller - Roblox Scripting Tutorial
24:11
Suphi Kaner
Рет қаралды 7 М.
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 922 М.