Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to Change Camera from Main Menu to Your Character And Teleport????????

I have set up Main Menu With camera

Set it up But when I click Button I want it to Hide Main Menu Buttons and Change Camera to your Character While Teleporting your Character into a map

This is the script for the Camera thing

local Player= game.Players.LocalPlayer
local Char= Player.Character or Player.CharacterAdded:Wait()
local camera= workspace.CurrentCamera

wait(0.5)
camera.CameraType= Enum.CameraType.Scriptable
camera.CFrame= workspace.Cam.CFrame

2 comments

0

Enum.CameraType.Custom

0

do you use ui for menu? If not, then do something like camera being scriptable and change its location

1 answer

Hello. To do that, you have to set the CameraType to custom and CameraSubject to the player's humanoid. Use this:

local Player= game.Players.LocalPlayer
local Char= Player.Character or Player.CharacterAdded:Wait()
local camera= workspace.CurrentCamera

camera.CameraType = Enum.CameraType.Custom
camera.CameraSubject = Char.Humanoid

This discussion is preserved as it was. New answers, comments, and votes are closed.