How to make a SIMPLE PROJECTILE in ROBLOX STUDIO!

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ค. 2024
  • How to make a Projectile in Roblox Studio
    This is a tutorial about making a projectile in Roblox Studio. Make sure to subscribe and leave a like!
    Thanks so much for watching!
    Chapters:
    0:00 Intro
    0:25 Scripting
    0:57 Animating
    1:53 Scripting the Animation
    3:43 Scripting the Projectile
    4:12 Creating the Projectile
    4:53 Scripting the Projectile again
    12:31 Outro
    Music used:
    Toad Harbour - MK8: • Toad Harbor - Mario Ka...
    Circuit Theme - MKDD: • Circuit Theme Mario ...
    Underground - NSMB: • New Super Mario Bros. ...
    Main Theme - SM64: • Super Mario 64 Soundtr...
    Overworld - SMB2: • Super Mario Bros. 2 Ov...
    Forest Maze - SMRPG: • Super Mario RPG - Fore...
    roblox particle,roblox tutorials,lighting tutorials,roblox studio,roblox plugin,roblox anime vfx,modeling tutorials,building tutorials,lighting,particles,particle tutorials,particle emitter,lights,modeling,building,roblox vfx,vfx tutorials,light,roblox,studio,tutorials,gaming,builds,models,blender,tutorial,build,games,model,plugins,help,game
  • เกม

ความคิดเห็น • 131

  • @insertusernamehere8125
    @insertusernamehere8125 ปีที่แล้ว +16

    i've tried so many of my own ways of making projectiles but they're always buggy or just boring, this way seems fun and smooth though. also "animation markers" sound cool, I'm gonna start using them. thank you for your awesome tutorials, idk how you only have 340 subs but your channel will definitely blow up some day :)

    • @Avratix
      @Avratix ปีที่แล้ว

      from 340 to 1.5k sheeesh

    • @SmallCloud.
      @SmallCloud. 6 หลายเดือนก่อน

      @@Avratix From 1.5k to 2.77 k sheeesh

  • @ikkeenbot
    @ikkeenbot ปีที่แล้ว

    This is very good tut for people thats new at stuff like this wish i had something like this when i started out

  • @astronaut_69
    @astronaut_69 ปีที่แล้ว +3

    Que viva el garrobo, tio !
    I love these tutorials ( Translated from Spanish )
    🥶❤❤❤

  • @yumcheese2513
    @yumcheese2513 6 หลายเดือนก่อน

    thia man caries my scripting and tought me how to script in general
    W TH-camR

  • @itsray5257
    @itsray5257 ปีที่แล้ว +7

    I really like these videos, they are so helpful because i already have some ability scripting but i can't think in a way to make something really cool. I hope you do more of these videos and you get to 1k keep it up!
    Also, can you make a tutorial on how to make an ice beam with cool particles that freezes the enemy with an actual ice cube model?

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว +2

      yea sure ill do something like that!

  • @L.M2101
    @L.M2101 ปีที่แล้ว +1

    Bro you are teaching me so much! Can you make a spike ability next?

  • @PlatineAsd
    @PlatineAsd ปีที่แล้ว

    You really make great tutorials man. just can you do a tutorial about counters?

  • @litteshif9067
    @litteshif9067 ปีที่แล้ว

    Love you video really motivated alot

  • @Synergy_YX
    @Synergy_YX ปีที่แล้ว +4

    I did this all in a server script, works perfectly, no remote events needed, no local scripts, just the server script. Great tutorial nonetheless

  • @Wanderrr.
    @Wanderrr. ปีที่แล้ว +2

    love these, how about some tutorials just without the tool and as a keybind?

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว

      ill be sure to do that!

    • @Wanderrr.
      @Wanderrr. ปีที่แล้ว

      @@SnakesRobbs ty

    • @Shadow-tu7yb
      @Shadow-tu7yb 2 หลายเดือนก่อน

      i like tool imo cause i dont gotta wory about mobile controls

  • @Ethan_Lyton_Hockey
    @Ethan_Lyton_Hockey ปีที่แล้ว

    Where did you learn to code so good? I NEED TO KNOW😂

  • @ObliviousNoob1
    @ObliviousNoob1 11 หลายเดือนก่อน

    When the anim plays the fire ball does not play. I have some blue erros but everything is working maybe cuz the weld constraint what did you put it as?

  • @dominator0728
    @dominator0728 หลายเดือนก่อน

    at 5:30 what if you wanted the projectile to come out of the tip of the tool your holding, how would you do that?

  • @yumcheese2513
    @yumcheese2513 6 หลายเดือนก่อน

    REMEMBER ME WHEN YOU GET 2OOOOO SUBS

  • @10szym44
    @10szym44 ปีที่แล้ว

    How do i make it so its aimed with the cursor? Like where you click it goes towards there.

  • @J4M0UT
    @J4M0UT ปีที่แล้ว

    I cant make the projectile go in my hand because it says CFrame and Anchored is not a valid member of the tool.
    How do I fix this?

  • @Nubllan
    @Nubllan ปีที่แล้ว +1

    Nice tutorial! But how would I make the ball play a sound for when it's thrown and when it's summoned?

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว +1

      You can put sounds in the projectile, and when you summon them then you can play them in the script!

  • @ra1derz638
    @ra1derz638 ปีที่แล้ว

    could u make a video on showing how to make a combat system?

  • @LeephOfTheHiddenLeaf
    @LeephOfTheHiddenLeaf ปีที่แล้ว +2

    Can you do a tutorial on how to bind these moves to key inputs? Or how to group movesets together?

    • @DecayZ923
      @DecayZ923 ปีที่แล้ว

      you just do:
      local UIS = game:GetService (“UserInputService”)
      Event = *wherever you put the event*
      UIS.InputBegan:Connect (function (input, processed) *these are parameters btw name them whatever u want, just remember the first parameter is whatever is inputted*
      if processed then return end
      if input.KeyCode == Enum.KeyCode. *whatever key u want it to be bounded to* then
      Event:FireServer()
      end)

    • @DecayZ923
      @DecayZ923 ปีที่แล้ว

      srry if it a bit unclear but this is how i do it

    • @armund2867
      @armund2867 ปีที่แล้ว

      input.Keycode == Enum.Keycode.Z

  • @kylecerny7730
    @kylecerny7730 ปีที่แล้ว

    i really try to follow this, but any of the tabs that exist for you just don't for me. it's confusing, and even though i really want to make my own game, Studio's learning curve feels like a sheer cliff.

  • @koainanis5840
    @koainanis5840 ปีที่แล้ว

    thats what im searching !
    but i stuck on the scrpting and animnations.
    can you please share the model or the place ?

  • @bossgamer5817
    @bossgamer5817 ปีที่แล้ว +1

    Do a short video about how to make a cutscene in Roblox

    • @bossgamer5817
      @bossgamer5817 ปีที่แล้ว +1

      Also congrats on 321 subs

  • @mpsp1911
    @mpsp1911 ปีที่แล้ว

    hey how do i make a skill thats like a projectile but is stuck to the ground

  • @leizelxoxg9199
    @leizelxoxg9199 3 วันที่ผ่านมา

    At 9:08 my script keeps saying that " "RightGripAtachment" is not a valid member of RightArm" How do i fix it?

  • @pikachugamerboi429
    @pikachugamerboi429 ปีที่แล้ว

    Everything worked for me, the animation played and stuff, but it wont summon the fireball
    and it said that "Summon is not a valid member of Backpack "Players."My Username".Backpack" . How do I fix this?

  • @TiwiniStraker
    @TiwiniStraker 5 หลายเดือนก่อน

    can i put the scripts into my sword?

  • @sagerathefox
    @sagerathefox ปีที่แล้ว +1

    If you still read these comments, everything works fine, except the fact that when I equip it, it just falls under the floor rather than throw. What can I do to fix that?

    • @CLD296
      @CLD296 ปีที่แล้ว +1

      Anchor it

  • @kanekigameryt1617
    @kanekigameryt1617 28 วันที่ผ่านมา

    How do I put damage on it?

  • @x_d990
    @x_d990 ปีที่แล้ว

    can you make tutorial on lvl system?

  • @CodeUserSuperSUs
    @CodeUserSuperSUs 3 หลายเดือนก่อน

    when shield and curveshot

  • @InternDOhioSUNEM
    @InternDOhioSUNEM 6 หลายเดือนก่อน

    but what if i used a gun that had no animation

  • @General_Deghant
    @General_Deghant ปีที่แล้ว

    How do you make naval warfare

  • @TheShadow7771
    @TheShadow7771 ปีที่แล้ว +1

    For some reason when I follow this tutorial, my avatar rotates around and the projectile stays perfectly still when I try to throw it. I made the projectile anchored and massless, but it still does not move.

    • @samuelman7349
      @samuelman7349 ปีที่แล้ว

      This happened to me too ^

    • @BapsStudio
      @BapsStudio ปีที่แล้ว

      the projectile needs to get unanchored in the script.

  • @noobyyeh3482
    @noobyyeh3482 ปีที่แล้ว +2

    Good tutorial but could you help me for adding damage to the projectile ?

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว +1

      you can add a touched event inside of a script inside of the projectile which damages the player it touches!

    • @noobyyeh3482
      @noobyyeh3482 ปีที่แล้ว

      @@SnakesRobbs ty bro :)

  • @SonicB1ast12
    @SonicB1ast12 ปีที่แล้ว

    how to make it so you need to press button 1 to make it do it

  • @ohno3358
    @ohno3358 ปีที่แล้ว +1

    Does anyone know how to fix the part at the end without having to destroy it automatically? I wanna make it so when u launch another fireball the other one just keeps going unaffected without having to destroy it

    • @imagineeatt
      @imagineeatt 11 หลายเดือนก่อน

      You should change the wait time for it to destroy. Like maybe wait(5) or how long u want it to take before it destroys

    • @cossieboy_8279
      @cossieboy_8279 10 หลายเดือนก่อน

      could use debris service idk

  • @rashy15
    @rashy15 ปีที่แล้ว

    dont put event connections inside of event connections

  • @Corcim
    @Corcim ปีที่แล้ว

    I've followed every step tho the throwing doesn't work, has anyone got any advice on what to do to fix that?

    • @cztherine
      @cztherine 10 หลายเดือนก่อน

      this one is outdated, try the new video

  • @waseemshahnawaz1629
    @waseemshahnawaz1629 ปีที่แล้ว +1

    Can u make a tutorial on how to make a sword skill, please?

  • @Terrarian_World678
    @Terrarian_World678 6 หลายเดือนก่อน

    can you make sword projectile like a terra blade?

    • @Terrarian_World678
      @Terrarian_World678 5 หลายเดือนก่อน

      @weerawatR15 Same, i make Zenith with rework script

  • @teeberticles
    @teeberticles 8 วันที่ผ่านมา

    Wait tf? How did u get the character by getting starterpack?

  • @SafeZone26
    @SafeZone26 ปีที่แล้ว

    it did not work fro me please i need help

  • @JustSpotek
    @JustSpotek ปีที่แล้ว

    i can't find the particles

  • @AlexDoge11
    @AlexDoge11 ปีที่แล้ว

    Can you please write the script in the description

  • @badpigges7981
    @badpigges7981 ปีที่แล้ว

    I am having problems with the right arm as Right Arm is not a valid member of Model

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว

      If your game is r15 make it RightHand

  • @bh2b8121
    @bh2b8121 ปีที่แล้ว +1

    please make a sword skill tutorial

  • @fancymangames1925
    @fancymangames1925 ปีที่แล้ว

    when i type local summon = script.Parent.Summon it says i should do local summon = script.Parent["summon"]. Is this correct?

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว +1

      no, do script.Parent.Summon

  • @Avratix
    @Avratix ปีที่แล้ว

    How do you use markers in moon animator?

    • @Avratix
      @Avratix ปีที่แล้ว

      nvm i figured it out like 30 min after that we good

  • @hellobye8817
    @hellobye8817 ปีที่แล้ว +1

    what does "Destroy it after a second after the throw event" mean
    (im new to scripting)

    • @Luxhalano
      @Luxhalano ปีที่แล้ว

      After the throw event, type:
      wait(1)
      projectile:Destroy()

    • @hellobye8817
      @hellobye8817 ปีที่แล้ว +1

      @@Luxhalano Omg thank you so much u have helped me so much

    • @Luxhalano
      @Luxhalano ปีที่แล้ว

      No problem

  • @Scoutaro_gaming
    @Scoutaro_gaming 8 วันที่ผ่านมา

    Doesn't seem to weld properly no matter what I do :( I followed the video directly as well.

  • @ilyass131
    @ilyass131 ปีที่แล้ว

    what should i do to make it deals damage to someone

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว

      Add a touched event inside the projectile

  • @AquaMistMB
    @AquaMistMB ปีที่แล้ว +1

    I copied everything, but when I turn on projectile on test the projectile is on the floor and not in my hand

    • @rategg3791
      @rategg3791 ปีที่แล้ว

      SAME FOR ME TOO

    • @Luxhalano
      @Luxhalano ปีที่แล้ว

      anchor it

  • @Bacon_3365
    @Bacon_3365 10 หลายเดือนก่อน

    what time to we skip it if we dont add any markers

    • @SnakesRobbs
      @SnakesRobbs  10 หลายเดือนก่อน

      You can play the animation and try to work out when you want something to happen!

    • @Bacon_3365
      @Bacon_3365 10 หลายเดือนก่อน

      oh ok@@SnakesRobbs

    • @Bacon_3365
      @Bacon_3365 10 หลายเดือนก่อน

      thanks:D@@SnakesRobbs

  • @fwooch
    @fwooch ปีที่แล้ว

    i set my left ball on fire

  • @hehehehehehehhh1
    @hehehehehehehhh1 5 หลายเดือนก่อน

    why does it say right arm isnt a valid member of workspace

    • @Shieda_Kev
      @Shieda_Kev 2 หลายเดือนก่อน

      bc right arm is a valid member of ur character, not workspace

  • @AlexDoge11
    @AlexDoge11 ปีที่แล้ว

    Can u teach us how to make story game pls

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว

      i could try, but i would need more people to want me to do it so i would know if it would get views or not

    • @AlexDoge11
      @AlexDoge11 ปีที่แล้ว

      @@SnakesRobbs ok

    • @insertusernamehere8125
      @insertusernamehere8125 ปีที่แล้ว

      eh, i feel like that's a bit too specific and wont get that many views

    • @insertusernamehere8125
      @insertusernamehere8125 ปีที่แล้ว

      i like tutorials like these that are about small but useful things like projectiles, skills etc

  • @Leafy597
    @Leafy597 ปีที่แล้ว

    Loving the MK8 music!! Jesus Christ loves you all, he died on the cross and rose from the dead on the third day! In doing this, he took the payment for our sins if we accept it. Hope you will, love to you all and God bless

  • @noobart1139
    @noobart1139 ปีที่แล้ว

    does it do damage?

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว

      It doesnt but you can add a touched event in the projectile

  • @pudellok5267
    @pudellok5267 ปีที่แล้ว

    idk why but the animation doens't run, and the projectile dont get in my hand.
    is there anything wrong with my code?
    localscript:
    local db = false
    local dbtime = 1
    script.Parent.Activated:Connect(function()

    if db == false then
    db = true

    local summon = script.Parent.Summon
    local throw = script.Parent.Throw

    local char = script.Parent.Parent
    local humanoid = char.Humanoid
    local anim = humanoid:LoadAnimation(script.Animation)
    anim:Play()

    anim:GetMarkerReachedSignal("Summon"):Connect(function()
    summon:FireServer(char)
    end)

    anim:GetMarkerReachedSignal("Throw"):Connect(function()
    throw:FireServer()
    end)

    wait(dbtime)
    db = false
    end



    end)
    Script:
    local summon = script.Parent.Summon
    local throw = script.Parent.Throw
    local ta = game:GetService("TweenService")
    summon.OnServerEvent:Connect(function(player, char)

    local projectile = script.FireBall:Clone()
    local humrp = char.HumanoidRootPart

    projectile.Parent = char["Right Arm"]
    projectile.CFrame = char["Right Arm"].RightGripAttachment.WorldCFrame
    local tween = ta:Create(projectile, TweenInfo.new(0.1), {Transparency = 0})
    tween:Play()
    local weld = Instance.new("WeldConstraint", projectile)
    weld.Part0 = projectile
    weld.Part1 = projectile.Parent

    throw.OnServerEvent:Connect(function()
    local bv = Instance.new("BodyVelocity", projectile)
    bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
    bv.Velocity = humrp.Cframe.LookVector * 20


    end)


    end)

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว

      is your animation definitely action type? and if it is then is the id definitely inside the animation object in the localscript?

    • @pudellok5267
      @pudellok5267 ปีที่แล้ว

      @@SnakesRobbs yeah i made the animation, got the id and putted the animation in the object

  • @l.b.2949
    @l.b.2949 ปีที่แล้ว +1

    He scripted while he was in a secret cave with Yoshi xd.

  • @coolwalmart
    @coolwalmart 12 วันที่ผ่านมา

    someone paste the script in the comments

  • @Not_A_Lazy_Dev
    @Not_A_Lazy_Dev ปีที่แล้ว +2

    to load animation in 2023 you need to do this :
    humanoid.Animator:LoadAnimation("Your Animation Here")
    not
    humanoid:LoadAnimation("Your Animation Here")

    • @randomcat1224
      @randomcat1224 3 หลายเดือนก่อน

      loadanimation is only deprecated for r15, it works just fine on r6

    • @Not_A_Lazy_Dev
      @Not_A_Lazy_Dev 3 หลายเดือนก่อน

      @@randomcat1224 yea srry on my old pc it worked like that now it works just fine

  • @xD3mon03
    @xD3mon03 ปีที่แล้ว

    it doesnt work :[

  • @UnluckyKiryu
    @UnluckyKiryu ปีที่แล้ว

    I made everthing right but the animation isnt working...

  • @LeonDrew
    @LeonDrew ปีที่แล้ว

    Can u speak in ur vids. I’m dyslexic and can’t read

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว +1

      maybe

    • @fwooch
      @fwooch ปีที่แล้ว +1

      And typing this with no grammatic error was no problem? lol

    • @yourmobilegamer1234
      @yourmobilegamer1234 ปีที่แล้ว

      @@fwooch someone invented a speech and then it types it, you normally press your spacebar in phone and a mic will pop up

    • @fwooch
      @fwooch ปีที่แล้ว

      @@yourmobilegamer1234 I was joking and he isnt dyslexic but yeah I forgot about that

  • @SokDoesStuff
    @SokDoesStuff 3 หลายเดือนก่อน

    How can I fix this? Players.Sokmongkol999.Backpack.Projectile.Script:7: attempt to index nil with 'HumanoidRootPart' - Server - Script:7

  • @NotKings356
    @NotKings356 ปีที่แล้ว

    i am ssorry but any video without a mic in it is just to hard to follow. total L

  • @NamLe-ep1ve
    @NamLe-ep1ve ปีที่แล้ว +1

    in the output it said "Players.(my roblox account name).Backpack.Fireball.Script11:attempt to index nil with 'Right Arm'". I did put a print(char) and it said "nil". Here's the full script:
    local shoot = script.Parent.Shoot
    local ts = game:GetService("TweenService")
    shoot.OnServerEvent:Connect(function(player:Player, char)
    local projectile = script.Projectile:Clone()

    print(char)

    projectile.Parent = char["Right Arm"]
    projectile.CFrame = char["Right Arm"].RightGripAttachment.WorldCFrame
    local tween = ts:Create(projectile, TweenInfo.new(0.25), {Transparency = 0})
    tween:Play()
    local weld = Instance.new("WeldConstraint")
    weld.Part0 = projectile
    weld.Part1 = projectile.Parent
    for i,v in pairs(projectile:GetChildren()) do
    if v:IsA("ParticleEmitter") then
    v.Enabled = true
    end
    end
    print("worked")
    end)

    • @SirGa1actic
      @SirGa1actic 7 หลายเดือนก่อน

      Try putting a . in between char and ["Right Arm"]. -Sorry, a bit late

    • @EktoAnim
      @EktoAnim 6 หลายเดือนก่อน

      Just do
      local char = player.Character
      That should fix it

  • @ZechTheDestroyer
    @ZechTheDestroyer ปีที่แล้ว +1

    I'm having a problem where the projectile isn't following my hand like in your video this here is the code
    Script:
    local summon = script.Parent.Summon
    local throw = script.Parent.Throw
    local ts = game:GetService("TweenService")
    summon.OnServerEvent:Connect(function(player, char)
    local projectile = script.Projectile:Clone()
    local humrp = char.HumanoidRootPart

    projectile.Parent = char["Right Arm"]
    projectile.CFrame = char["Right Arm"].RightGripAttachment.WorldCFrame
    local tween = ts:Create(projectile, TweenInfo.new(0.25, {Transparency = 0}))
    tween:Play()
    local weld = Instance.new("WeldConstraint", projectile)
    weld.Part0 = projectile
    weld.Part1 = projectile.Parent
    for i,v in pairs(projectile:GetChildren()) do
    if v:IsA("Trail") or v:IsA("ParticleEmitter") then
    v.Enabled = true
    end
    end

    throw.OnServerEvent:Connect(function()
    local bv = Instance.new ("BodyVelocity", projectile)
    end)
    end)
    Local Script:
    local db = false
    local dbtime = 1
    script.Parent.Activated:Connect(function()
    if db == false then
    db = true

    local summon = script.Parent.Summon
    local throw = script.Parent.Throw

    local char = script.Parent.Parent
    local humanoid = char.Humanoid
    local anim = humanoid:LoadAnimation(script.Animation)
    anim:Play()

    anim:GetMarkerReachedSignal("Summon") :Connect(function()
    summon:FireServer(char)
    end)
    anim:GetMarkerReachedSignal("Throw") :Connect(function()
    throw:FireServer()
    end)

    wait(dbtime)
    db = false
    end
    end)

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว

      Make sure your game type matches your script so if your game is r15 itd be “Right Hand”

    • @ZechTheDestroyer
      @ZechTheDestroyer ปีที่แล้ว

      @@SnakesRobbs the game type does matches the script and it still does not work