I'm trying to make a dialog shop, when you use the dialog it will clone the item into your backpack.
But it never works, and the output didn't say anything. What did I do wrong?
(the items are in ReplicatedStorage and it is a server-sided script.)
local witchbrew = game.ReplicatedStorage.WitchBrew:Clone() local bloxcola = game.ReplicatedStorage.BloxyCola:Clone() script.Parent.DialogChoiceSelected:connect(function(player,choice) if choice.Name == "Bloxycolaprompt" then bloxcola.Parent = player.Backpack elseif choice.Name == "Witchesbrewprompt" then witchbrew.Parent = player.Backpack end end)
Perhaps the name isn't "boxycola.." and not "witch.. " try to print it and see the results
Its A typical Uppercase problem. try to rename "connect" to "Connect" in 05 line