Hello devs,
Today I created a Isometric Camera for my game which functions using a far-away camera (from the character) and a extremely low FOV (4-6)
Here is the script :
local zoom = 180
local FieldOfView = 5
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = game.Workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable
local humanoid = Character:WaitForChild("Humanoid") :: Humanoid
local RunService = game:GetService("RunService")
RunService.RenderStepped:Connect(function()
Camera.FieldOfView = FieldOfView
if Character then
if Character:FindFirstChild("HumanoidRootPart") then
local root = Character.HumanoidRootPart
game:GetService("SoundService"):SetListener(Enum.ListenerType.ObjectCFrame, root)
Camera.CFrame =
CFrame.new(Vector3.new(root.Position.X + zoom, root.Position.Y + 350, root.Position.Z + zoom), root.Position)
humanoid.CameraOffset = Vector3.new(100,0,0)
end
end
end)
This creates an Isometric camera, but the problem is that the parts near the character are not properly rendered for about 7 seconds after the start of the game session, here shows the problem :
I have confirmed that no other scripts affect the rendering and part appearances, so I don’t know how to solve this problem.
Any help is appearciated!