Its inside the "part" brick located in workspace
local function Ghostify (part)
part.transparency = 0
wait (0.5)
part.transparency = 0.1
wait (0.5)
part.transparency = 0.2
wait (0.5)
part.transparency = 0.3
wait (0.5)
part.transparency = 0.4
wait (0.5)
part.transparency = 0.5
wait (0.5)
part.transparency = 0.6
wait (0.5)
part.transparency = 0.7
wait (0.5)
part.transparency = 0.8
wait (0.5)
part.transparency = 0.9
wait (0.5)
part.transparency = 1
wait (0.5)
for i = 1, 5 do parent:ghostify() end
What your script looked like:
local function Ghostify (part) part.transparency = 0 wait (0.5) part.transparency = 0.1 wait (0.5) part.transparency = 0.2 wait (0.5) part.transparency = 0.3 wait (0.5) part.transparency = 0.4 wait (0.5) part.transparency = 0.5 wait (0.5) part.transparency = 0.6 wait (0.5) part.transparency = 0.7 wait (0.5) part.transparency = 0.8 wait (0.5) part.transparency = 0.9 wait (0.5) part.transparency = 1 wait (0.5) for i = 1, 5 do parent:ghostify() end
This is as much as I can do, but I think it needs some corrections:
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) for i = 1, 5 do Parent:ghostify() end
I think..
if workspace:FindFirstChild("Part")then for i=1,workspace.Part,0.5 do workspace.Part.Transparency=workspace.Part.Transparency+i end else print("Part doesn't exist") end
Transparency needs to be capitalized so does Wait and Parent and part if it is capitalized when spelt in the workspace