I made this menu and it requires to move the player’s camera
I put the player’s camera into a a part by:
while wait() do
game.Workspace.CurrentCamera.CFrame = game.Workspace.CameraPart.CFrame
game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
game.Workspace.CurrentCamera.FieldOfView = 40
end
it did work but I cannot click any ClickDetectors
is there anyway to fix this?
put the cameratype line outsife if the while loop and as far as ive known you dont need a while loop but make sure the cameratype line should always be the most highest line
wait it worked the script you replied
when I move it to the StarterCharacterScript
but I haven’t check when I can click it with a ClickDetector
I have been parenting my camera script in the starter pack
I didn’t know
the three scripts did not work and also I put it in local script
I was thinking on boxing the player instead and lock it in a
first person and also forcing it to look forward but I don’t know
how to force the player to look forward
i guess i know what to do maybe try making the spawn point near the click detector i think the click detector doesnt work if the player is far away from click detector and also use this script
local cam = workspace.CurrentCamera
local CameraPart=workspace.CameraPart
cam.CameraType=Enum.CameraType.Scriptable
cam.CFrame = CameraPart.CFrame
cam.FieldOfView = 40
make sure its a local script and its name is CameraScript with the capitalisation and also make sure follow the name exactly and put the script inside StarterPlayerScripts