local B={}local i=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")B.module_events=require(script.Parent.Parent.Module_Events)local e=(game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")).Misc.Eyes:GetChildren()function B.tease(i,u,F,k,j)local g=k spawn(function()if not g then g=math.random(1,500)end g=Random.new(g)local i={}local k={}for B,e in pairs(u:GetDescendants())do if e:IsA("\066\097\115\101\080\097\114\116")then if e.Name=="\087\097\108\108"or e.Name=="\087\097\108\108\095\083\116\114\105\112"then table.insert(i,e)end if e.Name=="\067\097\114\112\101\116"then table.insert(k,e)end end end if#k<=0 then for B,i in pairs(u:GetDescendants())do if i:IsA("\066\097\115\101\080\097\114\116")and i.Name=="\070\108\111\111\114"then table.insert(k,i)end end end local j=RaycastParams.new()j.CollisionGroup="\067\104\101\099\107\087\097\108\108\083\116\117\102\102"local S=RaycastParams.new()S.CollisionGroup="\067\104\101\099\107\087\097\108\108\083\116\117\102\102"B.module_events.flickerLights(u,math.clamp(F/5,.4,1))local Y=F for B=1,100,1 do local i=workspace:Raycast(k[g:NextInteger(1,#k)].Position+Vector3.new(g:NextInteger(-5,5),g:NextInteger(5,11),g:NextInteger(-5,5)),(CFrame.Angles(0,math.rad(g:NextInteger(0,360)),0)).LookVector*150,j)local F=Vector3.new(4,2,0)if i then local B=i.Position local k=i.Instance local j=i.Normal if B and(k and(k.Anchored==true and(k.Name=="\087\097\108\108"or k.Name=="\087\097\108\108\065\108\116")))then for i=1,4,1 do if i<=2 then local B=1 else v19=-1 end if i==2 or i==4 then local B=1 else v20=-1 end local e=workspace:Raycast((CFrame.new(B+j,B)*CFrame.new((F.X/2)*v19,(F.Y/2)*v20,0)).p,j*-1.1,S)if not e then local B=false break end local u=e.Instance local k=e.Normal if not e.Position then v22=false break end if not u then v22=false break end if u.Anchored~=true then v22=false break end if u.Name~="\087\097\108\108"and u.Name~="\087\097\108\108\065\108\116"then v22=false break end end else v22=false end if v22==true then local i=e[g:NextInteger(1,#e)]:Clone()i:SetPrimaryPartCFrame(CFrame.new(B,B+j)*CFrame.Angles(0,0,math.rad(g:NextInteger(-20,20))))i.Parent=u i.PrimaryPart.PlaySound:Play()i.PrimaryPart.Splat.Pitch=g:NextInteger(80,120)/100 i.PrimaryPart.Splat:Play()spawn(function()pcall(function()task.delay(3,function()for B,i in pairs(i:GetDescendants())do if i:IsA("\066\097\115\101\080\097\114\116")then i.CanCollide=false i.CanQuery=false i.CanTouch=false i.CollisionGroupId=1 end end end)end)if(UserSettings()).GameSettings.SavedQualityLevel.Value>=5 then pcall(function()for B=1,math.random(1,3),1 do wait(math.random(5,50)/10)i.Eye.Transparency=1 i.Eye.Decal.Transparency=1 i.PrimaryPart.ParticleEmitter:Emit(2)i.PrimaryPart.Blink.Pitch=g:NextInteger(80,120)/120 i.PrimaryPart.Blink:Play()wait(.1)i.Eye.Transparency=0 i.Eye.Decal.Transparency=0 end end)end end)Y=Y-1 end end task.wait(.016666666666667)if Y<=0 then break end end end)if j==true then spawn(function()for B,i in pairs(u:GetDescendants())do if(UserSettings()).GameSettings.SavedQualityLevel.Value>=5 and(i:IsA("\066\097\115\101\080\097\114\116")and(i.Name=="\087\097\108\108"or i.Name=="\087\097\108\108\095\083\116\114\105\112"or i.Name=="\087\097\108\108\065\108\116"or i.Name=="\070\108\111\111\114"or i.Name=="\067\097\114\112\101\116"or i.Name=="\067\101\105\108\105\110\103"))then local B={Enum.NormalId.Front,Enum.NormalId.Back;Enum.NormalId.Right;Enum.NormalId.Left,Enum.NormalId.Top,Enum.NormalId.Bottom}if i.Name=="\087\097\108\108"or i.Name=="\087\097\108\108\095\083\116\114\105\112"or i.Name=="\087\097\108\108\065\108\116"then B={Enum.NormalId.Front,Enum.NormalId.Back;Enum.NormalId.Right,Enum.NormalId.Left}end if i.Name=="\070\108\111\111\114"or i.Name=="\067\097\114\112\101\116"then B={Enum.NormalId.Top}end if i.Name=="\067\101\105\108\105\110\103"then B={Enum.NormalId.Bottom}end for B,e in pairs(B)do local u=(game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")).Misc.EyesTexture:Clone()u.Face=e u.Parent=i task.spawn(function()local B=tick()for i=1,100,1 do u.OffsetStudsU=math.random(-50,50)u.OffsetStudsV=math.random(-50,50)task.wait(math.random(20,100)/100)if B+12<=tick()then break end end end)game.Debris:AddItem(u,12)end end end end)end end return B
-- Decompiled with the Synapse X Luau decompiler.

local v1 = {}
local l__TweenService__2 = game:GetService("TweenService")
v1.module_events = require(script.Parent.Parent.Module_Events)
local u1 = game:GetService("ReplicatedStorage").Misc.Eyes:GetChildren()
function v1.tease(p1, p2, p3, p4, p5)
	local u2 = p4
	spawn(function()
		if not u2 then
			u2 = math.random(1, 500)
		end
		u2 = Random.new(u2)
		local v3 = {}
		local v4 = {}
		for v5, v6 in pairs(p2:GetDescendants()) do
			if v6:IsA("BasePart") then
				if v6.Name == "Wall" or v6.Name == "Wall_Strip" then
					table.insert(v3, v6)
				end
				if v6.Name == "Carpet" then
					table.insert(v4, v6)
				end
			end
		end
		if #v4 <= 0 then
			for v7, v8 in pairs(p2:GetDescendants()) do
				if v8:IsA("BasePart") and v8.Name == "Floor" then
					table.insert(v4, v8)
				end
			end
		end
		local v9 = RaycastParams.new()
		v9.CollisionGroup = "CheckWallStuff"
		local v10 = RaycastParams.new()
		v10.CollisionGroup = "CheckWallStuff"
		v1.module_events.flickerLights(p2, math.clamp(p3 / 5, 0.4, 1))
		local v11 = p3
		for v12 = 1, 100 do
			local v13 = workspace:Raycast(
				v4[u2:NextInteger(1, #v4)].Position
					+ Vector3.new(u2:NextInteger(-5, 5), u2:NextInteger(5, 11), u2:NextInteger(-5, 5)),
				CFrame.Angles(0, math.rad(u2:NextInteger(0, 360)), 0).LookVector * 150,
				v9
			)
			local v14 = Vector3.new(4, 2, 0)
			if v13 then
				local l__Position__15 = v13.Position
				local l__Instance__16 = v13.Instance
				local l__Normal__17 = v13.Normal
				if
					l__Position__15
					and l__Instance__16
					and l__Instance__16.Anchored == true
					and (l__Instance__16.Name == "Wall" or l__Instance__16.Name == "WallAlt")
				then
					for v18 = 1, 4 do
						if v18 <= 2 then
							local v19 = 1
						else
							v19 = -1
						end
						if v18 == 2 or v18 == 4 then
							local v20 = 1
						else
							v20 = -1
						end
						local v21 = workspace:Raycast(
							(CFrame.new(l__Position__15 + l__Normal__17, l__Position__15) * CFrame.new(
								v14.X / 2 * v19,
								v14.Y / 2 * v20,
								0
							)).p,
							l__Normal__17 * -1.1,
							v10
						)
						if not v21 then
							local v22 = false
							break
						end
						local l__Instance__23 = v21.Instance
						local l__Normal__24 = v21.Normal
						if not v21.Position then
							v22 = false
							break
						end
						if not l__Instance__23 then
							v22 = false
							break
						end
						if l__Instance__23.Anchored ~= true then
							v22 = false
							break
						end
						if l__Instance__23.Name ~= "Wall" and l__Instance__23.Name ~= "WallAlt" then
							v22 = false
							break
						end
					end
				else
					v22 = false
				end
				if v22 == true then
					local v25 = u1[u2:NextInteger(1, #u1)]:Clone()
					v25:SetPrimaryPartCFrame(
						CFrame.new(l__Position__15, l__Position__15 + l__Normal__17)
							* CFrame.Angles(0, 0, math.rad(u2:NextInteger(-20, 20)))
					)
					v25.Parent = p2
					v25.PrimaryPart.PlaySound:Play()
					v25.PrimaryPart.Splat.Pitch = u2:NextInteger(80, 120) / 100
					v25.PrimaryPart.Splat:Play()
					spawn(function()
						pcall(function()
							task.delay(3, function()
								for v26, v27 in pairs(v25:GetDescendants()) do
									if v27:IsA("BasePart") then
										v27.CanCollide = false
										v27.CanQuery = false
										v27.CanTouch = false
										v27.CollisionGroupId = 1
									end
								end
							end)
						end)
						if UserSettings().GameSettings.SavedQualityLevel.Value >= 5 then
							pcall(function()
								for v28 = 1, math.random(1, 3) do
									wait(math.random(5, 50) / 10)
									v25.Eye.Transparency = 1
									v25.Eye.Decal.Transparency = 1
									v25.PrimaryPart.ParticleEmitter:Emit(2)
									v25.PrimaryPart.Blink.Pitch = u2:NextInteger(80, 120) / 120
									v25.PrimaryPart.Blink:Play()
									wait(0.1)
									v25.Eye.Transparency = 0
									v25.Eye.Decal.Transparency = 0
								end
							end)
						end
					end)
					v11 = v11 - 1
				end
			end
			task.wait(0.016666666666666666)
			if v11 <= 0 then
				break
			end
		end
	end)
	if p5 == true then
		spawn(function()
			for v29, v30 in pairs(p2:GetDescendants()) do
				if
					UserSettings().GameSettings.SavedQualityLevel.Value >= 5
					and v30:IsA("BasePart")
					and (
						v30.Name == "Wall"
						or v30.Name == "Wall_Strip"
						or v30.Name == "WallAlt"
						or v30.Name == "Floor"
						or v30.Name == "Carpet"
						or v30.Name == "Ceiling"
					)
				then
					local v31 = {
						Enum.NormalId.Front,
						Enum.NormalId.Back,
						Enum.NormalId.Right,
						Enum.NormalId.Left,
						Enum.NormalId.Top,
						Enum.NormalId.Bottom,
					}
					if v30.Name == "Wall" or v30.Name == "Wall_Strip" or v30.Name == "WallAlt" then
						v31 = { Enum.NormalId.Front, Enum.NormalId.Back, Enum.NormalId.Right, Enum.NormalId.Left }
					end
					if v30.Name == "Floor" or v30.Name == "Carpet" then
						v31 = { Enum.NormalId.Top }
					end
					if v30.Name == "Ceiling" then
						v31 = { Enum.NormalId.Bottom }
					end
					for v32, v33 in pairs(v31) do
						local v34 = game:GetService("ReplicatedStorage").Misc.EyesTexture:Clone()
						v34.Face = v33
						v34.Parent = v30
						task.spawn(function()
							local v35 = tick()
							for v36 = 1, 100 do
								v34.OffsetStudsU = math.random(-50, 50)
								v34.OffsetStudsV = math.random(-50, 50)
								task.wait(math.random(20, 100) / 100)
								if v35 + 12 <= tick() then
									break
								end
							end
						end)
						game.Debris:AddItem(v34, 12)
					end
				end
			end
		end)
	end
end
return v1
