so I have this remote event set up that will allow set people to ban a player by typing their name into a text box. I have this tested and it will kick players but when I try to add the reason it will pop up as "Instance". Why does this happen? I have the value (reason for the kick) set as string.
Again everything is setup and working, it bans players
the script part that bans players is"
local function onKickPlayerEvent(player, string) player:Kick(string) end
the localscript past looks like this:
local PlayerToKick = game.Players:FindFirstChild(KickInput) if PlayerToKick then KickPlayer:FireServer(PlayerToKick, "You have been kicked by dev") end
I will be grateful if someone explains this to me :)
Rheines commented the answer, I was using the parameters of the event wrong. Thank you for your help Rheines