(Game:GetService("\067\111\110\116\101\110\116\080\114\111\118\105\100\101\114")):Preload("\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\056\050\052\055\053\053\048");(Game:GetService("\067\111\110\116\101\110\116\080\114\111\118\105\100\101\114")):Preload("\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\056\050\052\055\054\055\057")function waitForChild(q,B)while not q:FindFirstChild(B)do q.ChildAdded:wait()end end local q=script.Parent local B=Instance.new("\068\101\099\097\108")B.Name="\083\116\097\116\105\099"B.Texture="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\056\050\052\055\053\053\048"B.Face="\076\101\102\116"waitForChild(q,"\067\108\105\099\107\068\101\116\101\099\116\111\114")local j=q.ClickDetector function flicker(q)local j=tick()while tick()-j<q do B.Texture="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\056\050\052\055\054\055\057"wait(flickerSpeed)B.Texture="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\056\050\052\055\053\053\048"wait(flickerSpeed)end end local S=false function tvOn()if S then return end S=true static=q:FindFirstChild("\083\116\097\116\105\099")if static then static:Remove()end B.Parent=q flicker(3)B.Parent=nil S=false end j.MouseClick:connect(tvOn)
-- preload our two static images here
Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=58247550")
Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=58247679")

function waitForChild(parent, child)
	while not parent:FindFirstChild(child) do
		parent.ChildAdded:wait()
	end
end

local screen = script.Parent

local staticDecal = Instance.new("Decal")
staticDecal.Name = "Static"
staticDecal.Texture = "http://www.roblox.com/asset/?id=58247550"
staticDecal.Face = "Left"

waitForChild(screen, "ClickDetector")
local clickDetector = screen.ClickDetector

function flicker(timeToFlicker)
	local startTime = tick()
	while tick() - startTime < timeToFlicker do
		staticDecal.Texture = "http://www.roblox.com/asset/?id=58247679"
		wait(flickerSpeed)
		staticDecal.Texture = "http://www.roblox.com/asset/?id=58247550"
		wait(flickerSpeed)
	end
end

local debounce = false
function tvOn()
	if debounce then
		return
	end
	debounce = true

	-- should take care of one little data persistance caveat...
	static = screen:FindFirstChild("Static")
	if static then
		static:Remove()
	end

	staticDecal.Parent = screen

	flicker(3)

	staticDecal.Parent = nil
	debounce = false
end

clickDetector.MouseClick:connect(tvOn)
