OOFBOI574

Fading Platform Script (Roblox)

Nov 30th, 2021 (edited)
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Put inside a part
  2. local platform = script.Parent
  3.  
  4. local isTouched = false
  5.  
  6. local function fade()
  7.     if not isTouched then
  8.         isTouched = true
  9.         for count = 1, 10 do
  10.             platform.Transparency = count / 10
  11.             wait(0.1)
  12.         end
  13.         platform.CanCollide = false
  14.         wait(3)
  15.         platform.CanCollide = true
  16.         platform.Transparency = 0
  17.         isTouched = false
  18.     end
  19. end
  20.  
  21. platform.Touched:Connect(fade)
RAW Paste Data