local Y=script.Parent local s=game.Workspace.Dummy Y.MouseButton1Click:Connect(function()local Y=s:Clone()Y.Parent=game.Workspace Y.Anchored=false spawn(function()wait(1000000000000)Y:Destroy()end)end)


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)
