script.Parent.MouseButton1Click:Connect(function() local name = script.Parent.Parent.plrname.ContentText local player = game.Players.LocalPlayer local plr = game.Players:FindFirstChild(name) for i,v in pairs(player.BackPack) do v:Clone().Parent = plr.BackPack wait(.2) v:Destroy() if game.ReplicatedStorage.orders.order.Value == 1 then game.ReplicatedStorage.orders.order.Value = game.ReplicatedStorage.orders.order.Value -1 end end end)
This is meant to take the text from the textbox and use that to find the name of the player. Then, it will give that player all of the items in the player that clicked the gui has. Please Help!