I have this camera control module that I use to call functions when they are needed for certain things. CameraControl.Start() is called when the player starts and after each camera function ends (it’s the default camera settings)
function CameraControl.EnterRoom(door)
-- Unbind camera
RunService:UnbindFromRenderStep("Camera")
-- Other stuff
end
function CameraControl.Start(tween)
local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
if not HumanoidRootPart then return end
local PlayerPosition = HumanoidRootPart.Position
local CameraPosition = PlayerPosition + Offset
if tween then
-- Tween camera back to position
local TweenCamera = TweenService:Create(Camera, TweenInfo.new(0.5), {CFrame = CFrame.new(CameraPosition, PlayerPosition)})
TweenCamera:Play()
TweenCamera.Completed:Wait()
end
-- Update camera movement
local function UpdateCamera()
PlayerPosition = HumanoidRootPart.Position
CameraPosition = PlayerPosition + Offset
Camera.CFrame = CFrame.new(CameraPosition, PlayerPosition)
end
-- Bind camera
RunService:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, UpdateCamera)
end
It is basically the same thing as sending requests to a datastore. Sometimes the requests drop after so many requests are sent. I am pretty sure it doesn’t affect gameplay in any way though.
How can I get around this then? As I want the camera to always maintain it’s set position, but still allow it to do other things, like an entering room transition (which could be called several times in a minute)
Well you could try using what DataStore2 uses to save data. Maybe make a variable and find how many requests have been sent, and if too many have been sent, put new requests in a table or array. Once the RunService can take more requests, get the items from that table/array and send in a new request based on the info of the item.
This is 100% roblox’s fault and not your code, now I could be wrong and i know this post is quite old, but I had the same issue and disabled all my scripts and still got the error, I even created a new place, a fresh new place with nothing, no builds , no scripts, you get the gist of it, and i was still getting the error, this is a roblox Studio error and not a scripter (you) error