I have been wondering, if a certain dialog is selected, then can I like make the NPC give you an item?
Part of script that needs an "Item Giver" part to it.
script.Parent.DialogChoiceSelected:connect(function(Player, Choice) if Choice.Name == "DialogChoice" then --- Item Giver Script
Also can this work on a custom dialog? I can still wonder... Custom Dialog
Basically once a certain text is done (on keypress [E]), the NPC gives you an item.
Regular Dialog
Same thing as the custom dialog but just using the regular dialog.
NPC giving you items
This part is the main script. I tried using one of those "Giver" scripts but that didn't work out too well if I could have some help I would greatly appreciate it.
listen to DialogChoiceSelected, a property of the dialog.
http://wiki.roblox.com/index.php?title=Usage_of_dialogs
If you want to mka eyour game filteringEnabled, listen to the DialogChoiceSelected in a localscript, fire an event, and have the event award the item, by copying the item from serverstorage into the player (who's client fired the event)'s backpack.
Similar approach for a custom gui, but now the localscript doesn't listen to dialogChoiceSelected but to a GUI button press.