Skip to content

Instantly share code, notes, and snippets.

@ryanlua
Last active January 31, 2025 09:21
Show Gist options
  • Select an option

  • Save ryanlua/9d1eaa00f4707db61edffe09c1576d98 to your computer and use it in GitHub Desktop.

Select an option

Save ryanlua/9d1eaa00f4707db61edffe09c1576d98 to your computer and use it in GitHub Desktop.
Destory all welds
local ChangeHistoryService = game:GetService("ChangeHistoryService")
local recording = ChangeHistoryService:TryBeginRecording("Destory Welds")
for _, descendant in pairs(game:GetDescendants()) do
if descendant:IsA("Weld") then
descendant:Destroy()
end
end
ChangeHistoryService:FinishRecording(recording, Enum.FinishRecordingOperation.Commit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment