---
# System prepended metadata

title: 23.03.10 Roblox - Sophie
tags: [Nova Academy, Programming, Roblox]

---

# 23.03.10 Roblox - Sophie
###### tags: `Nova Academy` `Programming` `Roblox`

## In class

### Fading Trap



**code**

```=rua


local function fade()
   if not isTouched then
     isTouched = true
		for count = 1, 10 do
		    platform.Transparency = count / 10
		    wait(0.1)
	    end
		platform.CanCollide = false
		wait(3)
		platform.CanCollide = true
		platform.Transparency = 0
     isTouched = false
   end
end

platform.Touched:Connect(fade)

```