Hi, I made a custom menu/lobby for my game, but the spawn for the players on the map is too far apart from the lobby, and each time a player dies the script which handles the lobby/menu can’t find the part which sets the camera to a certain position and it breaks. Anyway, I could fix the Problem?
Also, it seems to be working fine with getting in the Lobby Camera, but after pressing play the camera returns to the player and gets stuck.
If player is near the Lobby:
Part of the Local Script that I use:
local CurrentCamera =workspace.CurrentCamera
local LobbyCamera =game.Workspace.Lobby.MenuCamara
CurrentCamera.CameraType = Enum.CameraType.Scriptable
CurrentCamera.CFrame = LobbyCamera.CFrame
PlayButton.MouseButton1Down:Connect(function()
if playerteam == Spectators then
PlayButton.Text ="Please Change Your Team"
ErrorSound:Play()
wait(3)
PlayButton.Text ="Play"
else
CurrentCamera.CameraType = Enum.CameraType.Custom
MainMenu.Enabled =false
blur.Enabled =false
StarterMenu.Enabled =false
ClickSound:Play()
end
end)```