yoitzErrorYT

anti fling

Jun 11th, 2023
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.77 KB | None | 0 0
  1. local ToDisable = {
  2.     Textures = true,
  3.     VisualEffects = true,
  4.     Parts = true,
  5.     Particles = true,
  6.     Sky = true
  7. }
  8.  
  9. local ToEnable = {
  10.     FullBright = false
  11. }
  12.  
  13. local Stuff = {}
  14.  
  15. for _, v in next, game:GetDescendants() do
  16.     if ToDisable.Parts then
  17.         if v:IsA("Part") or v:IsA("Union") or v:IsA("BasePart") then
  18.             v.Material = Enum.Material.SmoothPlastic
  19.             table.insert(Stuff, 1, v)
  20.         end
  21.     end
  22.    
  23.     if ToDisable.Particles then
  24.         if v:IsA("ParticleEmitter") or v:IsA("Smoke") or v:IsA("Explosion") or v:IsA("Sparkles") or v:IsA("Fire") then
  25.             v.Enabled = false
  26.             table.insert(Stuff, 1, v)
  27.         end
  28.     end
  29.    
  30.     if ToDisable.VisualEffects then
  31.         if v:IsA("BloomEffect") or v:IsA("BlurEffect") or v:IsA("DepthOfFieldEffect") or v:IsA("SunRaysEffect") then
  32.             v.Enabled = false
  33.             table.insert(Stuff, 1, v)
  34.         end
  35.     end
  36.    
  37.     if ToDisable.Textures then
  38.         if v:IsA("Decal") or v:IsA("Texture") then
  39.             v.Texture = ""
  40.             table.insert(Stuff, 1, v)
  41.         end
  42.     end
  43.    
  44.     if ToDisable.Sky then
  45.         if v:IsA("Sky") then
  46.             v.Parent = nil
  47.             table.insert(Stuff, 1, v)
  48.         end
  49.     end
  50. end
  51.  
  52. game:GetService("TestService"):Message("Effects Disabler Script : Successfully disabled "..#Stuff.." assets / effects. Settings :")
  53.  
  54. for i, v in next, ToDisable do
  55.     print(tostring(i)..": "..tostring(v))
  56. end
  57.  
  58. if ToEnable.FullBright then
  59.     local Lighting = game:GetService("Lighting")
  60.    
  61.     Lighting.FogColor = Color3.fromRGB(255, 255, 255)
  62.     Lighting.FogEnd = math.huge
  63.     Lighting.FogStart = math.huge
  64.     Lighting.Ambient = Color3.fromRGB(255, 255, 255)
  65.     Lighting.Brightness = 5
  66.     Lighting.ColorShift_Bottom = Color3.fromRGB(255, 255, 255)
  67.     Lighting.ColorShift_Top = Color3.fromRGB(255, 255, 255)
  68.     Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
  69.     Lighting.Outlines = true
  70. end
Tags: lua
Add Comment
Please, Sign In to add comment