Greetings everybody, I’m trying to make a script that kicks the player if they select the wrong choice using Dialog, I have made the script, it brings no errors but it does nothing (doesn’t kick the player whatsoever)
local Players = game:GetService("Players")
workspace.SomePart.Dialog.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == "KickAction" then
player:Kick()
end
end)