I tried to give the player a badge upon selecting a DialogueChoice using this script :
local blah = Instance.fromExisting(script.Parent)
print(blah)
script.Parent.Parent.Parent.DialogChoiceSelected:Connect(function(plr, blah)
print("hiiiiiiiiiiiiiiiiiiiiiiiiii")
end)
However, it did nothing. I expected to have something pop up in the console, but it was empty. I tried adding a Print("Test")
command to the start and see if that would work, and it did. The error is in detecting when the text is selected.
This is the structure in the Explorer.
New contributor
Shunoni is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.