How to Make a Projectile System in Roblox Studio (2023)

  Рет қаралды 11,078

Manly Creator

Manly Creator

Күн бұрын

In this video we're going to manipulate object CFrames to create a projectile system that can be adapted in any way you like.
-- Timestamps --
0:00 Intro
0:06 Creating the Projectile
0:33 Binding User Input
1:35 Spawning the Projectile
4:44 Controlling the Projectile's Physics
7:30 Calculating the Projectile's Lifetime
8:30 Implementing Projectile Lifetime
9:08 Adding Damage Functionality

Пікірлер: 57
@ManlyCreator
@ManlyCreator 9 ай бұрын
We're on the road to 1k subscribers, so be sure to subscribe so you don't miss my weekly uploads. Big plans for a 3rd-person shooter system in the future, so let me know if you'd like to see that!
@Sylyxlol
@Sylyxlol 8 ай бұрын
the range it goes get's smaller after each time you use it
@Sylyxlol
@Sylyxlol 8 ай бұрын
nevermind i fixed it
@SunBerryDev
@SunBerryDev 5 ай бұрын
I have an question. If I don't include the damage will it ruin the whole script or no?
@Ethananderson-ex8bc
@Ethananderson-ex8bc Ай бұрын
this isn't projectile, example of it like throw a rock by 45degrees that's what you called projectile
@ayazcakmak4985
@ayazcakmak4985 6 ай бұрын
By far the best tutorial. So minimalistic which is beginner friendly. Keep it up!
@tobias2167
@tobias2167 9 ай бұрын
Nice! Keep it up.
@ben2OOO23
@ben2OOO23 5 ай бұрын
Woah this is insane work! I was messing around in chat gpt to make a beam and it curveing and it gave me this: local y = verticalSpeed * time - 0.5 * 9.8 * time^2 -- Gravity formula for the projectile almost exactly what you did your work is so good that Ai is doing the same thing!!!!!!!!!!!!!!!!!!!!
@Johnink03
@Johnink03 9 ай бұрын
Thanks for the tutorial :)
@ManlyCreator
@ManlyCreator 9 ай бұрын
I think you might've been the first viewer, hopefully this video was helpful.
@Alacai
@Alacai Ай бұрын
Using the touched event can be unreliable because 1, It could go through objects because it could skip a frame and miss the object and 2, hackers can exploit the touched event because when you touch something with the event the client tells the server that it touched it. Using a raycast that travels and has a short distance would be a better alternative to moving a part.
@VeryProPlayerYesSir1122
@VeryProPlayerYesSir1122 9 ай бұрын
22nd like from me. Very good video. Please make customizable effects for that projectile.
@shoexbill9285
@shoexbill9285 7 ай бұрын
just change the color material or add particles to the projectile in replicated storage
@P00P_MAN
@P00P_MAN 9 ай бұрын
Bro ur so underrated wth
@kibbet2276
@kibbet2276 4 ай бұрын
Hey do you know how I can make it go in the direction of the mouse? Awesome tutorial by the way
@s24948
@s24948 7 ай бұрын
can you please make a tutorial on how to parent a animation to tool cuz i tried every tutorial so far and nothing works
@stellamane
@stellamane 7 ай бұрын
Hello, does this script only work for parts? or can can I use this exact scripts for model projectiles aswell?
@Devious_Incorporated
@Devious_Incorporated 2 ай бұрын
Thank you so much for this tutorial, it helped me so much with my game. There is one problem though. I keep trying to make it so it explodes before it disappears and add a cooldown but I can’t seem to get it working. Could you maybe make another tutorial adding these ideas? It would mean a lot.
@phyopyaelynn-wp6fc
@phyopyaelynn-wp6fc Ай бұрын
Projectile.touched:Connect(function () Instance.new("explosion") explosion.Position = Projectile.Position Projectile.Destruct end)
@Devious_Incorporated
@Devious_Incorporated Ай бұрын
@@phyopyaelynn-wp6fc Thank you so much bro, once I get home I’ll try this. Edit: pretty sure the reason it didn’t work for me is because I forgot to actually make it explode after setting properties. 😅
@Devious_Incorporated
@Devious_Incorporated Ай бұрын
@@phyopyaelynn-wp6fc it didn’t work I still go it to work on my own but thanks for trying to help me
@TheRobloxDev-ur8tu
@TheRobloxDev-ur8tu Ай бұрын
whenever i use it while running forwards it destroys
@ThatGuyWhoHatesThings
@ThatGuyWhoHatesThings 4 ай бұрын
Does this work with unanchored parts? I'm trying to create a launcher that shoots unanchored spheres
@TheAmazingDeveloper2
@TheAmazingDeveloper2 3 ай бұрын
why does my clone not collide with anything that is collideable?
@JujutsuXOfficial
@JujutsuXOfficial 5 ай бұрын
i done everything right and no errors but it doesnt do damage??
@ABOT_OW
@ABOT_OW 8 ай бұрын
It works but I am very confused on what's happening lol
@FmadanTlol
@FmadanTlol 26 күн бұрын
bruh broooo why that projectile can hurt myself? how to fix it??
@ThunderBoltz7
@ThunderBoltz7 8 ай бұрын
Its Not Working For Me. Can You Please Help??
@archiefitzsimmons7545
@archiefitzsimmons7545 8 ай бұрын
can you make the same but make it instead of clicking to do it pressing a key bind
@SebiFreeway
@SebiFreeway 2 ай бұрын
Just change the enum
@phyopyaelynn-wp6fc
@phyopyaelynn-wp6fc Ай бұрын
It says cframe is not a member of hrp
@ethanreid2802
@ethanreid2802 5 ай бұрын
i got an error at 4:36 in video saying "ServerScriptService.ProjectileServer:14: attempt to perform arithmetic (add) on Vector3 and number " can you help me?
@boredom8546
@boredom8546 4 ай бұрын
i can help if you still are having trouble, could you paste the code you've written
@Gyozaplanet2
@Gyozaplanet2 4 ай бұрын
It's a "*" sign not an "+" sign. Vector's can't have flat numbers added to them
@namebutworse
@namebutworse 9 ай бұрын
for me it doesnt go forward without gravitation like in you and it just disappears after it touches literally ANYTHING and if you go forward it dissapears what do i do
@ManlyCreator
@ManlyCreator 9 ай бұрын
Did you anchor the part?
@namebutworse
@namebutworse 9 ай бұрын
@@ManlyCreator i didnt
@Alpha-qe3sx
@Alpha-qe3sx 9 ай бұрын
Could you make a video of a a blocking mechanic
@ManlyCreator
@ManlyCreator 9 ай бұрын
That's coming eventually, but for now my focus is broader subjects so my audience can actually learn game development and not just copy and paste.
@Jackbowow
@Jackbowow 9 ай бұрын
Hey I have a question
@deanlayman2750
@deanlayman2750 8 ай бұрын
hay it doesn't work for me
@Jackbowow
@Jackbowow 9 ай бұрын
I wanna play it with someone
@phyopyaelynn-wp6fc
@phyopyaelynn-wp6fc Ай бұрын
Doesnt even work
@umeshdongre9203
@umeshdongre9203 6 ай бұрын
and they said physics and maths wouldn't help
@spriteman1925
@spriteman1925 4 ай бұрын
This isnt advanced.....
@Jackbowow
@Jackbowow 9 ай бұрын
Can you join me in the game I’m using this tutorial on?
@Jackbowow
@Jackbowow 9 ай бұрын
Btw I’m talking to you manly creater
@epicguyman2432
@epicguyman2432 3 ай бұрын
How can i add cooldown i need please
@phyopyaelynn-wp6fc
@phyopyaelynn-wp6fc Ай бұрын
Local cd = false In the if input state (If cd = false then cd = true Throw_re:FireServer() wait() - - your cooldown - - cd = false Else print("cooldown not done") End In local script in starterplayer
@sixemperor9456
@sixemperor9456 Ай бұрын
i dont recommend this system if ur a beginner cuz these projectiles go through walls and dont have a cooldown i tried to fix both these issues but with no success
@phyopyaelynn-wp6fc
@phyopyaelynn-wp6fc Ай бұрын
Task.wait(0.3) local projectile.Cancolide = true
@ThatRedGuy_Real
@ThatRedGuy_Real Ай бұрын
Imma be honest I thought the title was "How to Make a Partical System in Roblox Studio (2023)" and yes I know I am commenting this 8 months late idc
@Zapz16
@Zapz16 9 ай бұрын
hey can u check the comment i left on ur vid for combo
@Rendu_neo
@Rendu_neo 5 ай бұрын
Begin is not a valid member of "Enum.UserInputType" - Client - Projectile client:7 01:22:20.992 Stack Begin - Studio 01:22:20.992 Script 'Players.alisa12345RO.PlayerScripts.Projectile client', Line 7 - function throw - Studio - Projectile client:7 01:22:20.992 Stack End - Studio 01:22:20.992 ContextActionService: Unexpected error while invoking callback: Begin is not a valid member of "Enum.UserInputType" - Studio what it means😭😭
@ManlyCreator
@ManlyCreator 5 ай бұрын
Make sure to use Enum.UserInputState instead of Enum.UserInputType. UserInputState is for checking whether or not the button is being pressed, while UserInputType returns the actual key being pressed. Hope this helps.
@Rendu_neo
@Rendu_neo 5 ай бұрын
@@ManlyCreator thx, I'm will check
I spent 500 DAYS Building My Roblox Game!
14:21
DeHapy
Рет қаралды 872 М.
A Fan Asked Why His Game is Failing...
30:53
RoBuilder
Рет қаралды 86 М.
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 3,5 МЛН
1🥺🎉 #thankyou
00:29
はじめしゃちょー(hajime)
Рет қаралды 80 МЛН
When Jax'S Love For Pomni Is Prevented By Pomni'S Door 😂️
00:26
Pushing Roblox Studio To Its Limits
10:28
ByteBlox
Рет қаралды 175 М.
How to Make ROBLOX Ragdolls: the BEST Way
12:23
LeehamsonTheThird
Рет қаралды 7 М.
I Made Snake Game with just redstone!
14:31
mattbatwings
Рет қаралды 351 М.
The ONLY Raycasting Tutorial You'll EVER NEED
23:54
script_ing
Рет қаралды 10 М.
Why do Roblox hitboxes suck?
6:38
Copper Cog Studio
Рет қаралды 197 М.
I Learned How to SCRIPT in 7 Days | Roblox
11:00
Simjet
Рет қаралды 21 М.
Making a Game With C++ and SDL2
8:14
PolyMars
Рет қаралды 1,6 МЛН
the 4 steps people use to make amazing particles
22:49
nearunderstandings
Рет қаралды 137 М.
Vợ ơi dậy chạy phụ anh. #nutaixe #daukeo #container #chinatruck #chinese #truckgirl
1:01
coil spring breakage while the vehicle is moving #shorts
0:17
opelservice kyiv
Рет қаралды 3,8 МЛН
😱 Выхлоп для велосипеда
0:33
Тот самый Денчик
Рет қаралды 4,5 МЛН
Стоит покупать Гелик? Будут ли с ним проблемы?
0:59
Автосервис Мерседес MBSEMENOV
Рет қаралды 4,5 МЛН