-- Place this script inside a LocalScript in a part or a GUI button


local button = script.Parent -- Assuming the script is inside a button's LocalScript
local objectToClone = game.Workspace.Dummy -- Replace "ObjectToClone" with the name of the object you want to clone

button.MouseButton1Click:Connect(function()
	local clonedObject = objectToClone:Clone()
	clonedObject.Parent = game.Workspace -- Adjust the parent as needed

	clonedObject.Anchored = false
	-- Additional customization for the cloned object can be done here

	-- Optional: Make the cloned object disappear after a few seconds
	spawn(function()
		wait(1000000000000) -- Adjust the delay as needed
		clonedObject:Destroy()
	end)
end)
