local v=require(script.Rain)v:SetColor(Color3.fromRGB(script.Color.Value.x,script.Color.Value.y,script.Color.Value.z))v:SetDirection(script.Direction.Value)v:SetTransparency(script.Transparency.Value)v:SetSpeedRatio(script.SpeedRatio.Value)v:SetIntensityRatio(script.IntensityRatio.Value)v:SetLightInfluence(script.LightInfluence.Value)v:SetLightEmission(script.LightEmission.Value)v:SetVolume(script.Volume.Value)v:SetSoundId(script.SoundId.Value)v:SetStraightTexture(script.StraightTexture.Value)v:SetTopDownTexture(script.TopDownTexture.Value)v:SetSplashTexture(script.SplashTexture.Value)local f=script.TransparencyThreshold.Value if script.TransparencyConstraint.Value and script.CanCollideConstraint.Value then v:SetCollisionMode(v.CollisionMode.Function,function(v)return v.Transparency<=f and v.CanCollide end)elseif script.TransparencyConstraint.Value then v:SetCollisionMode(v.CollisionMode.Function,function(v)return v.Transparency<=f end)elseif script.CanCollideConstraint.Value then v:SetCollisionMode(v.CollisionMode.Function,function(v)return v.CanCollide end)end v:Enable()
--!GENERATED
local Rain = require(script.Rain)

Rain:SetColor(Color3.fromRGB(script.Color.Value.x, script.Color.Value.y, script.Color.Value.z))
Rain:SetDirection(script.Direction.Value)

Rain:SetTransparency(script.Transparency.Value)
Rain:SetSpeedRatio(script.SpeedRatio.Value)
Rain:SetIntensityRatio(script.IntensityRatio.Value)
Rain:SetLightInfluence(script.LightInfluence.Value)
Rain:SetLightEmission(script.LightEmission.Value)

Rain:SetVolume(script.Volume.Value)

Rain:SetSoundId(script.SoundId.Value)
Rain:SetStraightTexture(script.StraightTexture.Value)
Rain:SetTopDownTexture(script.TopDownTexture.Value)
Rain:SetSplashTexture(script.SplashTexture.Value)

local threshold = script.TransparencyThreshold.Value
if script.TransparencyConstraint.Value and script.CanCollideConstraint.Value then
	Rain:SetCollisionMode(Rain.CollisionMode.Function, function(p)
		return p.Transparency <= threshold and p.CanCollide
	end)
elseif script.TransparencyConstraint.Value then
	Rain:SetCollisionMode(Rain.CollisionMode.Function, function(p)
		return p.Transparency <= threshold
	end)
elseif script.CanCollideConstraint.Value then
	Rain:SetCollisionMode(Rain.CollisionMode.Function, function(p)
		return p.CanCollide
	end)
end

Rain:Enable()
