@iGottic this is a false statement having 150 scripts may not necessarily cause lag and a 3000 part count is not that high either.
Youâre doing too many expensive calls to FindPartsInRegion3WithWhiteList
Can you show the pieces of code calling this function - you might be constructing too large of a whitelist, constructing it badly, or running it too many times in a single frame.
It looks like youâre calling it in the RenderStepped handler, so either through BindToRenderStep or RenderStepped event, so include any code that hooks into those if youâre unsure.
Note the long orange bar with the name of the function.
Using RenderStepped incorrectly will cause your fps to be choppy since all that code is being ran before every frame is rendered. It should only be used when working with code on the camera or character
Just remember to change the name of your game as there is a quite popular simulator with the same name.
Notice when my game was created⌠I came with that idea since 2018 and everyone steals it. I wonât give up on it, lol.