Advertisement
KrysteL1337

FPS BOOSTER

Mar 14th, 2019
2,921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.77 KB | None | 0 0
  1. wait(1)
  2.  
  3. function transparency(obj) --Creeating our function
  4.            for _,v in pairs(obj:GetChildren()) do --generic for loop for iterating through all of "obj"'s children
  5.                   if v:IsA('Part') then --Check to see if the current value is a part instance
  6.                          v.Material = ("SmoothPlastic") --Change the part's transparency
  7.                          wait(0.1) 
  8.                   end
  9.                   if v:IsA('Model') then --Check to see if the current value is a model instance
  10.                          v.Material = ("SmoothPlastic")
  11.                          wait(0.1)   --Recursion occurs here. Here, we make the function call itself to change the transparency of other parts in the model
  12.                   end
  13.            end
  14.     end
  15.      
  16.     transparency(workspace)
  17.  
  18.  
  19. local lig = game.Lighting
  20. local Skybox = game.Lighting:FindFirstChildOfClass("Sky")
  21.  
  22. lig.Ambient = Color3.new(255/255, 255/255, 255/255)
  23. lig.Brightness = Color3.new(0,0,0)
  24. lig.ColorShift_Bottom = Color3.new(0,0,0)
  25. lig.GlobalShadows = false
  26. lig.OutdoorAmbient = Color3.new(255/255, 255/255, 255/255)
  27. lig.Outlines = false
  28. lig.Archivable = false
  29. lig.FogColor = Color3.new(0,0,0)
  30. lig.FogEnd = 4000
  31. lig.ExposureCompensation = -0.42
  32. lig.GeographicLatitude = 0
  33. lig:FindFirstChildOfClass("BloomEffect"):Destroy()
  34. lig:FindFirstChildOfClass("BlurEffect"):Destroy()
  35. lig:FindFirstChildOfClass("ColorCorrectionEffect"):Destroy()
  36. lig:FindFirstChildOfClass("SunRaysEffect"):Destroy()
  37. Skybox.MoonAngularSize = 0
  38. Skybox.CelestialBodiesShown = false
  39. Skybox.StarCount = 0
  40. Skybox.SunAngularSize = 0
  41. Skybox.SunTextureId = 0
  42. Skybox.MoonTextureId = 0
  43.  
  44.  
  45. --This line will go through all objects in workspace, and if a part is found, its transparency will change, but if a model has been found, it will change the transparency of all parts in the model.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement