I am only 10, but I have more experience than you may think in coding. However, I was coding in Roblox on my account named “shunonni” and tried to give the player a badge upon selecting a DialogueChoice. I tried 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. This is my structure. Please tell me if you can help.
Click here to see my explorer.
Thank you so much!
I was trying to code this script, and 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.
Shunoni is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.