of     1   

radioactivated
#36286350Sunday, October 31, 2010 1:21 PM GMT

I'm making a siren that sounds when something called "Water" touches it. Output:Workspace.Handle.Siren:3: 'then' expected near '='
07lchris
#36286510Sunday, October 31, 2010 1:25 PM GMT

Umm. A 'then' is expected in line 3 near the '=' symbol.
4camera
#36286608Sunday, October 31, 2010 1:27 PM GMT

'then' needs to be on the same line as 'if', before the '=' or you need to use a comparision operator ('==') instead of '='.
gijsbel11
#36286685Sunday, October 31, 2010 1:29 PM GMT

that output line is a lie, it needs an extra = close to the then.
radioactivated
#36286976Sunday, October 31, 2010 1:36 PM GMT

Here is the script: function onTouched(hit) if hit.Name = "Water" then script.Parent.music.Looped = true script.Parent.music:play() wait(300) script.Parent.music.Looped = false script.Parent.music:stop() end end script.Parent.Touched:connect(onTouched)
radioactivated
#36287074Sunday, October 31, 2010 1:38 PM GMT

@4camera thanks, it works now!

    of     1