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)
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.