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?

1 comment
Why did you dash some of the lines