how do I make the camera move in different directions.
from one position to another
For example, here’s my code. And I have a loop function written.
how can i add for example + 1 to direction (up,down,left,right)
local Character = script.Parent
local Camera = workspace.CurrentCamera
local CurrentFov = 70
local zoom = 25
local Connection2
local CameraSystem = coroutine.wrap(function()
Connection2 = game:GetService("RunService").RenderStepped:Connect(function()
Camera.FieldOfView = CurrentFov
if Character then
if Character:FindFirstChild("HumanoidRootPart") then
Camera.CFrame =
CFrame.new(Vector3.new(Character.HumanoidRootPart.Position.X + zoom, Character.HumanoidRootPart.Position.Y + zoom + zoom, Character.HumanoidRootPart.Position.Z + zoom), Character.HumanoidRootPart.Position)
end
end
end)
end)
CameraSystem()
You misunderstand me, I understand that the script works, I want to make the camera move in different directions, up to down to left to right.
with X,Y,Z movement.
for example Camera.CFrame = Camera.CFrame + CFrame.New(…)
I want to figure out how I can make camera movement like in Dota 2 or League Of Legens.
For example, when you point at the edges of the screen in these games, the camera moves depending on where the player is pointing
everything you wrote, I don’t know how to implement it.
If you could, could you script it for me?
I really don’t know how.
If you can’t, or if you’re lazy. That’s okay.