Animation doesnt load until the player get very closer to the another player

Hello for everyone.

So, recently i found a error, probably a bug.
The animation doesnt load until i get very closer to another player. I searched in the web problems like that, and i didnt found a clearly answer for my problem.

I saw some games with the same problem as mine, but i dont have any clue about what is causing this problem.

Gif:

https://gyazo.com/2ccf6a3211cc7253c1b0167531554d17

1 Like

Well can I see the code that makes him play the animation for him?

This part of the code:

https://gyazo.com/c842f63139a21a88e7315107f740bbcf

The entire part of the code, with the M6D:

https://gyazo.com/23989247223ff7b5243e21f87502c3f9

If you need it by text, i can do it aswell.

You should be loading animations outside your if statement by moving it to the start of your code.

animator:LoadAnimation(c)

I’ll test it, but a time ago, this wasnt a problem. Probably roblox updated something and broken some part of the code. I’ll test what you said.

There will be a new roblox update if it’s telling you to close roblox studio or when it’s updating when you open roblox studio. Obviously it’s you who probably broke it, so it has nothing to do nothing with roblox.

Didnt work.

I didnt change anything about animations, and this is happening now. And isnt just in my game, so idk.

But keep it there so it will have less delay.

Anyway maybe it’s your function that makes it plays? Try looking carefully and see if there’s a problem, if you can’t then I’ll try to find it. You can use prints for debugging.

Okay, wait a sec, i’ll try something, but i dont think its the function that plays the animation cuz the animation load normally, but the player have to get closer to the rig/another player. Like in the gif above.

Yeah, nothing wrong i guess. I dont have any clue why this is happening…

1 Like

I recorded a video, so it can help you to figure out whats my problem.

1 Like

Can I see the full script by text and also format it?

Well, i already found a solution, but yea, its a roblox issue. Not my script, but well, thx for the help. I forced a renderization and it works normally.

Could you post the solution? I seem to be having the same problem too.