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

How to use function DialogChoiceSelected inside of a DialogChoice?

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 comment

1

could you please include an image of the directory ? thanks.

1 answer

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! :(

3 comments

0

I am???

0

dude are you serious ? there is a thing called comment ya know.

0

well to be fair this comment wouldn't fit in a comment box, therefor it's fine it gets posted as an answer.

This discussion is preserved as it was. New answers, comments, and votes are closed.