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

Fade on touch?

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

2 answers

-- 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.

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