#How would I make fog that only appears when you touch an object?
1 messages · Page 1 of 1 (latest)
Like, you're teleported from a house to a barren plains area
At night or something
yeah possible
local lighting = game:GetService("Lighting")
lighting.FogEnd = 100
lighting.FogStart = 50
lighting.FogColor = Color3.fromRGB(20, 20, 30)
also
local atmosphere = Instance.new("Atmosphere")
atmosphere.Parent = lighting
atmosphere.Density = 0.8
atmosphere.Offset = 0.5
atmosphere.Color = Color3.fromRGB(30, 30, 40)
atmosphere.Decay = Color3.fromRGB(50, 50, 70)
atmosphere.Glare = 0.2
atmosphere.Haze = 2
for teleporting you can use
before teleporting
TweenService:Create(lighting, TweenInfo.new(1), {FogEnd = 1000}):Play()
after teleporting
TweenService:Create(lighting, TweenInfo.new(2), {
FogEnd = 80,
FogStart = 20,
FogColor = Color3.fromRGB(15, 15, 25)
}):Play()
Ive made this u gotta watch out for using multiple mist parts