local stats = player:findFirstChild("leaderstats") stats.Score.Value = 0
if (not paused) then for _,v in pairs(workspace.Obstacles:GetChildren()) do v.Position = (v.Position+UDim2.new(0,-6,0,0)) --4 if ((v.Position.Y.Scale == 0) and (bird.AbsolutePosition.X > (v.AbsolutePosition.X+v.AbsoluteSize.X)) and (not same_ob(v.Name))) then stats.Score.Value = stats.Score.Value + 1 table.insert(logs,v.Name) end if (v.AbsolutePosition.X < 435) then v:Remove() end
end
end
This should work But it doesnt , it is the part that allows the Leaderstat to go up when the bird goes through the pipe