Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use function DialogChoiceSelected inside of a DialogChoice?

Asked by 6 years ago
Edited 6 years ago

I have a dialog that when you select any of the dialogs, the game will kick you. But when I word it as

local Dialog = workspace.Guy.Head.Dialog.ChoiceC.DialogChoice

the script will not work when it is selected because I have multiple dialog choices within one dialog choice. Is there a way to replicate this exact script but have it activate when it is has multiple Dialog Choices? (This script is a local script in StarterGui)

local Dialog = workspace.Guy.Head.Dialog

Dialog.DialogChoiceSelected:connect(function(Player, Choice)
        game.Players.LocalPlayer:Kick()
end)

Directory: https://gyazo.com/9cc34f92662160af4e5a3831c411c07a

1
could you please include an image of the directory ? thanks. LeadRDRK 437 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Hello, lolkid007! I am sorry for posting an answer without actually explaining your problem, but you see there's a problem. You're not using code blocks. Please click the "Lua" icon above the box where you post your problem, then post the script inside, sorry if this is not explained enough please reply if you need more help. Thanks!

Ignited_Spark

P.S: Sorry for not answering! :(

0
I am??? lolkid007 43 — 6y
0
dude are you serious ? there is a thing called comment ya know. LeadRDRK 437 — 6y
0
well to be fair this comment wouldn't fit in a comment box, therefor it's fine it gets posted as an answer. Le_Teapots 913 — 6y
Ad

Answer this question