Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a brick go transparent when i step on it?

brick = script.Parent

function turnGhostly() brick.Transparency = 0.5 end

brick.Touched:connect (turnGhostly)

2 answers

✓ Accepted answer

Alright I am rescripting that Entirely.

function onTouched(hit)
	brick = script.Parent
brick.Transparency = ("0.6")
wait(3.0)
brick.Transparency = ("0.20")
wait(3.0)
brick.Transparency = ("0.40")
wait(3.0)
brick.Transparency = ("0.80")
wait(3.0)
brick.Transparency = ("1.0")
wait(3.0)
end
script.Parent.touched:connect(onTouched)

After 3 seconds it continues to go invisible Making it Ghost Like than It ends and Restarts. ( Have to insert this into a Brick )

2 comments

0

Thanks! This totally works! P.S

0

No Problem

-- I'm not too sure if this'll work

brick = script.Parent
debounce = true
function turnGhostly()
if debounce then
decounce = false
brick.Transparency = 0.5

wait(2)
brick.Transparency = 0
debounce = true
end
end

brick.Touched:connect (turnGhostly)

This discussion is preserved as it was. New answers, comments, and votes are closed.