Tool Spam Causes Lag

I have this Tool that has a character inside and when ever a player spams it causes lag I been thinking I should keep the model inside the player model hidden when the tool is Unequiped and show when equiped

And I want to receive opinions

2 Likes

Can you please clarify on what you mean by “when ever a player spams it”.

Is it when they are spam activating it? When they are spam equipping/unequipping it? etc.

Also, is the lag frame rate lag (client lag) or server lag

1 Like

Sorry, my English is bad

Basically when a player spams the tool by equipping/unequipping all the clients on the server will start lagging

Im not entirely sure if it’s the server too.

Just to test - can you please disable the scripts contained within the tool and sees if it still causes lag?

1 Like

I actually tried that too and the lag persisted.

I will provide a video

I removed the AnimationSaves Inside the Character.. And Sudently the lag is gone

Out of curiousity, what is in the AnimationSaves thing?
If there’s a lot of stuff, it would make sense that it’s laggy

1 Like

Moving humanoids into and out of workspace can be laggy. Try disabling Humanoid. EvaluateStateMachine if you do not need the character inside to act like a character (e.g. standing, climbing)

2 Likes

Hello! Sorry for the late reply

It was just an Keyframesequence that was causing the lag

Thank you very much, I will try this.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.