01 | H = game.Workspace |
02 |
03 | local function Ghostify (Part) |
04 | H.Part.Transparency = 0 |
05 | wait ( 0.5 ) |
06 | H.Part.Transparency = 0.1 |
07 | wait ( 0.5 ) |
08 | H.Part.Transparency = 0.2 |
09 | wait ( 0.5 ) |
10 | H.Part.Transparency = 0.3 |
11 | wait ( 0.5 ) |
12 | H.Part.Transparency = 0.4 |
13 | wait ( 0.5 ) |
14 | H.Part.Transparency = 0.5 |
15 | wait ( 0.5 ) |
01 | H = game.Workspace |
02 |
03 | local function Ghostify(Part) |
04 | H.Part.Transparency = H.Part.Transparency + 0.1 |
05 | end |
06 |
07 |
08 | for i = 1 , 5 do --For the brick to be completely invisible, well you will have to figure it |
09 | wait() |
10 | Ghostify() |
11 | end |
1 | function Ghostify(part) |
2 | for i = part.Transparency* 10 , 10 do |
3 | part.Transparency = i |
4 | end |
5 | end |
6 |
7 | Ghostify( Parent ) |
Well I don't know how you want this "Ghostify" event to occur so I'll just do a basic "onTouch" function.
1 | function onTouch(part) |
2 | local h = part.Parent:findFirstChild( "Humanoid" + |
3 | if (h~ = nil ) then |
4 | -- Your script goes here, if it doesn't work try the others. |