I have been trying to do a menu camera for 2 days but it always fail
here is my script
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local cam = workspace.CurrentCamera
local com = workspace:FindFirstChild("cameraPart"):FindFirstChild("com")
game.ReplicatedStorage.Added.OnClientEvent:Connect(function(p)
repeat wait(0.1)
cam.CameraType = Enum.CameraType.Scriptable
until cam.CameraType == Enum.CameraType.Scriptable
cam.CFrame = com.CFrame
end)
Here is the script i added to the ServerScriptService
Make sure the Camera is anchored and isnt falling through the map every time.
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local cam = workspace.CurrentCamera
local com = workspace:WaitForChild("cameraPart"):WaitForChild("com")
repeat wait(0.1)
cam.CameraType = Enum.CameraType.Scriptable
until cam.CameraType == Enum.CameraType.Scriptable
cam.CFrame = com.CFrame