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
11 years ago
01H = game.Workspace
02 
03local function Ghostify (Part)
04H.Part.Transparency = 0
05wait (0.5)
06H.Part.Transparency = 0.1
07wait (0.5)
08H.Part.Transparency = 0.2
09wait (0.5)
10H.Part.Transparency = 0.3
11wait (0.5)
12H.Part.Transparency = 0.4
13wait (0.5)
14H.Part.Transparency = 0.5
15wait (0.5)
View all 34 lines...

3 answers

Log in to vote
0
Answered by 11 years ago
01H = game.Workspace
02 
03local function Ghostify(Part)
04    H.Part.Transparency = H.Part.Transparency + 0.1
05end
06 
07 
08for i = 1, 5 do --For the brick to be completely invisible, well you will have to figure it
09    wait()
10    Ghostify()
11end
Ad
Log in to vote
0
Answered by
hiccup111 231 Moderation Voter
11 years ago
1function Ghostify(part)
2    for i = part.Transparency*10, 10 do
3        part.Transparency = i
4    end
5end
6 
7Ghostify( Parent )
Log in to vote
0
Answered by
painzx3 43
11 years ago

Well I don't know how you want this "Ghostify" event to occur so I'll just do a basic "onTouch" function.

1function onTouch(part)
2local h = part.Parent:findFirstChild("Humanoid"+
3if(h~=nil)then
4-- Your script goes here, if it doesn't work try the others.

Answer this question