Hello, I have been recently having this lag issue with my game. It’s really critical at the point where after a while, players with low-end computers will experience spikes very often.
In the last test I ran for around 25 minutes, I’ve got these results from 2 scripts that cause the issue.
for those who can’t view the image, they reached a rate of 8 gb/s and 6 gb/s
EffectsController:
local event = game.ReplicatedStorage.Events.BulletHoleEvent
local event4 = game.ReplicatedStorage.Events.MagEvent
event.OnServerEvent:Connect(function(player, ...)
local tuple = {...}
local ignores,origin,direction,size,splatter,particle,model,attachment,attachment2,fromcast = tuple[1],tuple[2],tuple[3],tuple[4],tuple[5],tuple[6],tuple[7],tuple[8],tuple[9],tuple[10]
event:FireAllClients(player,ignores,origin,direction,size,splatter,particle,model,attachment,attachment2,fromcast)
end)
event4.OnServerEvent:Connect(function(player, ...)
local tuple = {...}
local model = tuple[1]
event4:FireAllClients(player,model)
end)
MotorController:
local motorEvent = game.ReplicatedStorage.Events.MotorEvent
motorEvent.OnServerEvent:Connect(function(player,...)
local tuple = {...}
local motor6dList = tuple[1]
motorEvent:FireAllClients(player,motor6dList)
end)
These bits of code are the whole scripts, nothing is cropped out of them.
Please help, it’s driving me crazy at this point!