I am cloning this Folder full of TextLabels into a SurfaceGui. I have a button in the SurfaceGui to remove the Folder with "Destroy()". The Folder never removes when I click the button. (The game is FE)
Cloning Script: --This is a LocalScript
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Parent.ScreenGui.Frame.Visible = true
wait(0.1)
local order = game.Players.LocalPlayer.Backpack.Order:Clone()
order.Parent = game.Workspace.OrderMachine.Order.SurfaceGui.Frame
end)
Destroy Script: --This is a Script
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Order:Destroy()
end)

3 comments
Use a remote event to tell the server that the player has clicked the GuiButton. The server should handle destroying and cloning the objects.
Cloning an instance on the client wont replicate to the server.
Agreed