#Function not working

3 messages · Page 1 of 1 (latest)

void swan
#
ghostSpawn.Touched:Connect(function()
        if Behaviour2.Enabled and ghostHumanoid and ghostHumanoid.Name == "Ghost" then
            eventTriggered = false
            eaten = false
            mode = 0
            ghostBody.CanCollide = true
            ghostBody.Transparency = 0
            ghostBody.Color = normGhostColour
            ScaredHighlight.OutlineColor = normGhostColour
            frontDecal.Texture = "http://www.roblox.com/asset/?id=16714876115"
            backDecal.Texture ="http://www.roblox.com/asset/?id=16714876115"
            ghostHumanoid.WalkSpeed = 30
            Behaviour0.Enabled = true
            Behaviour1.Enabled = false
            Behaviour2.Enabled = false
            ghostSiren1:Stop()
            ghostRetreat:Stop()
            ghostSiren0:Play()
        end)
    end)

I don't know why but for some reason it errors because of te end) thingy i cant figure it out.

#

Heres the varibles to help understand what the script is yapping about :

eager sluiceBOT
#

studio** You are now Level 6! **studio