H = game.Workspace
local function Ghostify (Part)
H.Part.Transparency = 0
wait (0.5)
H.Part.Transparency = 0.1
wait (0.5)
H.Part.Transparency = 0.2
wait (0.5)
H.Part.Transparency = 0.3
wait (0.5)
H.Part.Transparency = 0.4
wait (0.5)
H.Part.Transparency = 0.5
wait (0.5)
H.Part.Transparency = 0.6
wait (0.5)
H.Part.Transparency = 0.7
wait (0.5)
H.Part.Transparency = 0.8
wait (0.5)
H.Part.Transparency = 0.9
wait (0.5)
H.Part.Transparency = 1
wait (0.5)
end
for i = 1, 5 do Parent:ghostify()
end
✓ ANSWER ACCEPTED
Script won't work? (Sorry, I'm a beginner scripter)
3 answers
✓ Accepted answer
H = game.Workspace
local function Ghostify(Part)
H.Part.Transparency = H.Part.Transparency + 0.1
end
for i = 1, 5 do --For the brick to be completely invisible, well you will have to figure it
wait()
Ghostify()
end
function Ghostify(part)
for i = part.Transparency*10, 10 do
part.Transparency = i
end
end
Ghostify( Parent )
Well I don't know how you want this "Ghostify" event to occur so I'll just do a basic "onTouch" function.
function onTouch(part)
local h = part.Parent:findFirstChild("Humanoid"+
if(h~=nil)then
-- Your script goes here, if it doesn't work try the others.
This discussion is preserved as it was. New answers, comments, and votes are closed.
