Guest User

Disco script (SS hub tutorial part 7 from cXyzkidd)

a guest
Sep 12th, 2024
1,295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | Gaming | 0 0
  1. -- serverside hub part 7 (Please watch part 1-6 first if you havent.)
  2. -- original script by infnite yield ss creators
  3.  
  4. script.Parent.MouseButton1Click:Connect(function()
  5.     local Lighting = game:GetService("Lighting")
  6.     local ColorCorrection = Instance.new("ColorCorrectionEffect", Lighting)
  7.  
  8.     function zigzag(X)
  9.         return math.acos(math.cos(X*math.pi))/math.pi
  10.     end
  11.  
  12.     Counter = 0
  13.  
  14.     Lighting.TimeOfDay = "15:00"
  15.  
  16.     while wait(0.1) do
  17.         ColorCorrection.TintColor = Color3.fromHSV(zigzag(Counter),1,1)
  18.         Lighting.Ambient = Color3.fromHSV(zigzag(Counter),1,1)
  19.         Counter += 0.01
  20.     end
  21. end)
Tags: cXyzkidd
Advertisement
Add Comment
Please, Sign In to add comment