Advertisement
Tacidus

Dissapearing Part

May 10th, 2023
712
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local MainPart = script.parent
  2. local TCheck = false
  3.  
  4. local function diss()
  5.     if TCheck = false then
  6.         TCheck = true
  7.  
  8.     for num = 1, 10 do
  9.         MainPart.Transparency = num / 10
  10.         wait(.1)
  11.     end
  12.    
  13.     MainPart.CanCollide = false
  14.     wait(3)
  15.     MainPart.Cancollide = true
  16.     MainPart.Transparency = 0
  17.     TCheck = false
  18.  
  19.     end
  20. end
  21.  
  22. MainPart.Touched:Connect(diss)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement