Hi, as the Title sais I'm trying to locate 2 tools which are both called "atlas sword" using findFirstChild method. but for some reason it won't work. here's the script:
local player = game.Players.LocalPlayer
local l = player.Backpack:findFirstChild("atlas sword")
script.Parent.MouseButton1Click:connect(function()
if game:GetService("MarketplaceService"):PlayerOwnsAsset(player,277976767) then
game.Lighting["atlas sword"]:Clone().Parent = player.Backpack
if l then
l:Remove()
end
end
end)
Thanks for the Help.

1 comment
Cheers