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

Fade on touch?

Asked by 10 years ago

How would i script a brick, so when a player touches it, it fades away?

2 answers

Log in to vote
0
Answered by
wrenzh 65
10 years ago
0
OKay, i'l ltry it. masterhalo55 75 — 10y
0
Did you figure it out? wrenzh 65 — 10y
Ad
Log in to vote
0
Answered by 10 years ago
-- Put this script in the block that will fade
function onTouch(Touched)
    if Touched.Parent:findFirstChild("Humanoid") then
        for i = 1, 50 do
            script.Parent.Transparency=script.Parent.Transparency+0.2
            wait(1) -- Adjust "1" to your liking
        end
    end
end

script.Parent.Touched:connect(onTouch)

This should work! I tested it and it works for me.

Answer this question