Advertisement
JannickP8

Roblox Low GFX Script

Jul 17th, 2023 (edited)
6,407
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 2 0
  1. --This Script makes every part low quality and deletes every decal
  2. --use it for low end devices
  3. --paste into your executor and execute
  4.  
  5. --settings
  6. local lowQualityParts = true
  7. local deleteDecalsAndTextures = true
  8. local disableShaodws = false --optional (set to true if wanted)
  9.  
  10.  
  11.  
  12. local lightning = game:GetService("Lighting")
  13.  
  14.         if disableShadows then
  15.         lightning.GlobalShadows = false
  16.         end
  17.      
  18.  
  19.         if deleteDecalsAndTextures then
  20.          local Model = workspace
  21.         local ClassTypes = {
  22.             "Decal",
  23.             "Texture"
  24.         }
  25.    
  26.         for _, v in ipairs(workspace:GetDescendants()) do
  27.             if table.find(ClassTypes, v.ClassName) then
  28.                 print(v.ClassName)
  29.                 v:Destroy()
  30.             end
  31.         end
  32.         end
  33.        
  34.         if lowQualityParts then
  35.         for i,v in pairs(workspace:GetDescendants()) do
  36.             if v:IsA("BasePart") then
  37.                 v.Material = Enum.Material.Plastic
  38.             end
  39.         end
  40.     end
  41.        
  42.        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement