generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Kick player when dialogchoice is clicked

Previous Thread :: Next Thread 
iiSecretEdition is not online. iiSecretEdition
Joined: 19 Dec 2015
Total Posts: 219
09 Jun 2017 01:25 AM
okay, so i'm making this game
and i made a dialog on an npc.
i added 4 dialog choices in the dialog
one of it is an insult
so when the player click the insult dialogchoice
he gets kicked

and i don't know how to script a player
being kicked when he click on a certain dialogchoice.

can anyone help?

(i know this is against the rules but google didn't help.)
Report Abuse
iiSecretEdition is not online. iiSecretEdition
Joined: 19 Dec 2015
Total Posts: 219
09 Jun 2017 01:28 AM
also i forgot to mention that the name of the dialogchoice with the insult is
"insultdialogchoice"
Report Abuse
Ossiehh is not online. Ossiehh
Joined: 29 Nov 2010
Total Posts: 76
09 Jun 2017 03:50 AM
workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == "No" then -- Change the "No" to your dialog
print("Wrong answer!")
player:Kick("Wrong Answer!") -- kicks the player with a message of "Wrong Answer"
elseif choice.Name == "Yes" then -- Change the "Yes" to your dialog
print("Right answer!")
end
end)

wiki.roblox.com/index.php?title=Usage_of_dialogs


Never gonna give you up. Never gonna let you down. Never gonna run around and desert you.
Report Abuse
iiSecretEdition is not online. iiSecretEdition
Joined: 19 Dec 2015
Total Posts: 219
15 Jun 2017 08:37 AM
thanks man!
time to go use this!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image