Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save ryanlua/edf0fc431dc187987e0ac60c7827e3d2 to your computer and use it in GitHub Desktop.
Changes the LevelOfDetail for all Models to StreamingMesh
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