Hello!
I’ve been trying to get this old dialog tool giver to give me a tool stored in lighting, but it won’t work for me because it’s likely not set up correctly. I’ve tried using ChatGP and Assistant to see if I can even just get the event connected and print something, but no luck.
Here’s the code:
script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.Choice1) then
-- if (player.Backpack:findFirstChild("Beretta")==nil) then
gun = game.Lighting["XLR1"]:clone()
gun.Parent = player.Backpack
-- end
end
end)
Here’s how the stuff is nested.