I made a cutscene system in a game I was working on, I tested the game on my pc and my cousin on his phone. I realized that the phone was significantly late on the cutscene(camera) compared to the pc. (Help is much appreciated)
How could this be fixed?
local function cam()
if frameEnabled then
local baseType: Enum.CameraType = CurrentCamera.CameraType
CurrentCamera.CameraType = Enum.CameraType.Scriptable
local framesChildren = frames:GetChildren()
for x = 0,#framesChildren-1,1 do
local offset = frames[x].Value
local cf = reference.CFrame * offset
CurrentCamera.CFrame = cf
task.wait()
end
local returnToCamera = TweenModule:Tween(CurrentCamera,{CFrame = LocalPlayer.Character.Head.CFrame},0.75,"Sine","InOut")
returnToCamera.Completed:Wait()
CurrentCamera.CameraType = baseType
Completed = true
end
end