Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can you kick people through dialogue?

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?

2 comments

0

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.

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.