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

Dialog Item Giver Script is not working?

Asked by 5 years ago
Edited 5 years ago

This is my script.

script.Parent.DialogChoiceSelected:connect(function(player, choice)
    if (choice == script.Parent.Choice1) then
    --  if (player.Backpack:findFirstChild("Beretta")==nil) then
            pistol = game.Lighting["Item1"]:clone()
            pistol.Parent = player.Backpack
    --  end
    end
    if (choice == script.Parent.Choice2) then
    --  if (player.Backpack:findFirstChild("Beretta")==nil) then
            pistol = game.Lighting["item2"]:clone()
            pistol.Parent = player.Backpack
    --  end
    end
end)

It has worked perfectly for years until recently. Does anyone know any fixes or alternatives?

0
Why did you dash some of the lines sheepposu 561 — 5y

Answer this question