#camera switching menu
1 messages · Page 1 of 1 (latest)
after making the camera custom again you need to redefine the player as the subject again
if i remember correctly you just need to set it to the player's humanoid root part
could you please show me how it would look like
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
-- resets the camera to default
camera.CameraType = Enum.CameraType.Custom
camera.CameraSubject = character.HumanoidRootPart
I would look it up just in case tho
like this?
ah hold on
the camera
gotta be Camera
ye
i looked at some forum posts and it looks like most people opt to set the camera subject to just the humanoid and not the humanoid root part. but both should work
sadly the camera still stays at the menu after clicking the button
try this
does it maybe have to do with my team selector script
set the camera subject to the humanoid
since both scripts require the button to be clicked
is it messing with the camera?
if not then no
try setting the camera subject to just the player's humanoid real quick
oh and are you destroying or respawning the player at any time throughout any of your scripts?
like this?
no
yes
print character.Humanoid right before you set it as the camera subject and see if it exists
just one of them
so you can test
it printed Humanoid
so what happened the first time to where nothing printed?
camera stayed the same
also is it normal that after writing character in the print Humanoid doesent show up
wdym
like it doesent show up in this box
yeah, doesnt matter as long as the script can find the humanoid, which it does
hmmmm what could be the issue than
new question, after clicking one of the buttons, are you still able to interact with the camera, like move it around?
no nothing happens when you try to rotate the camera or move the player?
try setting the camera subject first, then setting the camera type
I noticed something with the last script shown here, is this not destroying the old character and loading a new one?
the local or normal one
ah the normal one
hold on youre cooking
i disabled the normal one and now it works
but how would i change the team selector than
do you need to :LoadCharacter?
to like change the skin or smth
cause im pretty sure that line is causing the issue, but not 100% sure
tbh i just followed a tut
** You are now Level 6! **
should i just remove the line
yes, if you arent using it to change the appearance of the player
appently its used for the event to actually change the team
if i remove it the line under it wont work
wdym, when removing just line 29?
the event is red now
you removed an end
❤️
