Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script won't work? (Sorry, I'm a beginner scripter)

Asked by
Nidoxs 190
10 years ago
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 

3 answers

Log in to vote
0
Answered by 10 years ago
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 

Ad
Log in to vote
0
Answered by
hiccup111 231 Moderation Voter
10 years ago
function Ghostify(part)
    for i = part.Transparency*10, 10 do
        part.Transparency = i
    end
end

Ghostify( Parent )
Log in to vote
0
Answered by
painzx3 43
10 years ago

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.

Answer this question