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

preview_player
Показать описание

Socials 👥:

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
Рекомендации по теме
Комментарии
Автор

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.



StuffyDev
Автор

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

sNIXerBars
Автор

Thanks for the turorial. You helped me a lot!

TotoDev
Автор

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

the_voices_wont_stop
Автор

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

Assasin_K_C
Автор

great tutorial and really good quality underated af

pepper
Автор

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

Viunly
Автор

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

matrixgeg
Автор

FOR ANYONE WHO WANTS THE FULL SCRIPT:

local tool = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
local RunService = game:GetService("RunService")

local ViewModel

local equipped = false


equipped = true
= Camera
end)


equipped = false
ViewModel =
if ViewModel then
ViewModel:Destroy()
end
end)

local swayCF = CFrame.new()


if <= 0 then
if ~= nil then

end
end

if equipped == true then
if ~= nil then

for i, v in do
if v:IsA("BasePart") then
v.CanCollide = false
end
end

local mouseDelta = uis:GetMouseDelta() / 50
local swayX = math.clamp(mouseDelta.X, -0.2, 0.2)
local swayY = math.clamp(mouseDelta.Y, -0.2, 0.2)

swayCF = swayCF:Lerp(CFrame.new(swayX, swayY, 0), .3)
* swayCF)
end
end
end)

notedible
Автор

People out there, i recommend you to put a humanoid in the Viewmodel because it just makes you're arms smoother which makes you viewmodel look 10x better. No problem!

Another solution, I had trouble with this one to but, if it does not appear but appears in the workspace then just get the model and get the position original and copy and paste from the m4a1 and paste onto you’re guns model and hands. Np! People.

OSFlames
Автор

In case you wanted to know, you don’t need to make a script that sets camera mode like that (At the beginning). Instead it can simply just be changed via the property in StarterPlayer

buildaboatyeet
Автор

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.

geugtdy
Автор

im having this trouble where when i equip the tool the viewmodel along with the gun doesnt appear and when the tools equipped it would dissapear completely from the players backpack

JohnabnerAlayonjr
Автор

You should make a video on fist combat next 🙏

Bloopet
Автор

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

haze
Автор

could you please make a tutorial with the same code but add animations and a scope effect i need it for my game

gogglesnakdev-ntyw
Автор

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

PaxProductions.
Автор

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

Vaihly
Автор

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

JogaradaGames
Автор

Good video bro you look like script teacher

FAGAME-pvfl