Last active
January 31, 2025 09:26
-
-
Save ryanlua/edf0fc431dc187987e0ac60c7827e3d2 to your computer and use it in GitHub Desktop.
Changes the LevelOfDetail for all Models to StreamingMesh
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("Change LevelOfDetail to StreamingMesh") | |
| for _, descendant in pairs(game:GetDescendants()) do | |
| if descendant:IsA("Model") then | |
| descendant.LevelOfDetail = Enum.ModelLevelOfDetail.StreamingMesh | |
| 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