Guest User

Untitled

a guest
Jun 13th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. x=false
  2. x=true
  3. q=20
  4. d=true
  5.  
  6. while wait() do
  7.     if d then
  8.         if q >= 100 then
  9.             d=false
  10.         else
  11.             q=q+5
  12.         end
  13.     end
  14.     if not d then
  15.         if q <= 0 then
  16.             d=true
  17.         else
  18.             q=q-5
  19.         end
  20.     end
  21.  
  22.     workspace.CurrentCamera.FieldOfView = (q/100*60) + 20
  23.  
  24.     math.randomseed(tick())
  25.  
  26.     game.Lighting.Ambient=Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  27.     game.Lighting.Brightness = math.random(1,500)/100
  28.     game.Lighting.FogEnd = q*10
  29.     game.Lighting.FogStart = 300-q
  30.     game.Lighting.FogColor = Color3.new(q/100,q/100,q/100)
  31.     game.Lighting:SetMinutesAfterMidnight(q/100*1439)
  32. end
Add Comment
Please, Sign In to add comment