I made a little script where you click a button then you get some tools. But, the problem is that the tools aren't appearing in the player's backpack! This problem has happend before to me aswell..
script.Parent.MouseButton1Click:connect(function() local move1 = script.Parent.Weapon local move2 = script.Parent.Weapon2 local moveStorage = workspace.Moves local plr = script.Parent.Parent.Parent.Parent.Parent.Parent local one = moveStorage:FindFirstChild(move1.Value):Clone() local two moveStorage:FindFirstChild(move2.Value):Clone() one.Parent = plr.Backpack two.Parent = plr.Backpack end)
Okay I fixed the problem with the 2nd move. I needed an =. It apparently just works online, thought move2 doesn't get cloned now...
script.Parent.MouseButton1Click:connect(function() local move1 = script.Parent.Weapon local move2 = script.Parent.Weapon2 local moveStorage = workspace.Moves local plr = script.Parent.Parent.Parent.Parent.Parent.Parent local one = moveStorage:FindFirstChild("Weapon"):Clone() -- Changed value to weapon name local two moveStorage:FindFirstChild("Weapon2"):Clone() -- Ditto. one.Parent = plr.Backpack two.Parent = plr.Backpack end)
I'm not sure if your move1 and move2 are values? If they are, then you can use move1.Value. If they're items/objects, you can use move1.Name and move2.Name.