I have been trying for hours to get this part of my giver to work, but the tool simply won't work when cloned into the player's Backpack. Strangely, it does copy the tool into the Player's Backpack and StarterGear. But when the Player resets, the tool doesn't return to the Backpack from the StarterGear. The Tool itself works as intended if it's in the StarterPack. I would like to know where I went wrong. Do keep in mind this is only one part of a bigger script so let me know if you need the entire script, even though most of it doesn't apply to the giver part. For reference, result.Name is from the randomizer I have that's working in the upper section of the script; change to whatever tool name you need to test it with.Thanks!

Opener = script.Parent.Parent.Parent

local function givetools(...)
	local tool = game.Lighting:findFirstChild(result.Name)
	tool:Clone().Parent = Opener.Backpack
	tool:Clone().Parent = Opener.StarterGear
	end
	end
	givetools()
end

4 comments

0

just a recommendation i think its better to store it in serverstorage instead of lighting

0

where did you put the script

0

did you try erasing the 3 dots or putting it in givetools()??

0

The script is a LocalScript contained in a ScreenGui. The Gui is in PlayerGui.