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
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
2 ай бұрын
Thanks!
@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
2 ай бұрын
also i can't find the gin kit anymore
@darkbard7
2 ай бұрын
i think ppl didnt weld the gun to the viewmodel
@ElPlatanoQueTeRebienta
Ай бұрын
Sooooo helpfull!!!!!
Thanks for the turorial. You helped me a lot!
Bro, u just got another subscriber, I have been looking for this
truly an underrated channel
under rated dev fr, ur amazing dude
great tutorial and really good quality underated af
IT WORKS OMG THANK YOU SO MUCH
this video helped me to make my first view model!!
@groovesbum
Ай бұрын
bull shit
it worked! tysm
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
Күн бұрын
ye but other players cant see the gun
@Viunly
20 сағат бұрын
@@niksiisieki u can probably look up another video for that problem
@niksiisieki
19 сағат бұрын
@@Viunly nah nvm i js used fe gun kit
bro when i saw you had a channel with programing tutorials i was not expecting to get lua flashbacks
@StuffyDev
3 ай бұрын
HES MADE IT
thank you very much bro
IT WORKS TYSM THIS IS SO FIRE
@niksiisieki
Күн бұрын
works but other players cant see the gun
To simplify the FP (First Person) script you can say "local player = game.Players.LocalPlayer player.CameraMode = 1" instead of that
do you know or have ideas how to make sway work on mobile
for the end of the script, i can't really see what it is saying. does it say "renderstopped".
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
hey, im having trobble with playing animations in the viewmodel, do you know how i could fix it?
underated dev
I got a question my gun and viewmodel doesnt show or is still invisible whenever I equip the gun
i owe you so much!
so if i make another gun i need to copy the script and viewmodel?
Is it possible to animate the viewport when i press the left mouse button?
You should make a video on fist combat next 🙏
is there a way to make the ViewModel have the clothing and skin colour of the user?
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.
how do i make the third person tool invisible but visible to others
It works TYSM Will you do a part 2?
@niksiisieki
Күн бұрын
other ppl cant see the gun
would you be able to animate this??
how do i animate it like reloading and shooting
what do i do if it shows up but its not connected to me?
when i equipped my gun it didnt show on the screen
I have followed this step by step three times, and i still can't see the view model or gun
Good video bro you look like script teacher
can you write the code in the comments bc I messed it up
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
2 ай бұрын
its only on the players screen, as its attached to their local camera
@LazyLimeTF2
2 ай бұрын
@@StuffyDev oh okay, thanks for the tutorial though👍
@bananajesus667
25 күн бұрын
@@StuffyDev How should you create visuals for the other players?
can you please put the tool local script in like a pastebin its really hard to copy down
@StuffyDev
14 күн бұрын
use the model in the pinned comment
The model doesnt show up i take the tool but nothing
can u link the whole script plz
Pls, how to make it have recoil??
2:32 (Just a reminder for me)
Can you put scrip in the comments it’s hard to read
is there a way to animate this using CFrame positions?
@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
2 ай бұрын
@@StuffyDev yes thanks!
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
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
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
How do you create the server-side visuals to be seen by other players?
@niksiisieki
Күн бұрын
fr
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
2 ай бұрын
already have a tutorial thats on my channel
@ChrismasMonk
2 ай бұрын
@@StuffyDev Oh, sorry I am gonna watch that now.
@ChrismasMonk
2 ай бұрын
@@StuffyDev And also there is a bug when you look down your player walks. Can you fix that?
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
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
2 ай бұрын
@@StuffyDev thanks for replying ill see what it is thank you
@PokerRat
2 ай бұрын
@@OMARTHEREF541 Did you figure it out?
@OMARTHEREF541
2 ай бұрын
@@PokerRat Sadly no maybe it might the gun cause i uses a diff one
@PokerRat
2 ай бұрын
@@OMARTHEREF541 ah shoot same.
One little problem you need visuals for other players as the viewModel is only local sided and is not visible to other players.
@niksiisieki
Күн бұрын
what im saying do i put in normal script?
for me a random part just spawns when i use the gun and i cant walk cuz of the part
@DevKing_Phizo
2 ай бұрын
U did it wrong
yoo does this work wit melees?
@StuffyDev
2 ай бұрын
it works with anything that would be a tool in a players backpack
could you write the script in the comments or the description by any chance?
@greenqz
2 ай бұрын
go to the new pinned comment put it in your game change the viewmodel to anything you want done
write the script in comment pls i need
whenever i hold the tool nothing happens but the model just appears in its original spot and i dont get a viewmodel
@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
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
2 ай бұрын
The viewmodel provided works perfectly fine tho, not mine
@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
can u give us the script?
didint really work for me, my gun just started to fly away XD
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
Ай бұрын
Bro, is that script yours or is it one from the video?
@Aika33700
Ай бұрын
@@FantasminElOriginal i know that you are searching a script and yes is it one from the video
@FantasminElOriginal
Ай бұрын
@@Aika33700 good
@Aika33700
Ай бұрын
@@FantasminElOriginal ok.
@totlar
Ай бұрын
bro thanks, you saved my life!
yo Stuffy Dev i want help
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
2 ай бұрын
if player.CameraMode = 1 then put everything in this if loop
@GGEZLLL
2 ай бұрын
@@DevKing_Phizo when I do that, the viewmodel doesn't appear when I go first person or third person.
@DevKing_Phizo
2 ай бұрын
@@GGEZLLL hmm try and improvise idk it should have worked is the player local player?
@GGEZLLL
2 ай бұрын
@@DevKing_Phizo Oh now it worked ty!!!!!!!!!
@DevKing_Phizo
2 ай бұрын
@@GGEZLLL np!
Can you make it third person compatible?
@superduperbob
Ай бұрын
no thats why there is only arms use your brain
@RawOpsis
9 күн бұрын
@@superduperbob damn broskie don't have to be that rude💀
@superduperbob
9 күн бұрын
@@RawOpsis sorry im a christian now but i still agree😅
@RawOpsis
9 күн бұрын
@@superduperbob 👍
I don’t know why but my gun and viewmodel is invisible every time i equip my gun
@StuffyDev
14 күн бұрын
try using the model in the pinned comment
@hartenon
14 күн бұрын
@@StuffyDev still doesn't work
i need help i cant see my view model gun
@YuckMaster3
Ай бұрын
same..
how can I fix the bug when the ViewModel stays in one place?
@user-yo6xc6ss9z
3 ай бұрын
@@StuffyDev I did but now its invisible
@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
3 ай бұрын
@@StuffyDev it says i dont have perrmission
@user-yo6xc6ss9z
3 ай бұрын
@@StuffyDev Im Sorry if im making you overwotk
@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
Bro my model doesnt show up
@GDrakosha
15 күн бұрын
Same
pls
i tried your tutorial and someone else's but it still doesnt work
@StuffyDev
Ай бұрын
use the model in the pinned comment
@superduperbob
Ай бұрын
@@StuffyDev k
@superduperbob
Ай бұрын
@@StuffyDev ill try later
@superduperbob
Ай бұрын
@@StuffyDev i tried it and it worked idk what i was doing wrong thanks tho
who can copy that Script and give me?
Kxv
@darkbard7
2 ай бұрын
?
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"
it does not shoot _ _ why is that
@niksiisieki
Күн бұрын
he js gave viewmodel not a shooting script
Uu
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
Күн бұрын
and other ppl cant see the gun
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
the hell is uis?
@Default_gg
Ай бұрын
User input service
.
This is bad, you can not animate the viewmodel!
It doesn’t work