I am making a round based game, with a cutscene that starts when the round starts. I got the camera to change, but the camera doesnt go back to the player when I change it to custom
local player = game.Players.LocalPlayer
local camrea = game.Workspace.CurrentCamera
--allcutsceneremoteevents
local squidcutscene = game:GetService("ReplicatedStorage").CutScenes:WaitForChild("SquidBossCutscene")
--Seeing when all of the events are fired
squidcutscene.OnClientEvent:Connect(function()
camrea.CameraType = Enum.CameraType.Scriptable
camrea.CFrame = game.Workspace.TempMap:WaitForChild("Island Area").BossStuff.CamereaPos.CFrame
wait(1)
print(player)
camrea.CameraType = Enum.CameraType.Custom
end)
it puts the camera to when the player was in the lobby not by the current position of the player
To teleport the player into the game, I change the team of the player and loadthe character so it will spawn in the map
I had something similar to this. You have to put the camera to “Custom” mode and also change camera.CameraSubject to be the player’s character. Make sure to redefine the character as well so that it works properly.