So I'm making a little hangout place for me and my friends and I was thinking of making a bar with a dialog. The dialog works well but it doesn't give me the item. Here's the script I wrote. The script is right inside the DialogChoice.
local rootBeer = game.ReplicatedStorage.RootBeer
workspace.Dialog.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == "RootBeer" then
local clone = rootBeer:Clone() -- Setting the clone to the variable "clone"
clone.Parent = player.Backpack -- setting "clone"'s parent to player.Backpack
end
end)
