Im trying to make a script where it prints cool when you select a dialog option and it wont work
Script is a local script parented to dialog
script.Parent.DialogChoiceSelected:Connect(function(player,choice)
print("cool")
end)
Im trying to make a script where it prints cool when you select a dialog option and it wont work
Script is a local script parented to dialog
script.Parent.DialogChoiceSelected:Connect(function(player,choice)
print("cool")
end)
I put it in the dummy’s character but it still wont work does it have to be a players character?
Edit: i should probably check the link before i type
Where else should i put it
Yes, I apologize for the confusion.
Move it to StarterPlayerScripts/StarterCharacterScripts and change the way in which the dialog is referenced, i.e; from:
local dialog = script.Parent
to:
local dialog = workspace.Part.Dialog