#camera stuff
1 messages · Page 1 of 1 (latest)
Like, you want the player to always be in first person?
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
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
that script includes how roblox handles bodypart occlusion / the transparency thing.
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
that picture give me jumpscarys?
maybe try finding the distance between the camera and hrp (using magnitude)
and if its close enough, enable lock first person, then disable it quickly so its automatically in first person and can zoom out freely
"when i" never says "always"
yeah but to find the distance ill have to make a loop wich would mostly make that not work
(Unless im dum)
if u use 'while task.wait() do' then some code wont work
yea
but if i do renderstepped tough it will loop like this
If cameradistanceOrWtv == distancethatiwant then
firstperson
DisableFirstPerson
u should make a separate script for it (for cleanliness and performance), and use bindable events if its close enough
yeah i tough abt bindable but eh im not sure