#viewmodel

1 messages · Page 1 of 1 (latest)

narrow hearth
#

made a viewmodel fully scripted but it hovers above mecrying how do i fix this

brazen shale
brazen shale
#

Ok let me look at it

narrow hearth
#

fsfs

brazen shale
#

Ok so the code handles first and third person

#

So is it only third person that bugs?

narrow hearth
#

first person shows me holding the gun

brazen shale
#

ViewModelTPS:PivotTo(player.Character.HumanoidRootPart.CFrame)

#

Try that

#

on line 148

narrow hearth
#

sec

brazen shale
#

send ss

#

when u change it

narrow hearth
#

looks

#

like

#

it lowered

#

a little

brazen shale
#

Ok send me a ss of the entire rig

#

And I want to see what it looks like inside the model

narrow hearth
stone widgetBOT
#

studio** You are now Level 4! **studio

brazen shale
#

What is the primary part?

#

of the model

#

It should say in the properties tab

narrow hearth
#

head

brazen shale
#

Ok thanks

narrow hearth
#

no prob

brazen shale
#
FPViewModel:SetPrimaryPartCFrame(player.Character.Torso.CFrame)
#

Try this

narrow hearth
#

same line

#

?

brazen shale
#

Yeah 148

#

replace it with that

narrow hearth
#

alr one sec

brazen shale
#

I can try to explain it if it does

narrow hearth
#

i spawn

#

i equip the weapon

#

and it spawns

#

on side me

#

in same spot

brazen shale
#

Alr lmao

#

WE got this

#

(me and you)

narrow hearth
#

SOBBIN

brazen shale
#

Or is it invisible

narrow hearth
#

head

#

white block

#

works perfectly how supposed to in fps

#

but tp? hellll nah

manic zephyr
#

replace this line ViewModelTPS:PivotTo(player.Character.Head.CFrame)

narrow hearth
#

148

#

?

brazen shale
#

Yes

narrow hearth
#

alr

manic zephyr
#

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

stone widgetBOT
#

studio** You are now Level 1! **studio

narrow hearth
#

it went back higher

#

sob

manic zephyr
#

change the offset then

manic zephyr
#

play around with it

narrow hearth
#

ab*

#

so paste this

#

in 148

#

?

#

local offset = CFrame.new(0, -1.5, 0.5)
ViewModelTPS:PivotTo(player.Character.Head.CFrame * offset)

brazen shale
#

Oh wait @manic zephyr you just reminded me

manic zephyr
#

replace this line ViewModelTPS:PivotTo(player.Character.Head.CFrame)

brazen shale
#

@narrow hearth Does the model have a pivotOffset?

#

In the properties

narrow hearth
#

uhhh

brazen shale
#

Does it have a weird offset

narrow hearth
#

lemme check

brazen shale
#

That is NOT 0 ,0, 0

narrow hearth
brazen shale
#

Ah we might've found the issue

#

Change the pivotOffsetto 0, 0, 0

narrow hearth
#

sec

brazen shale
#

The position

brazen shale
manic zephyr
#

we cooking ahh

brazen shale
#

You actually just reminded me that pivotoffset existed 😭

manic zephyr
#

i gotchu ah

#

it might now work yet

#

i just thought you could offset it

narrow hearth
#

so in fact put
local offset = CFrame.new(0, -1.5, 0.5)
ViewModelTPS:PivotTo(player.Character.Head.CFrame * offset)
in line 148

manic zephyr
#

and move it down

narrow hearth
#

?

brazen shale
#

That is it

#

no offset

narrow hearth
#

alr sec

brazen shale
#

this is quite the second

narrow hearth
arctic jackal
#

uhhm

brazen shale
#

get out of here s1

#

did u remove the PivotOffset?

narrow hearth
#

think so

stone widgetBOT
#

studio** You are now Level 5! **studio

manic zephyr
#

ViewModelTPS:PivotTo(player.Character.Head.CFrame * offset)

#

you have missed the * offset

brazen shale
#

just get obs bro 😭

manic zephyr
#

are you refrencing the variable?

brazen shale
#

@narrow hearth just send the model over bro

narrow hearth
#

ngl

#

alr

#

or do u wanna join the workspace

#

skull

#

so u cn directly change it

#

bc im mind bongled

brazen shale
#

No

#

Just send the mode lbro

narrow hearth
#

fs

manic zephyr
#

just use the world offset

#

or anchor it to a better part

narrow hearth
#

crying how do he want me to send a roblox stud asset over

#

im slow rn

#

i aint sleep

brazen shale
#

Just send me a copy of the game 😭

#

File -> save as copy

narrow hearth
#

oh yea

manic zephyr
#

just export

narrow hearth
#

skull

manic zephyr
#

bruh

#

cmon

narrow hearth
#

in replicated storage

brazen shale
#

Fixed

#

You did NOT change the pivotoffset

narrow hearth
#

UHHH

#

UHHH

#

crying Bro u gotta understand i aint been sleep since yesterday morning

brazen shale
#

Or ur just a noob at this bro

narrow hearth
#

tht too

#

i am shit

brazen shale
narrow hearth
#

at coding

brazen shale
narrow hearth
#

modeling tho? oh yes gimme tht

brazen shale
#

This is the changed code

narrow hearth
#

and paste

#

so i can copy it over

brazen shale
#

Do it urself 😭

narrow hearth
#

CUH

#

SIGH

#

ITS RIGHTTT THEREEE

brazen shale
#

I can say the same thing 😭

#

ITS RIGHTTT THEREEE

narrow hearth
#

OH NVM it aint alot tht was changed

#

myf

#

skull

#

lr wew

#

alr pew*

#

lets try

#

sigh

narrow hearth
# narrow hearth

doing same thing as here, did u change pos or sum in properties before running

brazen shale
#

Yeah I told you the fix 😭

#

You gotta fend for yourself now

narrow hearth
brazen shale
#

You’re almost there

narrow hearth
#

i went to sleep

#

and still confused

manic zephyr
#

Just change the primary pivot part from the head or shm

#

Sum

#

Im jk idek

manic zephyr
#

to ez

narrow hearth