1- check if the camera rotation did change before sending it
2-if sending the camera rotation consumes alot of data then try serializing it using the buffer library or any serializing module
3-you can send the rotation at lower rates and lerp it on the client (only if it doesnot have to be very accurate)
Hi! You can easily do this with modulescript and bindable event (not remote event)
here’s code for 1 localscript, it’ll print variables
local Event = script.Parent.Event
local Module = require(script.Parent.ModuleScript)
local function Print()
print(Module.Number)
print(Module.Name)
print(Module.Rotation)
end
Event.Event:Connect(Print)
Print()
here’s code for 2 localscript, it’ll change variables
--Code in second localscript
local Event = script.Parent.Event
local Module = require(script.Parent.ModuleScript)
Module.Number = 42
Module.Name = "Angelina"
Module.Rotation = CFrame.Angles(42,42,42)
task.wait(2)
Event:Fire()
And this code in ModuleScript
local module = {
Number = 12,
Name = "Bob",
Rotation = CFrame.Angles(0,0,0)
}
return module
In explorer it looks like this
Remember: ModuleScript is just data storage method