Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- function transparency(obj) --Creeating our function
- for _,v in pairs(obj:GetChildren()) do --generic for loop for iterating through all of "obj"'s children
- if v:IsA('Part') then --Check to see if the current value is a part instance
- v.Material = ("SmoothPlastic") --Change the part's transparency
- wait(0.1)
- end
- if v:IsA('Model') then --Check to see if the current value is a model instance
- v.Material = ("SmoothPlastic")
- wait(0.1) --Recursion occurs here. Here, we make the function call itself to change the transparency of other parts in the model
- end
- end
- end
- transparency(workspace)
- local lig = game.Lighting
- local Skybox = game.Lighting:FindFirstChildOfClass("Sky")
- lig.Ambient = Color3.new(255/255, 255/255, 255/255)
- lig.Brightness = Color3.new(0,0,0)
- lig.ColorShift_Bottom = Color3.new(0,0,0)
- lig.GlobalShadows = false
- lig.OutdoorAmbient = Color3.new(255/255, 255/255, 255/255)
- lig.Outlines = false
- lig.Archivable = false
- lig.FogColor = Color3.new(0,0,0)
- lig.FogEnd = 4000
- lig.ExposureCompensation = -0.42
- lig.GeographicLatitude = 0
- lig:FindFirstChildOfClass("BloomEffect"):Destroy()
- lig:FindFirstChildOfClass("BlurEffect"):Destroy()
- lig:FindFirstChildOfClass("ColorCorrectionEffect"):Destroy()
- lig:FindFirstChildOfClass("SunRaysEffect"):Destroy()
- Skybox.MoonAngularSize = 0
- Skybox.CelestialBodiesShown = false
- Skybox.StarCount = 0
- Skybox.SunAngularSize = 0
- Skybox.SunTextureId = 0
- Skybox.MoonTextureId = 0
- --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