#viewmodel
1 messages · Page 1 of 1 (latest)
Make the viewmodel CFrame = the cameras CFrame
^
Ok let me look at it
fsfs
Ok so the code handles first and third person
So is it only third person that bugs?
yes only third person
first person shows me holding the gun
third shows this
ViewModelTPS:PivotTo(player.Character.HumanoidRootPart.CFrame)
Try that
on line 148
sec
Ok send me a ss of the entire rig
And I want to see what it looks like inside the model
** You are now Level 4! **
Ok thanks
no prob
same line 148
?
alr one sec
I can try to explain it if it does
replace this line ViewModelTPS:PivotTo(player.Character.Head.CFrame)
Yes
alr
local offset = CFrame.new(0, -1.5, 0.5)
ViewModelTPS:PivotTo(player.Character.Head.CFrame * offset)
with that
and offset it down
the y pulls it down and the z slightly forward
** You are now Level 1! **
change the offset then
hold b to try this
play around with it
ab*
so paste this
in 148
?
local offset = CFrame.new(0, -1.5, 0.5)
ViewModelTPS:PivotTo(player.Character.Head.CFrame * offset)
Oh wait @manic zephyr you just reminded me
replace this line ViewModelTPS:PivotTo(player.Character.Head.CFrame)
uhhh
Does it have a weird offset
lemme check
That is NOT 0 ,0, 0
sec
The position
And keep the code to this
we cooking ahh
You actually just reminded me that pivotoffset existed 😭
so in fact put
local offset = CFrame.new(0, -1.5, 0.5)
ViewModelTPS:PivotTo(player.Character.Head.CFrame * offset)
in line 148
and move it down
?
no just do this
That is it
no offset
alr sec
this is quite the second
uhhm
think so
** You are now Level 5! **
ViewModelTPS:PivotTo(player.Character.Head.CFrame * offset)
you have missed the * offset
sec
why is it amkv
mkv*
just get obs bro 😭
are you refrencing the variable?
@narrow hearth just send the model over bro
ngl
alr
or do u wanna join the workspace
skull
so u cn directly change it
bc im mind bongled
fs
oh yea
just export
skull
Or ur just a noob at this bro
at coding
modeling tho? oh yes gimme tht
This is the changed code
Do it urself 😭
OH NVM it aint alot tht was changed
myf
skull
lr wew
alr pew*
lets try
sigh
doing same thing as here, did u change pos or sum in properties before running
You’re almost there
got it
how do i fix this