Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is a Item not cloning into a player backpack?

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)

1 comment

0

Its A typical Uppercase problem. try to rename "connect" to "Connect" in 05 line

2 answers

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

1 comment

0

i tried, but it didn't work, thanks anyway.

This discussion is preserved as it was. New answers, comments, and votes are closed.