I just started to learn scripting recently, and I want some help on this situation or tips. Been fumbling on this for a while. I wanted to adjust the camera angle to be looking in a slight downward angle to the player, while still following the player moving. As for camera following player, the camera already follow the player when they move a/d (left/right), but not w/s(up/down) and I want to adjust that.
#How to angle the camera + following player while still having Side-Scrolling Camera?
1 messages · Page 1 of 1 (latest)
Can i see your code
Mb for the late reply
but here
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local CAMERA_DEPTH = 48
local HEIGHT_OFFSET = 2
local function updateCamera()
local character = player.Character
if character then
local root = character:FindFirstChild("HumanoidRootPart")
if root then
local rootPosition = root.Position + Vector3.new(0, HEIGHT_OFFSET, 0)
local cameraPosition = Vector3.new(rootPosition.X, rootPosition.Y, CAMERA_DEPTH)
camera.CFrame = CFrame.lookAt(cameraPosition, rootPosition)
end
end
end
RunService:BindToRenderStep("SidescrollingCamera", Enum.RenderPriority.Camera.Value + 1, updateCamera)
gonna do a quick bump 