#camera stuff

1 messages · Page 1 of 1 (latest)

ashen stream
#

how do i make that when i zoom in at this point it set the plr in first person? cuz it break my viewmodel (lock in first person dont work ofc cuz i want the plr to keep de-zoming)

white sinew
#

Like, you want the player to always be in first person?

sage pewter
#

you can loop through all the bodyparts in the character and if it is a basepart and name is not head it will change the transparencymodifier to 0

#

or you can use runservice to constantly set the camera cframe to the head cframe

#

and make custom camera movement

shut arch
#

roblox's camera controller is found in the PlayerModule script and is placed in StarterPlayerScripts by default if there is no script already there with that name when you press play. i suggest reading that to get an idea how roblox's camera controller works, and how you might be able to interface with it to get it to do what you want

shut arch
sage pewter
#

that changes the transparency when zooming in

#

so if you set it to 0 when you zoom in those bodyparts wont be transparent

#

making the game both 3rd person and 1st person with a viewmodel

wanton karma
violet lantern
violet lantern
floral niche
ashen stream
#

(Unless im dum)

violet lantern
#

if u use 'while task.wait() do' then some code wont work

ashen stream
#

i would use renderstepped

#

ngl

#

i never use while loop

violet lantern
#

yea

ashen stream
violet lantern
#

u should make a separate script for it (for cleanliness and performance), and use bindable events if its close enough

ashen stream