Skip to content

Instantly share code, notes, and snippets.

@RyanLua
Last active January 31, 2025 09:23
Show Gist options
  • Save RyanLua/cb0d9d44a634bd0deff4528397c14342 to your computer and use it in GitHub Desktop.
Save RyanLua/cb0d9d44a634bd0deff4528397c14342 to your computer and use it in GitHub Desktop.
Change all CollisionFidelity to Box
local ChangeHistoryService = game:GetService("ChangeHistoryService")
local recording = ChangeHistoryService:TryBeginRecording("Change CollisionFidelity to Box on TriangleMeshParts")
for _, descendant in pairs(game:GetDescendants()) do
if descendant:IsA("TriangleMeshPart") then
descendant.CollisionFidelity = Enum.CollisionFidelity.Box
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