#camera switching menu

1 messages · Page 1 of 1 (latest)

near wadi
clever otter
#

if i remember correctly you just need to set it to the player's humanoid root part

near wadi
#

could you please show me how it would look like

clever otter
#
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

near wadi
#

ah hold on

#

the camera

#

gotta be Camera

clever otter
#

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

near wadi
#

sadly the camera still stays at the menu after clicking the button

clever otter
#

set the camera subject to the humanoid

near wadi
#

since both scripts require the button to be clicked

clever otter
#

if not then no

near wadi
#

shouldnt be

#

it just gives you the team you clicked

#

and makes the menu invisible

clever otter
#

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?

near wadi
#

like this?

clever otter
near wadi
#

just updating the animation depending on your team

#

still same outcome crying

clever otter
#

just one of them

#

so you can test

near wadi
#

if i did it right

#

its not prinitng

clever otter
#

and thats interesting

near wadi
#

it printed Humanoid

clever otter
#

so what happened the first time to where nothing printed?

near wadi
#

camera stayed the same

#

also is it normal that after writing character in the print Humanoid doesent show up

near wadi
#

like it doesent show up in this box

clever otter
near wadi
#

hmmmm what could be the issue than

clever otter
#

new question, after clicking one of the buttons, are you still able to interact with the camera, like move it around?

near wadi
#

lemme check

#

camera doesent move you are stuck to the part which is the camera

clever otter
#

no nothing happens when you try to rotate the camera or move the player?

near wadi
#

nothing happens

#

i asume the player is moving when clicking wasd

clever otter
near wadi
#

alright

#

same outcome

clever otter
near wadi
#

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

clever otter
#

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

near wadi
#

tbh i just followed a tut

lost steppeBOT
#

studio** You are now Level 6! **studio

near wadi
#

should i just remove the line

clever otter
#

yes, if you arent using it to change the appearance of the player

near wadi
#

appently its used for the event to actually change the team

#

if i remove it the line under it wont work

clever otter
#

wdym, when removing just line 29?

near wadi
#

the event is red now

clever otter
#

you removed an end

near wadi
#

oooo

#

man

#

i love you

#

you are the best person

clever otter
#

❤️

near wadi
#

its fully working now

#

if you ever need help with something, i will try my best to help ya