#how to make a ui only show up when in first person
1 messages · Page 1 of 1 (latest)
check the camera cframe and use magnitude to compare the head and camera cframe
camera mode doesnt change when zoomed into first person by the player
What about checking the camera zoom?
What does this even mean bro
how new are you to scripting?
I’m pretty new I’m not making anything from scratch it’s just stuff I’ve bought over time and I’m making something
gotcha
Idk how to use studio and stuff obv I just don’t know anything to do with gui
idk how to explain it in beginner terms, that is how you would really code it
using those same terms
I’m what c frames are
** You are now Level 1! **
Bro, can't he just check the camera zoom?
Know
idk if thats a property u can check
Literally in starterplayer
Can’t I just make it so if I’m in first person it enables it
I have seen first person scripts doing that
they change the camera mode
when u zoom in like ingame, it doesnt change it
it jus changes the cframe
my explanation would be checking for first person
like if zoomdistance < 0.6
i think there is no other way you can do it
zoom distance is a parameter changed in studio, not when running the game, so that wouldnt work
the camera magnitude to the head would basically be that tho
What do u mean by camera magnitude
distance from p1 to p2, that is magnitude
p1 is camera, p2 is head
Or idk check all the character's part it's local transparency?
yeah i js found that solution
head:GetPropertyChangedSignal('LocalTransparencyModifier'):Connect(function()
if head.LocalTransparencyModifier == 1 then
-- player is in 1st person
else
-- player is not in 1st person
end
end)
Is there no way to check the current zoom
This’ll work?
not that i know of
Probably yeah
should work, just apply it to your needs
Localscript
Alright
Scripts are not meant to work in those place where something happens only to one player (the client)
Only local scripts.
Ah okay
How do I learn how to script stuff like this cuz I know how to like call functions, variables and everything I just don’t know how to apply it to make something
lots of learning and teaching yourself. ive been scripting for 7 years and still haven't mastered it. nobody can truly master scripting because it is all in YOUR own application
prob js script a lotta diff stuff to learn different applications, thats what i do
What do I script though
anything
for example i script plugins, fixes for games, all of that
Yeah but like I know all the things right but how do i start the process if I have an idea of what I want it to do like how would I start it you know what I mean
well what i do is use my framework (https://devforum.roblox.com/t/forge-framework-plugin/4346614) to actually know where to start, then i personally just begin coding the backend (usually unseen parts of it), then the frontend to work synchronously with the backend
What does the framework do
And usually I just try use ai to make stuff for me because I don’t know what to do though I know all the coding things but ai is buns for scripting so I give up on it
it helps workflow by a lot
Okay so say I wanted to make a name tag system which is used via a command with Adonis admin it would just help me make it
it helps you organize all of your code for it, so it will make it easier to create and edit
Ah okay, and thanks for the help man ima try actually scripting stuff tommorow and I’ll install ur plugin
alright thanks so much! be sure to ping me with your progress and results