How to make a SHOOTING SYSTEM in Roblox Studio | Tutorial

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 148

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

    SUPER IMPORTANT - make sure your ViewModel has a "Muzzle" component or it will not shoot. The end of your guns barrel must be named "Muzzle"

  • @illeq
    @illeq 4 місяці тому +3

    NO WAY DUDE I WAS LITERALLY USING THE VIEWMODEL TUTORIAL HOURS AGO AND I WAS STUCK ON THE SHOOTING PART THE UA-cam ALGORITHM JUST BLESSED ME

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

      also ive been having some collision errors with the viewmodels because for some reason the collisions of the parts just decide to turn on right when i playtest the game 😭i need help on this (it literally flings my avatar and lets me double jump)
      edit: i solved it by removing the humanoid

    • @NightTimeDevelopments
      @NightTimeDevelopments  4 місяці тому +1

      @@illeq Glad you found this video helpful

  • @Samflam-c1d
    @Samflam-c1d 22 дні тому

    These vids are a amazing, Game dev so much more convenient!

  • @Rickythefatrat
    @Rickythefatrat 22 дні тому +1

    could you help me, it would mean alot!
    hello. ive seen you do a reload animation for the FN five-Seven pistol, i am doing a main game where that pistol is the main gun they use, but in order for me to keep working on the game progress, i will have to switch to using AK74, which i sadly dont want. when i followed the steps, changing the things it said i had to , but sadly it did not worked. even if it did, it would be really wrong as the reload would be completey different, same with shooting. can you please help me out? can you make a video explaining how i can add all of these steps together into my FN five-Seven? if you could combine the fn five seven pistol reload video into with this video maybe, or re-explain how to do the reload with this video, i would be super happy! i would watch the full thing no matter the length. i really dont want to forget about this game by giving up. it will mean the world to me if you help me, ill put your avatar and name in my credits! thank you so much, i hope you have an amazing day. if you have any questions, please ask me.

    • @NightTimeDevelopments
      @NightTimeDevelopments  21 день тому +1

      I'll do my best to help you! You don't actually need to do it with a main gun AK, you can use any view model. Also I will be remaking the whole tutorial series in about a month.

    • @Rickythefatrat
      @Rickythefatrat 21 день тому +1

      THANK YOU SO MUCH! I will definetley be waiting for that new tutorial! Thank you so much man, I’m so happy!

  • @pedroanimados83
    @pedroanimados83 Місяць тому +1

    Still not working danm

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

    finnaly

  • @misterbush5151
    @misterbush5151 28 днів тому

    doesnt work
    error1:
    Workspace.DoDoSaB.Character:147: attempt to index nil with 'Stop'
    error2:
    Workspace.DoDoSaB.Character:863: attempt to index nil with 'maxAmmo'
    error3prob: (client)
    Requested module experienced an error while loading
    error4prob: (server)
    Requested module experienced an error while loading
    i did not mess with gui and didnt change anything except the gun name into M16

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

    Added a part to the gun, named it Muzzle, positioned it in the barrel, created a weld to the handle and it does not shoot

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

      any error codes in the output?

    • @danger15306
      @danger15306 Місяць тому

      @@NightTimeDevelopments Same here, used your model but it doesn't work, the main reason is that it failed to do the animations, Because oof all of them are all ERRORS. :|

    • @NightTimeDevelopments
      @NightTimeDevelopments  Місяць тому

      @@danger15306 just make anims

    • @danger15306
      @danger15306 Місяць тому

      @@NightTimeDevelopments I am and oh man, making the knife animation is a pain.

    • @NightTimeDevelopments
      @NightTimeDevelopments  Місяць тому

      @@danger15306 yeah, takes time

  • @flaronedge
    @flaronedge 11 днів тому

    When I finish the tutorial and try the game it doesn't work and the output says Failed to load animation with sanitized ID

  • @andreianitei
    @andreianitei 2 дні тому

    @NightTimeDevelopments i found a bug that when i play the animSaves and the AnimationController is making the others animations fail

  • @Boz98467
    @Boz98467 4 місяці тому +1

    bless your soul

  • @Wafflesdakalinuis
    @Wafflesdakalinuis 4 місяці тому +4

    Mine has 1000 lines of code but im not done yet so we will see if it works

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

      let me know

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

      @@NightTimeDevelopments it did not but i think i might have done somthing wrong

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

      @@NightTimeDevelopments its most likely my fault amazing video btw

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

      @@Wafflesdakalinuis Thanks bro, sorry that it didn't work for you

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

      @@NightTimeDevelopments its alright like i said its my fault i most likely did something wrong

  • @pck3t
    @pck3t 4 місяці тому +1

    Hmm. Having issues.. I believe I followed all steps including pinned comment but right now its not working. The bob effect was added. The ads stopped working. The gun model actually disappeared, though I found when I removed the AnimationController we just added, it reappeared. Not sure how to troubleshoot this. May just try again in a scratch studio and import it if it works

  • @BaconPlaysWr
    @BaconPlaysWr 15 днів тому

    I have one problem, it's with the Reload animation. The arms move as animated but the gun just wont move. I tried editing the Motor6D/joints and nothing worked.

    • @NightTimeDevelopments
      @NightTimeDevelopments  14 днів тому

      is the gun rigged properly?

    • @BaconPlaysWr
      @BaconPlaysWr 14 днів тому

      @@NightTimeDevelopments I think so, all of the gun parts are rigged to the Main part

    • @NightTimeDevelopments
      @NightTimeDevelopments  14 днів тому

      @@BaconPlaysWr Joints or welds?

    • @BaconPlaysWr
      @BaconPlaysWr 14 днів тому

      @NightTimeDevelopments Joint

    • @BaconPlaysWr
      @BaconPlaysWr 14 днів тому

      @@NightTimeDevelopments Is it because the gun parts are a BasePart and not a Mesh? I tried with a gun that uses meshes and it works

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

    can you make a vidio on how to change the sound because mine does not work

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

      yeah its super easy, its just a file with an id in it that gets played thrue code

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

    This game has been open sourced for you - ua-cam.com/video/MwzK0HbjOPE/v-deo.html

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

    I seem to make a misstake every video, my gun isnt working, showing or making noise what might i have done wrong? i did make sure the barrel end was named Muzzle, i copied the script over and i think its all in the right place. i also made sure to change it from AK74 to the gun im using

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

      eh, i restored the previous game file and im going to try it again later

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

      ive tried again but the gun just doesnt show, all the movement animations are there but there is no gun at all

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

      Are there any error codes in the output?

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

      @@NightTimeDevelopments none that i can find but im not 100% sure where they would show if there were any

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

      @@NightTimeDevelopments im not very good with scripting, still learning everything

  • @Goldenroblox1
    @Goldenroblox1 15 днів тому

    hello your script is till 600 or 700 but when i copy the framework script and paste the new one the new script is 1000 lines

  • @silverzet3211
    @silverzet3211 2 місяці тому

    can you help me?
    in the video ( How to make a SHOOTING SYSTEM in Roblox Studio | Tutorial ) (time / 9:02) i made how he told to name those 2 parts the same name how you have your model named ( which for me is (AK47) but when i press to play my gun viewmodel is not showing up ( plus on the FrameWork-Server i have 1002 lines of script while the he in the video has 698 of lines)
    can you help me???

    • @NightTimeDevelopments
      @NightTimeDevelopments  2 місяці тому

      code legth is fine, are there error codes?

    • @silverzet3211
      @silverzet3211 2 місяці тому

      @NightTimeDevelopments are you sure its right? You had 698 and i have 1002

  • @Shave109
    @Shave109 24 дні тому

    For some reason whenever I add the Framework-Server script the gun just disappears

    • @NightTimeDevelopments
      @NightTimeDevelopments  23 дні тому

      error codes?

    • @BaconPlaysWr
      @BaconPlaysWr 15 днів тому

      It's because of the FireClient part, I deleted it and mine works perfectly.

    • @adam95che
      @adam95che 3 дні тому

      @@BaconPlaysWr bro what is fire client part

  • @sygonixx
    @sygonixx 4 місяці тому +1

    Thanks Alot, but do you know how to reupload the animations to get a personal ID because there is an error saying Faild to load animations with sanitized ID ...

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

    When i added the server script (FrameWork-Server), my viewmodel doesn't show up and doesn't work. I added the animations and everything; There was also no errors in the output for some reason.

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

      that's weird, because the server script doesn't really affect the view models, you can download the game for cross reference and see what's wrong - ua-cam.com/video/MwzK0HbjOPE/v-deo.html

  • @roccocop5348
    @roccocop5348 4 місяці тому +1

    Animation doesn’t work

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

      did you download the file with the animations?
      and put it into the server storage?

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

      @@NightTimeDevelopments yeah

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

      @@roccocop5348 looks like you will have to re-do the Animations then, sorry
      here is a vid on that - ua-cam.com/video/Ou4sYN_9yE0/v-deo.html

  • @cirens777
    @cirens777 Місяць тому

    So, if I do viewmodel, can I move the head that my viewmodel will look like a call of duty viewmodel?

  • @cirens777
    @cirens777 Місяць тому

    Can you do tutorial if my viewmodel is in inventory? (I can choose them like tool)

  • @cirens777
    @cirens777 Місяць тому

    Help, I did viewmodel from your tutorial again (because my previous viewmodel was not from your tutorial and the shooting system is not working). So, at start, the viewmodel appears on screen but after this tutorial, it's not appearing. Can you help me?

    • @NightTimeDevelopments
      @NightTimeDevelopments  Місяць тому

      error codes?

    • @cirens777
      @cirens777 Місяць тому

      @NightTimeDevelopments maybe

    • @NightTimeDevelopments
      @NightTimeDevelopments  Місяць тому

      @@cirens777 no, what are the error codes?

    • @cirens777
      @cirens777 Місяць тому

      @@NightTimeDevelopments idk, here's no electricity in my city 💀

    • @cirens777
      @cirens777 Місяць тому

      ​@@NightTimeDevelopments So, I checked the code, everything is fine, maybe here's a mistake on object names?

  • @roccocop5348
    @roccocop5348 4 місяці тому +1

    Idk why it doesn’t work for me

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

      what exactly doesent?

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

      @@NightTimeDevelopmentslike there’s errors in the animation and it doesn’t appear

  • @BkGameTv55
    @BkGameTv55 24 дні тому

    Sir my view model don't show up how to fix that?

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

    is mobile support gonna be added?

  • @Ggeez19-c8y
    @Ggeez19-c8y 2 місяці тому

    My Viewmodel doesn't show up when I test it

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

    It failed to load the animations

    • @NightTimeDevelopments
      @NightTimeDevelopments  2 місяці тому

      O perfect, everything works, all u have to do is make up the animations, I have like 3 vids on that

    • @MatthewWalles
      @MatthewWalles 2 місяці тому

      @@NightTimeDevelopments ok

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

    Can other players see you w/ the weapon reloading it and stuff

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

    hey for some reason when i play the viewmodel does not show up. Can you tell me what i did wrong?

  • @breadhawj
    @breadhawj 21 день тому

    My gun just disappeared?

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

    Why is my 1000 lines and urs is 700 is that a problem?

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

      no, its totally fine, when you copy and paste it ads a bunch of spaces for no reason

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

    how can i add the reload and equip etc, sounds

  • @ThịnhDương-l5w
    @ThịnhDương-l5w 4 місяці тому

    for some reason i can only shoot 1 time :/

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

      There is an error either in the code or Module folder

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

      If its an animation problem then here is a vid on how to fix it - ua-cam.com/video/seYrtlfAhJg/v-deo.html

    • @ThịnhDương-l5w
      @ThịnhDương-l5w 4 місяці тому

      @@NightTimeDevelopments i cant find the error lol

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

      @@ThịnhDương-l5w error code in the output box

    • @ThịnhDương-l5w
      @ThịnhDương-l5w 4 місяці тому

      @@NightTimeDevelopments the output say 19:24:56.435 Plugin loaded - Server
      19:24:57.023 Plugin loaded - Client
      19:24:57.964 Backup Folder already created! - Server
      19:24:57.965 Backup GUI Handler created! - Server
      19:24:58.549 Backup Folder already created! - Client
      19:24:58.549 Backup GUI Handler created! - Client
      19:24:59.783 Muzzle is not a valid member of Model "Workspace.Camera.AK47" - Client - Framework - Client:978
      19:24:59.784 Stack Begin - Studio
      19:24:59.784 Script 'Players.thinhiuhe.PlayerScripts.Framework - Client', Line 978 - Studio - Framework - Client:978
      19:24:59.784 Stack End - Studio and i have noidea what it's mean :/

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

    Can it equip and unequip?

    • @NightTimeDevelopments
      @NightTimeDevelopments  4 місяці тому +1

      Yes kind of if you click "3", but I will be going over gun switching and equipping in the next video

  • @adriaxn_nn
    @adriaxn_nn 2 місяці тому

    When i test play my viewmodel doesnt show up.

    • @NightTimeDevelopments
      @NightTimeDevelopments  2 місяці тому

      what are the error codes in the output?

    • @adriaxn_nn
      @adriaxn_nn 2 місяці тому

      @@NightTimeDevelopments It said something about animation and UpperTorso idk

    • @NightTimeDevelopments
      @NightTimeDevelopments  2 місяці тому

      @@adriaxn_nn well I have to know what it said to help