Cloning card from players inventory into game problem

  1. What do you want to achieve? I want to clone a players inventory and then allow them to choose a player (card) from that inventory to use in a game.

  2. What is the issue? I haven’t been able to figure out a good way at knowing which card the player has clicked and then cloning said card into the game.

  3. What solutions have you tried so far? I have searched a bit on the internet to figure out how to fix this, but no luck unfortunately.

	script.Parent.closechoose.Visible = true
	local playerinv = script.Parent.Parent.Parent.CardInventory.InventoryScrollFrame:Clone()
	playerinv.Parent = script.Parent.Parent
	script.Disabled = true
	local playerchosen = playerinv:FindFirstChildOfClass("ImageLabel"):FindFirstChildOfClass("ImageButton")
		print("Chose Card for 1v1.")

as you can probably tell my script is pretty sloppy, and the main problem I’m facing is I want the player to be able to choose the card they wish to use, but if all the cards are imagelabels, how would I go about doing that? I have an entire database of the cards in replicated storage, so I was thinking of trying something with that, but I’m unsure. Any help is greatly appreciated! And I can also elaborate, because I’m certain I will have to because of how odd my situation is.

You can use RemoteEvents or RemoteFunctions, i really recommend RemoteFunctions

1 Like

I think that’s probably the direction I’m gonna go with this. Ty

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.