Weird issue going on with cloning tools [SOLVED]

Hello, I’m working on a simple block game just for fun and I came across a issue that I’m confused on why its happening.

This is the script where I’m having the issue on:

Basically I have a folder of a bunch of different blocks, and I’m making it where for each block it makes a clone of the block tool and copys the data from that block to the tool, then it will place the tool in the players backpack. For some odd reason though, the tool doesn’t appear in the players inventory.

I already tried printing the tool and stuff to see if the script was doing it right and it was, there was no errors and the prints were correct.

If anyone knows why this issue may be happening please let me know!

1 Like

I’ve sometimes come across this too. I’ve always had more success adding tools to the players backpack when I connect it to the CharacterAdded event instead:

game.Players.PlayerAdded:connect(function(player)
	
	player.CharacterAdded:Connect(function()
		for i,v in pairs(game.ReplicatedStorage.Blocks:GetChildren()) do
			--- rest of your code
		end
		
	end)
	
end)

Well somehow this worked, thanks for the help!

2 Likes

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