E = game.ServerStorage.KrabbyPatty

script.Parent.Dialog.DialogChoiceSelected:connect(function(choice, player)
	if choice.Name == "TheKrabbyPatty" then
		E:Clone()
		E.Parent = player.Backpack
	end
end)

Do not mind the object that I'm cloning.

I have NO idea why this script isn't working. The script isn't disabled and I'm not getting any errors so in my case it should work. Right?

Extra Information:

The item I'm trying to clone is a Tool. The Handle is a union part, combined with 4-6 other parts containing different colors. This script is inside game.Workspace.Stove.Head. The Name of the DialogChoice is TheKrabbyPatty. I'm trying to direct the Krabby patty into the characters backpack. But I failed. Please help. Thanks

V_V

2 comments

0

If the name is "Krabby Pratty", then that's your problem, for you check if the name is "TheKrabbyPratty".

0

Oh, I'm sorry I made a mistake. The name of the Dialog choice that you are suppose to click is named 'TheKrabbyPatty'