I've been trying to change the camera's position but everytime it just sort of 'teleport' to the player's back no matter what angle i look at.
i tried this:
local cam = workspace.CurrentCamera cam.CFrame = CFrame.new(10,50,10)
but the thing mentioned above happens
you can put the cameras CFrame on a part, instead of a position, so just make a brick and make sure the front face is facing whatever you want and you can rotate it, then put a local script in startergui, bc only clients can access it, and type this:
local camera = workspace.CurrentCamera local part = workspace.Part -- ur part here local player = game.Players.LocalPlayer local character = player.Character or player.Character:Wait() wait(0.1) repeat camera.CameraType = Enum.CameraType.Scriptable until camera.CameraType = Enum.CameraType.Scriptable camera.CFrame = part.CFrame -- sets CFrame on the part
i also think that you can replace it with position the camera, because you didnt set the cameratype to scriptable. If u wanted to change the players camera to normal, just do this:
local camera = workspace.CurrentCamera local part = workspace.Part wait(0.1) camera.CameraType = Enum.CameraType.Scriptable camera.CFrame = part.CFrame script.Parent.MouseButton1Click:Connect(function() camera.CameraType = 'Custom' end)
you can put the script inside a textbutton