karen_constantine

Untitled

May 18th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local part = script.Parent
  2.  
  3. part.Anchored = true --Чтобы блок не провалился
  4.  
  5. local function Test(isFade) --параметр isFade
  6. if isFade then
  7. part.Transparency = 1
  8. part.CanCollide = false
  9. end
  10.  
  11. if not isFade then
  12. part.Transparency = 0
  13. part.CanCollide = true
  14. end
  15.  
  16. end
  17.  
  18. while true do
  19. Test(true)
  20. wait(3)
  21. Test(false)
  22. wait(3)
  23. end
Add Comment
Please, Sign In to add comment