Need help with strange bug

Hello, I have working gun. That have two local scripts. One(LocalScript) is firing BindableEvent(VFireEvent), second(VisualShot) is gets the signal of Event and playing Visual animations for viewmodel.

image

Everything works, but if i die, my weapon drops(I made this script) and if i take it, VisualShot is working, i added a print for it when it loads, and it’s printing. But its don’t gets a signals, and visual animations is not playing.

I dont know whats the problem

Probably the events are getting disconnected. Try disconnecting them manually when the gun is dropped or unequipped, then connecting them when it is equipped.

2 Likes

To fix this, I only had to change the location of VisualShot not in the tool itself, but in PlayerSripts and now everything works.

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