local RS = game:GetService("RunService")
local PLS = game:GetService("Players")
local Client = PLS.LocalPlayer
local Character = Client.Character or Client.CharacterAdded:Wait()
local HRP = Character:WaitForChild("HumanoidRootPart")
local Camera = workspace.CurrentCamera
local Offset = Vector3.new(0, 10, 15) -- Modify it to your needs.
Camera:GetPropertyChangedSignal("CameraType"):Connect(function()
Camera.CameraType = Enum.CameraType.Scriptable
end)
Camera.CameraType = Enum.CameraType.Scriptable
RS.RenderStepped:Connect(function()
Camera.CFrame = CFrame.lookAt(HRP.Position + Offset, HRP.Position)
end)
this is the script thats in starter character script
how can i change the cameras position to make it like the second photo?
i tried the script and it works, although i doesnt really work how i want it to be
robloxapp-20240902-1849589.wmv (1.2 MB)
this is what happens when i move around (the camera is moving with the player) robloxapp-20240902-1852178.wmv (676.9 KB)
this is what i want the happen (the camera stays in place)
how can i make the camera fixed instead of moving with the player?
Sorry for the late response, i want the camera to be unable to zoom and rotate but only face in one direction, and i mean like, the camera should move with the player but no matter what direction the player goes the camera stays facing one direction, i kind of misphrased what i wanted before