Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Ive been trying forever to make this work?

Asked by 10 years ago

function Goal() GoalCountBlue = game.workspace.SoccerField.GoalCount.Blue.SurfaceGui.TextLabel game.workspace.SoccerField:FindFirstChild("Deca1") if "Soccer1" then do m=Instace.new("Message", game.Workspace) m.Text = "OMFG DID U SEE THAT, IT WAS A GOAL" game.workspace.SoccerField.SoccerBall:remove() GoalCountBlue = GoalCountBlue +1 wait(3) SoccerBall() m.remove() else return end end end end script.Parent.Touched:connect(Goal)

1 answer

Log in to vote
0
Answered by 10 years ago
function Goal()
    GoalCountBlue = game.workspace.SoccerField.GoalCount.Blue.SurfaceGui.TextLabel
    game.workspace.SoccerField:FindFirstChild("Deca1")
    if "Soccer1" then do 
        m=Instace.new("Message", game.Workspace)
        m.Text = "OMFG DID U SEE THAT, IT WAS A GOAL"
        game.workspace.SoccerField.SoccerBall:remove()
        GoalCountBlue = GoalCountBlue +1
        wait(3)
        SoccerBall()
        m.remove()
        end
    end
end

script.Parent.Touched:connect(Goal)
function Goal()
    GoalCountBlue = game.workspace.SoccerField.GoalCount.Blue.SurfaceGui.TextLabel
    game.workspace.SoccerField:FindFirstChild("Deca1")
    if "Soccer1" then
        m=Instace.new("Message", game.Workspace)
        m.Text = "OMFG DID U SEE THAT, IT WAS A GOAL"
        game.workspace.SoccerField.SoccerBall:remove()
        GoalCountBlue = GoalCountBlue +1
        wait(3)
        SoccerBall()
        m.remove()
        else return
    end
end

script.Parent.Touched:connect(Goal)

Try both of these.

Ad

Answer this question