Hello,
Today i was trying to do a script that will kick a player when he press insert.
And as you can guess it didnt work out as I wanted and i don’t know what did i do wrong.
If someone could help me i would be really thankfull.
(please move it to development section if you can :slight_smile: )

Client side:
client

Server side:
server

Console Error:

You are trying to receive “PlayerId” but it never gets send, but letting the own player send its own playerid is exploitable so remove that argument from your event callback and use “source”

Like this?
likethis

source is a global variable and doesn’t need to be defined in the callback function

So, how should it look? (sorry i’m completly new at this and i don’t really know what i’m doing)

Remove the “source” inside the function(source)

1 Like

Alright, it worked. Thanks for help. :slight_smile:

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