Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Get No clone into backpack And get no output pls help?

the script is this


function clicked()
	game.ServerStorage.WoodKey:Clone()
	game.ServerStorage.WoodKey = game.Players.Backpack
	



end


script.Parent.ClickDetector.MouseClick:Connect(clicked)

and there is no output im trying to clone one into the players backpack

1 answer

✓ Accepted answer

You are cloning it and doing nothing with the clone first of all. Also, you are setting WoodKey (object) to Backpack, when you're trying to set its parent instead. Lastly, you're setting it to "Backpack" of the Players service, not the actual player.

Try this:

function clicked(Player)
    game.ServerStorage.WoodKey:Clone().Parent = Player.Backpack
end

script.Parent.ClickDetector.MouseClick:Connect(clicked)

This discussion is preserved as it was. New answers, comments, and votes are closed.