I don’t know how to explain this too well. But, I want to make the camera move slightly when the character moves. Kind of like the video below.
(SKIP TO 0:12)
I don’t know how to explain this too well. But, I want to make the camera move slightly when the character moves. Kind of like the video below.
(SKIP TO 0:12)
You could try https://create.roblox.com/marketplace/asset/13595027036/Isometric-Camera%3Fkeyword=&pageNumber=&pagePosition=
well, the camera’s cframe is equal to a parts cframe which is the map camera. and i basically want that part/camera to move slightly towards where the character moves if that makes sense. (like in the video)
Try my code:
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
local player = game.Players.LocalPlayer
local TweenService = game:GetService("TweenService")
local function updateCam()
local character = player.Character or player.CharacterAdded:Wait()
local head = character:WaitForChild("Head")
local camHeight = head.Position + Vector3.new(0, 20, 0) -- adjust the height
-- set camera
local lookAt = (head.Position - camHeight).unit -- face towards player
local camRotation = CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) -- adjust the angle
local newCameraCFrame = CFrame.new(camHeight, camHeight + lookAt) * camRotation
-- tween cam
local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local tween = TweenService:Create(camera, tweenInfo, {CFrame = newCameraCFrame})
tween:Play()
end
local connection = game:GetService("RunService").RenderStepped:Connect(updateCam)
hey! its pretty good but i need the camera’s cfame to be at a certain parts cframe if that makes sense. and the camera/part moves slightly towards them if that hopefully makes sense.
(I want the camera cframe to be at this part)