function onTouched(l)campana.Playing=true ondear.Value=.1 chimenea1.Enabled=false chimenea2.Enabled=false ruedaderecha1.AngularVelocity=-2 ruedaderecha2.AngularVelocity=-2 wait(10)ondear.Value=.2 campana.TimePosition=0 ruedaderecha1.AngularVelocity=-1 ruedaderecha2.AngularVelocity=-1 wait(10)ruedaderecha1.AngularVelocity=0 ruedaderecha2.AngularVelocity=0 ondear.Value=50 campana.Playing=false wait(parada)ondear.Value=.2 humoi.Enabled=true humod.Enabled=true chimenea1.Enabled=true chimenea2.Enabled=true ruedaderecha1.AngularVelocity=-0.5 ruedaderecha2.AngularVelocity=-0.5 wait(1)ondear.Value=.1 ruedaderecha1.AngularVelocity=-1 ruedaderecha2.AngularVelocity=-1 humoi.Enabled=false humod.Enabled=false wait(1)ondear.Value=.05 ruedaderecha1.AngularVelocity=-2 ruedaderecha2.AngularVelocity=-2 humoi.Enabled=true humod.Enabled=true wait(1)ruedaderecha1.AngularVelocity=-3 ruedaderecha2.AngularVelocity=-3 humoi.Enabled=false humod.Enabled=false end script.Parent.Touched:connect(onTouched)
--[[INSTRUCCIONES
* Tiempo entre que toca SENSOR y PARADA: 20 segundos
]]

function onTouched(hit)
	campana.Playing = true
	ondear.Value = 0.1
	chimenea1.Enabled = false
	chimenea2.Enabled = false
	ruedaderecha1.AngularVelocity = -2
	ruedaderecha2.AngularVelocity = -2

	wait(10)
	ondear.Value = 0.2
	campana.TimePosition = 0
	ruedaderecha1.AngularVelocity = -1
	ruedaderecha2.AngularVelocity = -1
	wait(10)
	ruedaderecha1.AngularVelocity = 0
	ruedaderecha2.AngularVelocity = 0
	ondear.Value = 50
	campana.Playing = false
	wait(parada) --PARADA
	ondear.Value = 0.2
	humoi.Enabled = true
	humod.Enabled = true
	chimenea1.Enabled = true
	chimenea2.Enabled = true
	ruedaderecha1.AngularVelocity = -0.5
	ruedaderecha2.AngularVelocity = -0.5
	wait(1)
	ondear.Value = 0.1
	ruedaderecha1.AngularVelocity = -1
	ruedaderecha2.AngularVelocity = -1
	humoi.Enabled = false
	humod.Enabled = false
	wait(1)
	ondear.Value = 0.05
	ruedaderecha1.AngularVelocity = -2
	ruedaderecha2.AngularVelocity = -2
	humoi.Enabled = true
	humod.Enabled = true
	wait(1)
	ruedaderecha1.AngularVelocity = -3
	ruedaderecha2.AngularVelocity = -3
	humoi.Enabled = false
	humod.Enabled = false
end
script.Parent.Touched:connect(onTouched)
