Attempt to index nil with backpack!??
01 | script.Parent.MouseButton 1 Click:Connect( function () |
02 | local name = script.Parent.Parent.plrname.ContentText |
03 | local player = game.Players.LocalPlayer |
04 | local plr = game.Players:FindFirstChild(name) |
05 | for i,v in pairs (player.BackPack) do |
06 | v:Clone().Parent = plr.BackPack |
09 | if game.ReplicatedStorage.orders.order.Value = = 1 then |
10 | game.ReplicatedStorage.orders.order.Value = game.ReplicatedStorage.orders.order.Value - 1 |
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!