How To Make a Tool Dedicated VIEW MODEL in Roblox Studio | Roblox Studio Tutorials

Link to the Comprehensive Gun Model Kit: create.roblox.com/store/asset...
Socials 👥:
Twitter: / stuffynose69
Gaming Channel: / @stuffynose420
Timestamps ⏲️:
0:00 - Intro
0:12 - Setting Up
0:23 - Making the View Model
2:27 - Scripting the View Model
Music 🎶:
Warm Nights - Lakey Inspired
Chill Day - Lakey Inspired

Пікірлер: 152

  • @StuffyDev
    @StuffyDev2 ай бұрын

    For those of you that are having script issues or other issues, and can't figure it out yourself or the video doesn't help (somehow), then you can use the model below. Don't just blindly copy and paste the viewmodel, try recreating the viewmodel yourself using the video or else you won't learn anything and won't be able to expand on the viewmodel. create.roblox.com/store/asset/16897515665/FPS-ViewModel-by-StuffyDev

  • @JupiterDo0vid

    @JupiterDo0vid

    2 ай бұрын

    Thanks!

  • @Martial21396

    @Martial21396

    2 ай бұрын

    Where do i have to put the view model for it to work? Because when i spawn in it doesn't work.

  • @Martial21396

    @Martial21396

    2 ай бұрын

    also i can't find the gin kit anymore

  • @darkbard7

    @darkbard7

    2 ай бұрын

    i think ppl didnt weld the gun to the viewmodel

  • @ElPlatanoQueTeRebienta

    @ElPlatanoQueTeRebienta

    Ай бұрын

    Sooooo helpfull!!!!!

  • @Toto70Dev
    @Toto70DevАй бұрын

    Thanks for the turorial. You helped me a lot!

  • @Assasin_K_C137
    @Assasin_K_C1372 ай бұрын

    Bro, u just got another subscriber, I have been looking for this

  • @NebulaAccount
    @NebulaAccount3 ай бұрын

    truly an underrated channel

  • @victor90ro86
    @victor90ro862 ай бұрын

    under rated dev fr, ur amazing dude

  • @pepper1043
    @pepper1043Ай бұрын

    great tutorial and really good quality underated af

  • @Jamazie
    @Jamazie3 ай бұрын

    IT WORKS OMG THANK YOU SO MUCH

  • @matrixgeg
    @matrixgeg2 ай бұрын

    this video helped me to make my first view model!!

  • @groovesbum

    @groovesbum

    Ай бұрын

    bull shit

  • @super-rocco
    @super-rocco2 ай бұрын

    it worked! tysm

  • @Viunly
    @ViunlyАй бұрын

    i just want to say thank you, ive tried so many other videos that dont work, and this one actually works, keep up the good work

  • @niksiisieki

    @niksiisieki

    Күн бұрын

    ye but other players cant see the gun

  • @Viunly

    @Viunly

    20 сағат бұрын

    @@niksiisieki u can probably look up another video for that problem

  • @niksiisieki

    @niksiisieki

    19 сағат бұрын

    @@Viunly nah nvm i js used fe gun kit

  • @the_voices_wont_stop
    @the_voices_wont_stop3 ай бұрын

    bro when i saw you had a channel with programing tutorials i was not expecting to get lua flashbacks

  • @StuffyDev

    @StuffyDev

    3 ай бұрын

    HES MADE IT

  • @FantasminElOriginal
    @FantasminElOriginalАй бұрын

    thank you very much bro

  • @Parkerrr_1
    @Parkerrr_12 ай бұрын

    IT WORKS TYSM THIS IS SO FIRE

  • @niksiisieki

    @niksiisieki

    Күн бұрын

    works but other players cant see the gun

  • @sNIXerBars2009
    @sNIXerBars200928 күн бұрын

    To simplify the FP (First Person) script you can say "local player = game.Players.LocalPlayer player.CameraMode = 1" instead of that

  • @haze42
    @haze422 ай бұрын

    do you know or have ideas how to make sway work on mobile

  • @PaxProductions.
    @PaxProductions.2 ай бұрын

    for the end of the script, i can't really see what it is saying. does it say "renderstopped".

  • @wirhly
    @wirhly2 ай бұрын

    for some reason when I equip it the sway works but It moves me in the air and I can't move but I can still look around, I tried to fix it but nothings working do you know what the issue could be

  • @JogaradaGames
    @JogaradaGames2 ай бұрын

    hey, im having trobble with playing animations in the viewmodel, do you know how i could fix it?

  • @user-mr4ww8hx5u
    @user-mr4ww8hx5u25 күн бұрын

    underated dev

  • @lucaniser
    @lucaniserАй бұрын

    I got a question my gun and viewmodel doesnt show or is still invisible whenever I equip the gun

  • @super-rocco
    @super-rocco2 ай бұрын

    i owe you so much!

  • @yoburoml1304
    @yoburoml1304Ай бұрын

    so if i make another gun i need to copy the script and viewmodel?

  • @Vaihly
    @Vaihly22 күн бұрын

    Is it possible to animate the viewport when i press the left mouse button?

  • @Bloopet
    @Bloopet3 ай бұрын

    You should make a video on fist combat next 🙏

  • @navysimulatorcommunitycont6324
    @navysimulatorcommunitycont63243 күн бұрын

    is there a way to make the ViewModel have the clothing and skin colour of the user?

  • @user-ge3ug4td8y
    @user-ge3ug4td8yАй бұрын

    Thanks you for tutorial of roblox studio. You helped me with guns, cause it is a lot of broken or none working guns in toolbox. I'm creating a new game as same as RDR 2. I hope, I wiil be in Rock Star Games. RDR 3 is my dream. More likes for you.

  • @ismaproductions5421
    @ismaproductions54212 ай бұрын

    how do i make the third person tool invisible but visible to others

  • @greenqz
    @greenqz2 ай бұрын

    It works TYSM Will you do a part 2?

  • @niksiisieki

    @niksiisieki

    Күн бұрын

    other ppl cant see the gun

  • @_speedyhops8058
    @_speedyhops8058Ай бұрын

    would you be able to animate this??

  • @yoburoml1304
    @yoburoml1304Ай бұрын

    how do i animate it like reloading and shooting

  • @bagabagacheegaa
    @bagabagacheegaa12 күн бұрын

    what do i do if it shows up but its not connected to me?

  • @rblxcreations
    @rblxcreationsАй бұрын

    when i equipped my gun it didnt show on the screen

  • @BillyBeanCan
    @BillyBeanCan24 күн бұрын

    I have followed this step by step three times, and i still can't see the view model or gun

  • @FAGAME-pv4fl
    @FAGAME-pv4fl3 ай бұрын

    Good video bro you look like script teacher

  • @FLAIR114
    @FLAIR1143 ай бұрын

    can you write the code in the comments bc I messed it up

  • @LazyLimeTF2
    @LazyLimeTF22 ай бұрын

    Hey there I have a question, does the view model appear on just the players screen or does it show the model to people as well?

  • @StuffyDev

    @StuffyDev

    2 ай бұрын

    its only on the players screen, as its attached to their local camera

  • @LazyLimeTF2

    @LazyLimeTF2

    2 ай бұрын

    @@StuffyDev oh okay, thanks for the tutorial though👍

  • @bananajesus667

    @bananajesus667

    25 күн бұрын

    @@StuffyDev How should you create visuals for the other players?

  • @ebotics1231
    @ebotics123115 күн бұрын

    can you please put the tool local script in like a pastebin its really hard to copy down

  • @StuffyDev

    @StuffyDev

    14 күн бұрын

    use the model in the pinned comment

  • @GallonOfMilk3
    @GallonOfMilk328 күн бұрын

    The model doesnt show up i take the tool but nothing

  • @zinkdim8940
    @zinkdim89402 ай бұрын

    can u link the whole script plz

  • @CheezyOsky
    @CheezyOsky27 күн бұрын

    Pls, how to make it have recoil??

  • @zbiki8325
    @zbiki83252 ай бұрын

    2:32 (Just a reminder for me)

  • @Nyx3y
    @Nyx3yАй бұрын

    Can you put scrip in the comments it’s hard to read

  • @super-rocco
    @super-rocco2 ай бұрын

    is there a way to animate this using CFrame positions?

  • @StuffyDev

    @StuffyDev

    2 ай бұрын

    If you are talking about aim down sights then you can just create a transparent part near the aim part of the gun and then just align the camera to the part position. If you are talking about weapon firing and reload animation you are gonna have to use something like blender or moon animator I hope this is the answer you were looking for 😭

  • @super-rocco

    @super-rocco

    2 ай бұрын

    @@StuffyDev yes thanks!

  • @solevxii
    @solevxii2 ай бұрын

    I problem i have is that the viewmodel already shows up on screen without equipping the tool, I downloaded and used your model below and still have the same issue

  • @StuffyDev

    @StuffyDev

    2 ай бұрын

    if you used the model then its either you renamed something and then didn't update the scripts or you never ungrouped it from the folders, because I just tested the model and it works fine

  • @solevxii

    @solevxii

    2 ай бұрын

    @@StuffyDev Actually, I figured out the problem, I had a script from the last view mode; i had made with little experience and completely removed the old script and it works like a charm! Thank you

  • @bananajesus667
    @bananajesus66725 күн бұрын

    How do you create the server-side visuals to be seen by other players?

  • @niksiisieki

    @niksiisieki

    Күн бұрын

    fr

  • @ChrismasMonk
    @ChrismasMonk2 ай бұрын

    can you do this but make the gun shot and do damage. If not, please make a tutorial for it. -Please and Thank you

  • @StuffyDev

    @StuffyDev

    2 ай бұрын

    already have a tutorial thats on my channel

  • @ChrismasMonk

    @ChrismasMonk

    2 ай бұрын

    @@StuffyDev Oh, sorry I am gonna watch that now.

  • @ChrismasMonk

    @ChrismasMonk

    2 ай бұрын

    @@StuffyDev And also there is a bug when you look down your player walks. Can you fix that?

  • @OMARTHEREF541
    @OMARTHEREF5412 ай бұрын

    hi I'm having issues on the view model every time I equip the weapon it spawns at the place I created instead of in front of me I tried using your model scripts below but nothing is working. pls respond

  • @StuffyDev

    @StuffyDev

    2 ай бұрын

    if you used the model then its either you renamed something and then didn't update the scripts or you never ungrouped it from the folders, because I just tested the model and it works fine

  • @OMARTHEREF541

    @OMARTHEREF541

    2 ай бұрын

    @@StuffyDev thanks for replying ill see what it is thank you

  • @PokerRat

    @PokerRat

    2 ай бұрын

    @@OMARTHEREF541 Did you figure it out?

  • @OMARTHEREF541

    @OMARTHEREF541

    2 ай бұрын

    @@PokerRat Sadly no maybe it might the gun cause i uses a diff one

  • @PokerRat

    @PokerRat

    2 ай бұрын

    @@OMARTHEREF541 ah shoot same.

  • @milesring8262
    @milesring826211 күн бұрын

    One little problem you need visuals for other players as the viewModel is only local sided and is not visible to other players.

  • @niksiisieki

    @niksiisieki

    Күн бұрын

    what im saying do i put in normal script?

  • @Nyusk_
    @Nyusk_2 ай бұрын

    for me a random part just spawns when i use the gun and i cant walk cuz of the part

  • @DevKing_Phizo

    @DevKing_Phizo

    2 ай бұрын

    U did it wrong

  • @josh04811
    @josh048112 ай бұрын

    yoo does this work wit melees?

  • @StuffyDev

    @StuffyDev

    2 ай бұрын

    it works with anything that would be a tool in a players backpack

  • @JupiterDo0vid
    @JupiterDo0vid2 ай бұрын

    could you write the script in the comments or the description by any chance?

  • @greenqz

    @greenqz

    2 ай бұрын

    go to the new pinned comment put it in your game change the viewmodel to anything you want done

  • @Yougoslavia_
    @Yougoslavia_2 ай бұрын

    write the script in comment pls i need

  • @Hiddenherpetologist
    @Hiddenherpetologist2 ай бұрын

    whenever i hold the tool nothing happens but the model just appears in its original spot and i dont get a viewmodel

  • @StuffyDev

    @StuffyDev

    2 ай бұрын

    that means you screwed up with setting the viewmodels position to the camera, check what your view models name is along with the code underneath the runservice function

  • @manemiswaa

    @manemiswaa

    2 ай бұрын

    @@StuffyDev I also have the same problem but I literally used the Tool and StarterPlayerScripts in the model you provided. I made my own ViewModel by following the video

  • @manemiswaa

    @manemiswaa

    2 ай бұрын

    The viewmodel provided works perfectly fine tho, not mine

  • @manemiswaa

    @manemiswaa

    2 ай бұрын

    I believe that the problem is because of renaming the ViewModel itself and/or changing the ViewModel in game.ReplicatedStorage.ViewModel:Clone().Parent = Camera

  • @FR33_P1AY
    @FR33_P1AY4 күн бұрын

    can u give us the script?

  • @MrSixtenGaming
    @MrSixtenGamingАй бұрын

    didint really work for me, my gun just started to fly away XD

  • @Aika33700
    @Aika33700Ай бұрын

    local tool = script.Parent local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local Camera = workspace.Camera local RunService = game:GetService("RunService") local ViewModel local equipped = false tool.Equipped:Connect(function() equipped = true game.ReplicatedStorage.ViewModel:Clone().Parent = Camera end) tool.Unequipped:Connect(function() equipped = false ViewModel = Camera.Viewmodel ViewModel:Destroy() end) RunService.RenderStepped:Connect(function() if player.Character.Humanoid.Health

  • @FantasminElOriginal

    @FantasminElOriginal

    Ай бұрын

    Bro, is that script yours or is it one from the video?

  • @Aika33700

    @Aika33700

    Ай бұрын

    @@FantasminElOriginal i know that you are searching a script and yes is it one from the video

  • @FantasminElOriginal

    @FantasminElOriginal

    Ай бұрын

    @@Aika33700 good

  • @Aika33700

    @Aika33700

    Ай бұрын

    @@FantasminElOriginal ok.

  • @totlar

    @totlar

    Ай бұрын

    bro thanks, you saved my life!

  • @Lympify
    @Lympify27 күн бұрын

    yo Stuffy Dev i want help

  • @GGEZLLL
    @GGEZLLL2 ай бұрын

    how to make it so when your third person, your gun viewmodel is disabled and when I go first person, the viewmodel is enabled?

  • @DevKing_Phizo

    @DevKing_Phizo

    2 ай бұрын

    if player.CameraMode = 1 then put everything in this if loop

  • @GGEZLLL

    @GGEZLLL

    2 ай бұрын

    @@DevKing_Phizo when I do that, the viewmodel doesn't appear when I go first person or third person.

  • @DevKing_Phizo

    @DevKing_Phizo

    2 ай бұрын

    @@GGEZLLL hmm try and improvise idk it should have worked is the player local player?

  • @GGEZLLL

    @GGEZLLL

    2 ай бұрын

    @@DevKing_Phizo Oh now it worked ty!!!!!!!!!

  • @DevKing_Phizo

    @DevKing_Phizo

    2 ай бұрын

    @@GGEZLLL np!

  • @EclipseIsMe
    @EclipseIsMeАй бұрын

    Can you make it third person compatible?

  • @superduperbob

    @superduperbob

    Ай бұрын

    no thats why there is only arms use your brain

  • @RawOpsis

    @RawOpsis

    9 күн бұрын

    @@superduperbob damn broskie don't have to be that rude💀

  • @superduperbob

    @superduperbob

    9 күн бұрын

    @@RawOpsis sorry im a christian now but i still agree😅

  • @RawOpsis

    @RawOpsis

    9 күн бұрын

    @@superduperbob 👍

  • @GDrakosha
    @GDrakosha15 күн бұрын

    I don’t know why but my gun and viewmodel is invisible every time i equip my gun

  • @StuffyDev

    @StuffyDev

    14 күн бұрын

    try using the model in the pinned comment

  • @hartenon

    @hartenon

    14 күн бұрын

    @@StuffyDev still doesn't work

  • @goofysongs1722
    @goofysongs17222 ай бұрын

    i need help i cant see my view model gun

  • @YuckMaster3

    @YuckMaster3

    Ай бұрын

    same..

  • @user-yo6xc6ss9z
    @user-yo6xc6ss9z3 ай бұрын

    how can I fix the bug when the ViewModel stays in one place?

  • @user-yo6xc6ss9z

    @user-yo6xc6ss9z

    3 ай бұрын

    @@StuffyDev I did but now its invisible

  • @StuffyDev

    @StuffyDev

    3 ай бұрын

    @@user-yo6xc6ss9z try using this model, move everything to the correct places as stated in the folder names (make sure to ungroup the folders once moved to the right places): create.roblox.com/store/asset/16897515665/FPS-ViewModel-by-StuffyDev

  • @user-yo6xc6ss9z

    @user-yo6xc6ss9z

    3 ай бұрын

    @@StuffyDev it says i dont have perrmission

  • @user-yo6xc6ss9z

    @user-yo6xc6ss9z

    3 ай бұрын

    @@StuffyDev Im Sorry if im making you overwotk

  • @StuffyDev

    @StuffyDev

    3 ай бұрын

    @@user-yo6xc6ss9z nah you good, idk why it doesn't give you permission to download it, lemme see how i can fix it

  • @GallonOfMilk3
    @GallonOfMilk328 күн бұрын

    Bro my model doesnt show up

  • @GDrakosha

    @GDrakosha

    15 күн бұрын

    Same

  • @FLAIR114
    @FLAIR1143 ай бұрын

    pls

  • @superduperbob
    @superduperbobАй бұрын

    i tried your tutorial and someone else's but it still doesnt work

  • @StuffyDev

    @StuffyDev

    Ай бұрын

    use the model in the pinned comment

  • @superduperbob

    @superduperbob

    Ай бұрын

    @@StuffyDev k

  • @superduperbob

    @superduperbob

    Ай бұрын

    @@StuffyDev ill try later

  • @superduperbob

    @superduperbob

    Ай бұрын

    @@StuffyDev i tried it and it worked idk what i was doing wrong thanks tho

  • @can4249
    @can424919 күн бұрын

    who can copy that Script and give me?

  • @sadge6430
    @sadge64303 ай бұрын

    Kxv

  • @darkbard7

    @darkbard7

    2 ай бұрын

    ?

  • @TheIrishAnimatorGuy
    @TheIrishAnimatorGuy2 ай бұрын

    bro thanks theres so many people who are like "HErEs HoW tO gEt A gOoD gUn FiRst GiVE mE 100000000 RobUx TheN yOu WiLL gET It"

  • @Zephyrzev6kv
    @Zephyrzev6kvАй бұрын

    it does not shoot _ _ why is that

  • @niksiisieki

    @niksiisieki

    Күн бұрын

    he js gave viewmodel not a shooting script

  • @sadge6430
    @sadge64303 ай бұрын

    Uu

  • @Helptheenviornment
    @Helptheenviornment2 күн бұрын

    Please help me @StuffyDev when my tool is unequipped I still see the arms and the gun and I looked over my code and everything is right. If you need pictures please let me know and I can send them to you

  • @niksiisieki

    @niksiisieki

    Күн бұрын

    and other ppl cant see the gun

  • @erupto1234
    @erupto1234Ай бұрын

    scrip local tool = script.Parent local player = game.Players.LocalPlayers local character = player.Character or player.Characteradded:Wait() local Camera = workspace.Camera local RunService = game.Getservice("RunService") local uis = game:GetService("UserInputService") local ViewModel local equipped = false tool.Equipped:Connect(function() equipped = true game.ReplicatedStorage.ViewModel:clone().Parent = Camera end) tool.Unequipped:Connect(function() equipped = false ViewModel = Camera.ViewModel ViewModel:Destroy() end) local swayCF = CFrame.new() RunService.RenderStepped:Connect(function() if player.Character.Humanoid.Health

  • @avifff
    @avifff2 ай бұрын

    the hell is uis?

  • @Default_gg

    @Default_gg

    Ай бұрын

    User input service

  • @sadge6430
    @sadge64302 ай бұрын

    .

  • @LaminatRbx
    @LaminatRbx6 күн бұрын

    This is bad, you can not animate the viewmodel!

  • @MaybeLuke124
    @MaybeLuke12428 күн бұрын

    It doesn’t work