Last active
January 31, 2025 09:21
-
-
Save ryanlua/9d1eaa00f4707db61edffe09c1576d98 to your computer and use it in GitHub Desktop.
Destory all welds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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