So, I created an admin GUI. There is a section of that admin GUI that allows an admin to kick players. I put a textbox there so that the admin can type in the kick message. My script does kick the player intended, but it does not show the kick message that the admin put in the textbox.
Here are the scripts:
Client:
kick = script.Parent.Parent.Players.Events.Kick
askServer = game.ReplicatedStorage.AskServer
local plr
kick.Event:Connect(function(player)
plr = player
end)
script.Parent.Kick.MouseButton1Click:Connect(function()
askServer:FireServer(plr, script.Parent.Message.Text)
end)
Server:
askServer = game.ReplicatedStorage.AskServer
askServer.OnServerEvent:Connect(function(playerToKick, kickMessage)
print(kickMessage)
playerToKick:Kick(kickMessage)
end)

2 comments
torchmaster101, does it print something in the chat at least? If not then it might have something to do with what deals the textbox i think
It does, but it only prints my username. It doesn't print the kick message.