How to make a SIMPLE PROJECTILE in ROBLOX STUDIO!

Поділитися
Вставка
  • Опубліковано 30 вер 2024

КОМЕНТАРІ • 137

  • @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. 9 місяців тому

      @@Avratix From 1.5k to 2.77 k sheeesh

  • @leizelxoxg9199
    @leizelxoxg9199 2 місяці тому +2

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

    • @MrBaller-sl5il
      @MrBaller-sl5il 2 місяці тому +1

      You misspelled its RightGripAttachment not RightGripAtachment

  • @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!

  • @astronaut_69
    @astronaut_69 Рік тому +4

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

  • @zythgalaxy
    @zythgalaxy Рік тому +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!

    • @zythgalaxy
      @zythgalaxy Рік тому

      @@SnakesRobbs ty bro :)

  • @KJBWILDIN
    @KJBWILDIN 12 днів тому

    So nobody else’s said it was wrong at attempt to call a instance value

  • @potato-0uy
    @potato-0uy 2 місяці тому

    PLZ REALISE THAT IF A :CONNECT() LINE RUNS MORE THAN ONCE, IT WILL CONTINUOSLY RECONNECT THE SAME SCRIPT OVER AND OVER AGAIN, LEADING TO RLY WEIRD GLITCHES LIKE THE ONE AT THE END OF THEE VID

  • @zerdgeofficial
    @zerdgeofficial 3 місяці тому

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

  • @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

  • @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

  • @NotKings356
    @NotKings356 Рік тому

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

  • @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 Рік тому

      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 Рік тому

      could use debris service idk

  • @coolwalmart
    @coolwalmart 3 місяці тому

    someone paste the script in the comments

  • @bossgamer5817
    @bossgamer5817 Рік тому +1

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

  • @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

  • @kanekigameryt1617
    @kanekigameryt1617 3 місяці тому

    How do I put damage on it?

  • @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 5 місяців тому

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

  • @Scoutaro_gaming
    @Scoutaro_gaming 3 місяці тому

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

  • @PlatineAsd
    @PlatineAsd Рік тому +1

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

  • @ObliviousNoob1
    @ObliviousNoob1 Рік тому

    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?

  • @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

  • @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.

  • @l.b.2949
    @l.b.2949 Рік тому +1

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

  • @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?

  • @L.M2101
    @L.M2101 Рік тому +1

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

  • @savilerickson-torres2316
    @savilerickson-torres2316 2 місяці тому

    the tutorial didnt even work for me

  • @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

  • @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

  • @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.

  • @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?

  • @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

  • @waseemshahnawaz1629
    @waseemshahnawaz1629 Рік тому +1

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

  • @dominator0728
    @dominator0728 4 місяці тому

    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?

  • @Waxdm1
    @Waxdm1 Рік тому +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 9 місяців тому

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

    • @EktoAnim
      @EktoAnim 8 місяців тому

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

  • @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!

  • @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 Рік тому

      this one is outdated, try the new video

  • @mpsp1911
    @mpsp1911 Рік тому

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

  • @yumcheese2513
    @yumcheese2513 8 місяців тому

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

  • @SonicB1ast12
    @SonicB1ast12 Рік тому

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

  • @InternDOhioSUNEM
    @InternDOhioSUNEM 8 місяців тому

    but what if i used a gun that had no animation

  • @TiwiniStraker
    @TiwiniStraker 8 місяців тому

    can i put the scripts into my sword?

  • @bh2b8121
    @bh2b8121 Рік тому +1

    please make a sword skill tutorial

  • @CodeUserSuperSUs
    @CodeUserSuperSUs 6 місяців тому

    when shield and curveshot

  • @10szym44
    @10szym44 Рік тому

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

  • @SafeZone26
    @SafeZone26 Рік тому

    it did not work fro me please i need help

  • @AlexDoge11
    @AlexDoge11 Рік тому

    Can you please write the script in the description

  • @fancymangames1925
    @fancymangames1925 Рік тому

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

  • @koainanis5840
    @koainanis5840 Рік тому

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

  • @hehehehehehehhh1
    @hehehehehehehhh1 8 місяців тому

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

    • @Shieda_Kev
      @Shieda_Kev 4 місяці тому

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

  • @yumcheese2513
    @yumcheese2513 8 місяців тому

    REMEMBER ME WHEN YOU GET 2OOOOO SUBS

  • @Terrarian_World678
    @Terrarian_World678 9 місяців тому

    can you make sword projectile like a terra blade?

    • @Terrarian_World678
      @Terrarian_World678 8 місяців тому

      @weerawatR15 Same, i make Zenith with rework script

  • @rashy15
    @rashy15 Рік тому

    dont put event connections inside of event connections

  • @Ethan_Lyton_Hockey
    @Ethan_Lyton_Hockey Рік тому

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

  • @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

  • @General_Deghant
    @General_Deghant Рік тому

    How do you make naval warfare

  • @Avratix
    @Avratix Рік тому

    How do you use markers in moon animator?

    • @Avratix
      @Avratix Рік тому

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

  • @x_d990
    @x_d990 Рік тому

    can you make tutorial on lvl system?

  • @JustSpotek
    @JustSpotek Рік тому

    i can't find the particles

  • @ra1derz638
    @ra1derz638 Рік тому

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

  • @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

  • @ilyass131
    @ilyass131 Рік тому

    what should i do to make it deals damage to someone

    • @SnakesRobbs
      @SnakesRobbs  Рік тому

      Add a touched event inside the projectile

  • @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

  • @Bacon_3365
    @Bacon_3365 Рік тому

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

    • @SnakesRobbs
      @SnakesRobbs  Рік тому

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

    • @Bacon_3365
      @Bacon_3365 Рік тому

      oh ok@@SnakesRobbs

    • @Bacon_3365
      @Bacon_3365 Рік тому

      thanks:D@@SnakesRobbs

  • @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

  • @xD3mon03
    @xD3mon03 Рік тому

    it doesnt work :[

  • @noobart1139
    @noobart1139 Рік тому

    does it do damage?

    • @SnakesRobbs
      @SnakesRobbs  Рік тому

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

  • @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

  • @litteshif9067
    @litteshif9067 Рік тому

    Love you video really motivated alot

  • @fwooch
    @fwooch Рік тому

    i set my left ball on fire

  • @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 6 місяців тому

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

    • @Not_A_Lazy_Dev
      @Not_A_Lazy_Dev 6 місяців тому

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

  • @UnluckyKiryu
    @UnluckyKiryu Рік тому

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

  • @SokDoesStuff
    @SokDoesStuff 6 місяців тому

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