Team change GUI exploitable

  1. What do you want to achieve?
    Hello, so i have a team change gui but everybody can exploit it and change his team by firing the change team event (i tried with a bindable function and a remote event)
    When the change team button is clicked it fire the event and the server take the player and the brickcolor of the team of the player and apply it to the player.

  2. What is the issue?
    It’s exploitable and i don’t know how to do it.

  3. What solutions have you tried so far?
    I tried to fix it myself.

If you need a special detail, you can ask me.

2 Likes

Do it on server script it works too!

[Can you show me the code if you don’t know how?]

As @12Noob_19761 says you will need the server to do the team changing. That way a user can request to team change but the server can check if they actually should or not (I assume people shouldn’t be able to team change every second and mid-match).

To prevent exploiting in general, don’t trust the client. Let the client request stuff, but don’t let the client process stuff. I think DeadBlox has this covered so I will skedaddle, but good luck scripting

1 Like

The server is doing the team change the client is just requesting

2 Likes

you dont need to use any remote event for team change btw

1 Like

can you show me where is the Button / script placed? I will make script for it + i need team BrickColors*

1 Like

You need to do some sanity checks server-side, but for that, you need to give context.

Because if everyone can change his team at every moment, every circumstance, you don’t need to care about that

well then exploiters will obviously be able to fire the event regardless because you have no sanity checks like @Bdavid621 had mentioned above. maybe have it so they can only switch teams per match or have a long debounce for it, otherwise they can just do it whatever and whenever they want in regards to changing teams.

1 Like