Is there a way I can see what script proccesses are lagging my game

Recently in the game I’m developing I’ve notice there’s a lot of server lag. like when NPCs are moving from A to B, sometimes they just teleport from A to B (they don’t stutter like the normal NPC pathfinding problem the LITRALLY teleport) and other things in the game. my game ping is only 38mbs so i know its not that.

I’m assuming the answer is in the developer console but I do not understand it at all and don’t have a clue where to look and what does what.

Thanks

Does anybody have a clue on how I can work out what script process is lagging my game (if its even a script process)

I’d imagine the Script Preformance tab could tell you something but I’m not too good at this either. Try searching around “what makes my game lag?” I’ve seen people say things like network lag might be caused by too many remote events and remote functions.

Im using a " game:GetService("RunService").RenderStepped:connect(function() " Function which was fine before but ive added an If statement thats activates quite rarely which activates another function in the script.

I assume this is fine because its only a check and not actually doing anything much but this is my prime suspect in this lag problem.

Not sure if this can help you in any way, but over the past like week I had physics issues with roblox. Literally everything that moves in my game, lags. It usually stops after like 2 minutes, but it’s quite weird to see since I’ve never had this issue before.

There’s also the developer console and its “Scripts” tab.