For my game I want to kick people through dialogue depending on what choice they choose but I don't know how is it possible?
✓ ANSWER ACCEPTED
Can you kick people through dialogue?
1 answer
✓ Accepted answer
script.Parent.DialogChoiceSelected:Connect(function(player,choice)
if choice.Name == "yes" then
player:Kick()
end
end)
1 comment
0
where do i put this?
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
It's possible. By 'dialogue' I assume you're talking about the chat bubbles on an NPC (I haven't used this in ages)? If so, when they click the chat bubble, you are returned the player object in the event. With that player object, you could kick them.
http://wiki.roblox.com/index.php?title=API:Class/Dialog/DialogChoiceSelected <-- Stole GingeyLol's answer. c: