This is a gif of me recording the profiler. The stable bits are when I don’t do anything. The massive spikes are when I right click. When I look through the profiler I can tell that it’s none of my code and I can’t find anything on roblox’s end (I’m admittedly not any good at figuring that portion out).
Repro localscript: EDIT: I found out that even if I comment out every line of the code below the profiler still dips
local Action = "Idle"
Mouse.Button2Down:connect(function()
if Action ~= "Reloading" then
--Idle("Aiming", 1)
-- Aim()
end
end)
Mouse.Button2Up:connect(function()
if Action == "Aiming" then
-- Idle("Idle", 1)
end
end)