Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How To Clone A Object From A Dialog?[Solved By Me]

Asked by
tanzane 100
9 years ago
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

0
If the name is "Krabby Pratty", then that's your problem, for you check if the name is "TheKrabbyPratty". Perci1 4988 — 9y
0
Oh, I'm sorry I made a mistake. The name of the Dialog choice that you are suppose to click is named 'TheKrabbyPatty' tanzane 100 — 9y

Answer this question