Value doubling instead of adding 1

I want a value called “level” to go up by 1, but instead it is doubling.

https://gyazo.com/83dee67b851b12a8fff7b44b8c002cc5
This is the server script:
https://gyazo.com/239ead1a2a7bc854892296db2c188c81

I have tried looking for solutions, but the only thing I could find was someone having this issue client side. I checked the local script that fires the remote event and it has nothing in it that mentions levels.

The RemoteEvent is probably being fired multiple times. Without more context, I can’t speak as to why this may be. Keep in mind having a completely unsecured RemoteEvent which gives the players free levels may be bad idea, though.

2 Likes

Okay, I know what you mean by the remote event giving people free levels being a bad idea, but do you know anything that could trigger the remote event to fire a few times?

Having the MouseButton1Click event connected to within another connection, maybe? I don’t know, there’s any number of things that could be causing this.

3 Likes

Okay, thanks. I will mess around with the client script a bit now.